AndresRengifo
641f2f856b
fix: battery prearm check ignored when CBRK_SUPPLY_CHK is disabled
2017-08-20 19:36:54 +02:00
José Roberto de Souza
4462869432
Add support to new fields in command_ack
2017-08-19 09:04:52 +02:00
Lorenz Meier
861879c6d3
Widen threshold for standard gyro consistency check
...
Without temperature compensation the default is too narrow.
2017-08-12 12:50:46 +02:00
Daniel Agar
aa9023b72e
COM_RC_STICK_OV fix broken metadata
2017-08-09 22:28:05 +02:00
Daniel Agar
1cc7f47003
COM_FLTMODE* add param group
2017-08-09 22:28:05 +02:00
José Roberto de Souza
925efe990d
Initialize all outgoing vehicle_command_ack_s and vehicle_command_s
...
This will initialize those structs with zero in all fields not set
and all fields set will only be change once to the final value not
wasting CPU time zeroing it.
This will guarantee that no non-unitialized structs will have
a trash value on from_external causing it to be sent to the
MAVLink channel without need it.
2017-08-08 21:46:30 +02:00
José Roberto de Souza
89a428fbfe
commander: Keep vehicle_command_ack_s local
...
No need to keep this struct as global or alive while looping.
2017-08-08 21:46:30 +02:00
Beat Küng
65e0d63ba6
commander: avoid duplicated publish, cleanup log output for offboard_mission update
...
- orb_advertise already publishes a struct, no need for orb_publish
- mavlink_log_critical goes to the console too
2017-08-04 18:08:51 +02:00
Lorenz Meier
c94e54bbab
Commander: Handle HITL state in all places consistently
2017-08-02 15:12:25 +02:00
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