Daniel Agar
d5a890041b
commander RTL failsafe should be sticky
2017-07-30 01:51:27 +02:00
Beat Küng
007b6dd8d7
commander: make sure the power_button_state topic is advertised on startup
...
Otherwise the publication from IRQ context won't work
2017-07-29 23:10:47 +02:00
Beat Küng
2815c62acf
fix power button shutdown: use an orb topic instead of a work queue call
...
px4_shutdown_request() was called from the power button IRQ callback, which
invoked a work queue callback. But on NuttX, the work queue uses a
semaphore, and thus it cannot be called from IRQ context.
This patch switches to publishing an uORB msg instead, which is handled in
the commander main thread.
To increase failure resistance, we could subscribe to the same topic in
another module for redundancy, in case commander runs wild.
2017-07-29 23:10:47 +02:00
Lorenz Meier
61b0a81bf9
HITL startup: Further simplification of boot logic in commander
2017-07-29 23:06:50 +02:00
Lorenz Meier
5838556742
HITL handling: Enforce the use of the activation parameter for HITL configuration
2017-07-29 23:06:50 +02:00
Lorenz Meier
75faf5c7bd
Preflight checks: Increase accel warn limit range
2017-07-09 16:38:56 +02:00
Lorenz Meier
1a12326d7d
Reserve value in ENUM for simple mode
2017-07-09 14:43:24 +02:00
Lorenz Meier
4ca7187e42
Commander: Do not allow to set mission mode if the mission is failing feasibility checks. Provide clear feedback if telemetry is online and home is set about an invalid mission state.
2017-07-09 14:43:24 +02:00
Daniel Agar
f396224d41
mag calibration add notifications to rotate
2017-07-08 21:54:04 +02:00
Daniel Agar
1a6a871689
commander properly set boot timestamp
2017-07-08 21:54:04 +02:00
Daniel Agar
b804616ad0
preflight check airspeed use differential_pressure
2017-07-08 21:54:04 +02:00
Daniel Agar
f11bb401f4
CMD_MISSION_START allow first_item=-1 to leave index unchanged
2017-07-08 19:49:52 +02:00
Julian Oes
9854fc0d84
Set timestamp with vehicle commands
...
The vehicle_command uORB messages had the timestamp unset at 0.
2017-07-08 11:52:23 +02:00
Daniel Agar
1c7833e3b1
airspeed calibration simplify logic
2017-07-06 10:05:07 -04:00
Daniel Agar
c45d369004
ms5525 use int64 for calculation
2017-07-06 10:05:07 -04:00
Daniel Agar
936f92fd0b
airspeed verify using filtered differential pressure
2017-07-06 10:05:07 -04:00
Daniel Agar
72969f00d7
airspeed calibration error_count is uint64_t
2017-07-06 10:05:07 -04:00
Daniel Agar
7029be87c0
MS5525 differential pressure driver
2017-07-06 10:05:07 -04:00
Jan Liphardt
d5eab23f53
airspeed error message clarification ( #7497 )
...
In day to day practice, there are two reasons for fabsf(airspeed.differential_pressure_filtered_pa) > 15.0f
1/ The sensor has not been calibrated. In this case, the sensor needs to be calibrated.
2/ It's a windy day, and the operator has powered up the system without covering the pitot tube. In that case, you need to reboot with the pitot cover in place.
The original message ('Check calibration') is ok, but why not be more direct? The user does not have to "check the calibration" - the user has to (a) either calibrate the system in the first place, or (b) not forget the pitot tube cover when powering up the system.
2017-06-28 00:28:33 -04:00
Julien Lecoeur
407b403e68
Fix -Werror=maybe-uninitialized on GCC7
2017-06-26 15:50:44 +02:00
Lorenz Meier
13bf312263
Commander: Be less verbose
2017-06-21 21:43:28 +02:00
Lorenz Meier
7d23a52871
Commander: Remove debug output
2017-06-19 09:28:38 +02:00
Matthias Grob
e28f8bff67
commander: make commonly spoken strings more user friendly
...
these technical messages might not be suitable for the user of a product
2017-06-15 07:50:41 +02:00
Lorenz Meier
a1a0dd37dc
Commander: Only report GPS lost errors if armed
2017-06-11 11:19:25 +02:00
Lorenz Meier
a25330762a
Commander: Adjust airspeed checks on prearm condition
...
The previous approach would work with old low-end sensors, but with new high-end sensors we get a lot of false alarms on the bench. Relaxing the check to only apply pre-arm will ensure its now only run when the user intents to take off, at which point the airframe should be with pitot covers off in the field.
2017-06-11 11:19:25 +02:00
Daniel Agar
8d5c955af4
remove partial CMD_OVERRIDE_GOTO implementation ( #7356 )
...
- closes #7326
2017-06-08 22:03:50 -04:00
davidaroyer
99799d83b1
ocpoc support: update copyright dates
2017-06-04 04:24:50 +08:00
davidaroyer
dbbe3c0863
commander: add support for Aerotenna OcPoC-Zynq hardware
2017-06-04 04:24:50 +08:00
Daniel Agar
625dc67f84
commander offboard loss rc act unreachable
...
- coverity fix 145492
2017-06-04 02:37:09 +08:00
Daniel Agar
64ed96d81a
clang-tidy readability-simplify-boolean-expr
2017-06-02 19:35:18 -04:00
Nicolae Rosia
a0ee07e357
commander: enable partial preflight checks on RPI
...
Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com >
2017-05-29 21:38:21 +02:00
Simone Guscetti
6201fb5641
commander: arming with critical battery is not allowed
2017-05-29 18:40:57 +08:00
Lorenz Meier
a9ad826b08
Commander: Relax gyro consistency check as users without temperature compensation do suffer from it.
2017-05-27 13:43:57 +02:00
Mohammed Kabir
ed5cf9f729
commander : simplify platform defines
2017-05-27 00:31:05 +02:00
Mohammed Kabir
769fa7134a
commander : make gyro calibration correctly lock-in to corresponding uORB topic
2017-05-27 00:31:05 +02:00
Mohammed Kabir
937efd3472
commander : make accel calibration correctly lock-in to corresponding uORB topic
2017-05-27 00:31:05 +02:00
Mohammed Kabir
302e2372cf
mpu9250 : fill correct device ID into uORB topic
2017-05-27 00:31:05 +02:00
Mohammed Kabir
d7611cac89
commander : make mag calibration correctly lock-in to corresponding uORB topic
2017-05-27 00:31:05 +02:00
Mohammed Kabir
52f1718bb8
commander : warn if excess accels are connected
2017-05-27 00:31:05 +02:00
Mohammed Kabir
d177ccc9a7
commander : warn if excess gyros are connected
2017-05-27 00:31:05 +02:00
Mohammed Kabir
ad5fe5f44a
Add support for SET_CAMERA_MODE command; Not used yet.
2017-05-12 22:11:17 +02:00
Mohammed Kabir
2e92a3946d
camera_trigger : completely refactor state handling
2017-05-12 22:11:17 +02:00
lovettchris
47faaa5d78
Add loiter option to COM_OBL_RC_ACT ( #7170 )
2017-05-08 14:17:29 -04:00
Paul Riseborough
341bd6e836
commander: add timeout test for global position data
2017-05-08 09:21:38 +02:00
Paul Riseborough
00a42abc69
commander: Add parameter to control postal fallback after loss of navigation accuracy
...
Also remove else if branch that cannot be accessed.
2017-05-08 09:21:38 +02:00
Paul Riseborough
b85c8fa135
commander: fix bug in pos vel validity transition
...
This ensures that a mode change will occur immediately when the EKF reports the solution as invalid.
2017-05-08 09:21:38 +02:00
Paul Riseborough
1a2ef45a4b
commander: remove unused pos vel validity check functions
2017-05-03 08:37:14 +02:00
Paul Riseborough
625cc4aa83
commander: Use generic function for checking position and velocity validity
2017-05-03 08:37:14 +02:00
Paul Riseborough
8421ad3dfd
commander: Changes following code review
2017-05-03 08:37:14 +02:00
Paul Riseborough
6473f1458f
commander: reset learned ekf2 mag biases when performing a mag cal
...
The learned ekf2 mag bias values are invalidated when the sensor calibration is updated and must be reset.
2017-05-03 08:37:14 +02:00