Mark Charlebois
fea910d45a
Code cleanup and ifdefs required for qurt build
...
Code that was previously out of tree that was #if 0, is now #ifdef __PX4_QURT.
These changes were required for flight using the qurt build.
Changes include code cleanup for shmem_posix.c.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:43 +01:00
Lorenz Meier
ca125bccbd
Update error message
2015-11-19 16:03:36 +01:00
Lorenz Meier
c77c0f927b
Gyro cal: be more forgiving in calibration offset
2015-11-19 15:54:57 +01:00
Lorenz Meier
020844e9e9
Gyro: also output to console
2015-11-19 15:53:08 +01:00
Lorenz Meier
53ff04e016
Commander: Finish preflight update for prime sensor IDs
2015-10-14 19:35:12 +02:00
Lorenz Meier
e5bb1cff91
Store primary sensor ID to allow cross-check of calibration on next boot
2015-10-14 19:35:12 +02:00
Mark Charlebois
dcb55ff38d
Changed isfinite to PX4_ISFINITE
...
There are cross platform issues with the isfinite call that are handled
by PX4_ISFINITE
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-18 09:58:49 -07:00
Mark Charlebois
36f5d47ed9
Merge remote-tracking branch 'upstream/master' into linux
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
Conflicts:
src/modules/commander/gyro_calibration.cpp
src/modules/mavlink/mavlink_ftp.cpp
2015-05-16 15:04:38 -07:00
Lorenz Meier
3be1fc7d42
commander gyro calibration: Do not require a specific position, automatically start a retry after motion on the first try
2015-05-08 11:01:19 +02:00
Mark Charlebois
0cea93a55c
POSIX and QuRT: fixed calls needing px4_ prefix
...
There were some missed calls to open and ioctl that need to be
px4_open and px4_ioctl.
QuRT also does not provide usleep() so px4_time.h has to be included
in files calling usleep.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-05 12:13:39 -07:00
Mark Charlebois
2446dfec16
Fixups after merge from master
...
MuORB was missing the orb_exists() function added to uORB.cpp
gyro_calibration.cpp still had some merge conflicts that had not been resolved.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-28 12:28:10 -07:00
Mark Charlebois
190814bc97
Merge remote-tracking branch 'upstream/master' into linux
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
Conflicts:
src/drivers/rgbled/rgbled.cpp
src/modules/commander/PreflightCheck.cpp
src/modules/commander/airspeed_calibration.cpp
src/modules/commander/calibration_routines.cpp
src/modules/commander/gyro_calibration.cpp
src/modules/commander/mag_calibration.cpp
src/modules/mc_att_control/mc_att_control_main.cpp
2015-04-28 11:48:26 -07:00
Lorenz Meier
362672ece8
commander: Fix calibration feedback so that QGC picks up all error conditions
2015-04-26 17:33:45 +02:00
Don Gagne
a7f88d97b8
Sensor cal rework
...
- cancel support
- versioned cal messages
- better still detection
- better messaging
2015-04-26 14:34:19 +02:00
Mark Charlebois
a1332e699c
QuRT and POSIX changes - part 5
...
Last part of the main QuRT related changes
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-24 01:39:25 -07:00
Mark Charlebois
694427e4ba
Converted commander to use px4_posix calls
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 11:37:50 -07:00
Mark Charlebois
bba26c3430
Linux: enabled commander module
...
The commander module now compiles for Linux.
state_machine_helper_linux.cpp iterates over the virtual devices vs
all devices under /dev as per NuttX when disabling publishing.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 11:37:50 -07:00
Lorenz Meier
1da048549a
commander gyro cal: Optimize parameter set calls and allow up to 0.0055 rad/s deviation - tuned to allow in-field calibration, but fail anyone really rotating during the step
2015-04-19 16:06:52 +02:00
Lorenz Meier
1685f77031
Loosen the thresholds on gyro calibration based on in-field calibration feedback
2015-04-19 15:36:02 +02:00
Lorenz Meier
17ee20a338
commander: Improve gyro cal
2015-03-28 16:44:26 -07:00
Don Gagne
716fb561aa
Include sensor number
2015-03-28 13:09:07 -07:00
Daniel Agar
8aae66b893
trivial code style cleanup round 2
2015-03-27 23:38:58 -04:00
Lorenz Meier
904fc9b21c
commander: Improve gyro calibration
2015-03-15 17:24:29 +01:00
Lorenz Meier
807cf7bd16
Commander: Implement calibration routines for multi-sensor setups
2015-02-09 22:56:23 +01:00
Lorenz Meier
19cd496157
Commander: Use indexed sensor names in calibration routines
2015-02-03 08:55:16 +01:00
hauptmech
0b784c20c8
Save and check device id for acc and gyro calibration parameters.
...
Fix config utility to work with all devices of each type.
Accel, gyro and mag devices correctly set their device_id devtype.
Combo devices (mpu6000 lsm303d) now correctly return their devtype.
config util shows device id for all sensor types.
Add, save during calibration and check during preflight ID parameters for accelerometer and gyro
2015-01-31 15:53:34 +01:00
Lorenz Meier
7f299ea0cc
Move commander to multi pub/sub API
2015-01-29 16:33:53 +01:00
Lorenz Meier
b51c669344
Commander: Improve calibration routines to produce more conscise and better sequenced instructions
2014-11-02 21:24:50 +01:00
Lorenz Meier
07fb1e089d
Make commander multi-device aware
2014-06-10 15:04:56 +02:00
Anton Babushkin
349809f535
sensors, commander: code style fixed
2014-05-11 13:36:51 +02:00
Anton Babushkin
ef42ef15c6
accel/gyro/mag calibration: big cleanup, use common messages
2013-10-21 22:24:59 +02:00
Anton Babushkin
ea89f23c91
calibration: bugs fixed, mavlink messages cleanup
2013-10-21 20:07:47 +02:00
Stefan Rado
ed79b686c5
Adjusted mavlink info messages during gyro calibration to not break QGroundControl.
2013-10-21 09:32:37 +02:00
Stefan Rado
6a624ff753
Fix gyro calibration for rotated sensors.
...
The calibration routine now uses the raw sensor values instead of the already rotated values.
2013-10-19 23:04:36 +02:00
Lorenz Meier
ac00100cb8
Hotfix: Disable gyro scale calibration to prevent people from wrongly using it
2013-09-18 08:43:38 +02:00
Lorenz Meier
2d83c6f825
Closing all opened file descriptors, fixed param save issue, tests clean
2013-09-01 12:47:10 +02:00
Lorenz Meier
94d8ec4a1c
Calibration message cleanup
2013-08-27 09:48:22 +02:00
Julian Oes
5f1004117f
Restore proper feedback (mavlink and tone) for calibration commands, etc
2013-08-22 15:57:17 +02:00
Anton Babushkin
27d0885453
gyro_calibration: confusing typo in mavlink message fixed
2013-08-14 22:38:14 +02:00
Julian Oes
53def47216
Fixed gyro scale calibration (it was storing scale even though the scale calibration was skipped
2013-08-14 22:33:43 +02:00
Lorenz Meier
68ab69de01
moved commander to C++, preparation for better gyro scale calibration respecting the current attitude for more accurate results
2013-07-20 13:47:51 +02:00