Claudio Micheli
0eb4942f66
Commander: renamed print_msg_once variable into a more self-explanatory one.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-27 09:56:32 +01:00
Claudio Micheli
be6f753022
Fixed CI errors. changed _print_msg_once into private class member.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-27 09:56:32 +01:00
Claudio Micheli
e14e5b9d73
Commander: Changed COM_ONB_BOOT_T parameter to COM_OA_BOOT_T.
...
Since the time out is only Obstacle-Avoidance related, the new naming is more self explanatory.
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-27 09:56:32 +01:00
Claudio Micheli
d937a5725b
Commander: reset print once variable if OA is lost.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-27 09:56:32 +01:00
Claudio Micheli
9966a3d2f8
Commander: changed logic for checking OA at boot time.
...
With this commit the use cases will be:
Success case:
- booting, no messages about OA, pre-arm check would fail if you try to arm and OA is not yet running
Fail case:
- if OA takes longer than timeout time defined in COM_ONB_BOOT_T, then an error message is triggered.
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-27 09:56:32 +01:00
Claudio Micheli
3b5ef82193
Commander: Added COM_ONB_BOOT_T parameter.
...
Since onboard controllers bootup times are hardware dependent, it makes sense to have the possibility to adapt timeout time according to the specific HW.
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-27 09:56:32 +01:00
Claudio Micheli
7a8002fdab
Commander: increased hardcoded timeout time for avoidance to start.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-27 09:56:32 +01:00
Claudio Micheli
f4a4dab65a
Commander: Improved logic for OA prearm checks.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-27 09:56:32 +01:00
Claudio Micheli
977a4c8e9b
Added status_change to force message updating.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-27 09:56:32 +01:00
Claudio Micheli
107746ded5
Added obstacle avoidance healthiness topic in vehicle status msg.
...
This allows to perform pre-arm checks and prevent arming if obstacle avoidance is enabled but not yet running.
Added a print once flag to prevent excessive message spamming in QGC.
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-27 09:56:32 +01:00
Daniel Agar
b35d048566
cmake enable -Wcast-align and disable per module
2019-03-16 11:47:15 -04:00
Beat Küng
6672284871
commander: fix status init & some status update changes
2019-03-12 11:24:33 +01:00
Claudio Micheli
697566177c
Commander: Properly initialized another boolean variable.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-12 11:24:33 +01:00
Claudio Micheli
908cdaa574
Onboard controller loss parameter cleanup.
...
Since Timeout from onboard controller is something that does not require a lot of modifications there is no sense to having it parametrized.
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-12 11:24:33 +01:00
Claudio Micheli
cd47cefb03
Some more code cleanup.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-12 11:24:33 +01:00
Claudio Micheli
fb990d7de3
Removed subscribtion to multiple _telemetry_status instances.
...
Since commander handles all telemetry_status the same there is no need to subscribe to multiple instances.
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-12 11:24:33 +01:00
Claudio Micheli
a53594135b
Commander: changed "datalink regain" logic.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-12 11:24:33 +01:00
Claudio Micheli
13f3ee4c82
state_machine_helper: (Critical) Prevent datalink failsafe triggering if not enabled.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-12 11:24:33 +01:00
Claudio Micheli
788e28fbb1
Commander: datalink heartbeat variables refactoring.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-12 11:24:33 +01:00
Claudio Micheli
32e4baf6a0
Commander: some more cleanup.
2019-03-12 11:24:33 +01:00
Claudio Micheli
a84a1e1b5a
Commander: mavlink messages cleanup. header variables refactoring.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-12 11:24:33 +01:00
Claudio Micheli
14415b29c1
Removed hardcoded onboard controller timeouts thresholds.
...
Added COM_ONB_LOSS_T and COM_ONB_REG_T parameters to specify thresholds that triggers "onboard link lost" and "onboard link regained".
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-12 11:24:33 +01:00
Claudio Micheli
156317e546
Fixes for ONBOARD Controller lost & regain.
2019-03-12 11:24:33 +01:00
Claudio Micheli
f44c690b33
Modified COM_DL_REG_T parameter description.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-12 11:24:33 +01:00
Claudio Micheli
1fc055a51f
Fixed some issues for datalink loss & regain (GCS HEARTBEAT).
...
Major changes:
- Prevent "HIGH LATENCY DATA LINK LOST" message to appear if iridium telemetry is not used.
- Prevent "DATA LINK LOSS" mavlink messages flooding when QGC is open and then closed.
- Changed "DATA LINK REGAINED" condition (use _datalink_last_heartbeat_gcs insthead of _datalink_lost)
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-03-12 11:24:33 +01:00
baumanta
d8bdc1b367
output a message if a previously lost connection is regained
2019-03-12 11:24:33 +01:00
baumanta
d42b9205f9
Rename parameter MPC_OBS_AVOID to COM_OBS_AVOID and change the location to commander.
2019-03-12 11:24:33 +01:00
baumanta
a98f5d2ab2
suggestion for treating obstacle avoidance heartbeats
2019-03-12 11:24:33 +01:00
Daniel Agar
6dec451bab
HEARTBEAT and commander failsafe handling cleanup
2019-03-12 11:24:33 +01:00
David Sidrane
477152a96d
Commander:Support BOARD_INDICATE_ARMED_STATE for HW that supports external armed indiction
2019-02-26 15:34:10 -05:00
Daniel Agar
184aa2861a
PX4_ISFINITE use builtin everywhere
2019-02-21 14:56:08 -05:00
Daniel Agar
88fd8147fd
commander auto disarm if kill switch engaged for 5 seconds
...
- closes #10133
2019-02-20 18:37:20 +01:00
mcsauder
31f23c1e76
Rename tune_control_s strength to volume to match Nuttx and Linux standard nomenclature for audio (loudness) control.
2019-02-19 10:07:53 +01:00
Todd Colten
57dd1b7b45
reduced use of mixed capitalization
...
e.g.
Preflight Fail: Height estimate error
Preflight Fail: Velocity estimate error
Preflight Fail: Position estimate error
Preflight Fail: Yaw estimate error
2019-02-19 09:44:42 +01:00
Todd Colten
0faba12337
re-word Preflight Fail msg, attempt 2
...
My recent PR exceeded the 50 char limit (apparently the last character must be null?).
This new attempt changes: "Preflight Fail: Horizontal position estimate Error" to: "Preflight Fail: Position estimate Error"
In fact, this newest wording is more easily understood by the average user and is actually more consistent with the other COM_ARM_EKF_xxx related errors:
COM_ARM_EKF_HGT --> "Preflight Fail: Height estimate Error"
COM_ARM_EKF_VEL --> "Preflight Fail: Velocity estimate Error"
COM_ARM_EKF_POS --> "Preflight Fail: Position estimate Error"
2019-02-19 09:44:42 +01:00
Todd Colten
b23374688b
re-word Preflight Fail msg for consistency
...
changed: "Preflight Fail: Horizontal estimate Pos Error"
to: "Preflight Fail: Horizontal position estimate Error"
2019-02-17 23:44:47 +00:00
Antiheavy
1bcce518b0
Fixed typo in comment. from: EPV to: EPH
...
The comment description for COM_POS_FS_EPH incorrectly stated "...horizontal position error (EPV)...". This fixes the acronym to "(EPH)".
2019-02-16 19:37:12 +00:00
Paul Riseborough
9692ef1ae9
commander: remove duplicate check
2019-02-04 10:32:19 +01:00
Daniel Agar
248320b328
PreflightCheck trivial astyle fix
2019-02-04 10:32:19 +01:00
Paul Riseborough
6fb7cda9f2
commander: Reduce false positives in pre-flight accel bias check
2019-02-04 10:32:19 +01:00
Alessandro Simovic
6e5bd1ad70
commander: remove duplicate includes
2019-01-28 12:05:36 +01:00
Alessandro Simovic
5bcd7c0a0d
Capitalizing/improving warning messages
2019-01-25 11:58:17 -05:00
Alessandro Simovic
4ead3b20e5
Fixing some typos
2019-01-25 11:58:17 -05:00
Daniel Agar
60f2a92e3d
replace <cfloat> with <float.h>
...
- <cfloat> isn't available in the NuttX c++ library
2019-01-06 19:20:57 -05:00
Daniel Agar
3cd3856d32
commander set home position timestamp properly
2018-12-27 10:52:01 -05:00
Julian Oes
0e04d3e9a9
commander: remove lying comment
2018-12-22 10:32:18 +01:00
Julian Oes
d70b0f1c8c
Replace sleep with px4_sleep
...
This is another step to isolate time from the system.
2018-12-22 10:32:18 +01:00
Julian Oes
5b9dea5604
Replacing usleep with px4_usleep
...
This is a step towards isolating time from the system.
2018-12-22 10:32:18 +01:00
Matthias Grob
d4a40f5d99
px4_custom_mode: add custom sub mode orbit
2018-12-18 14:40:07 +01:00
Beat Küng
447ed18ab4
commander: use C API for MC_AIRMODE & RC_MAP_ARM_SW to remove multirotor modules dependency
2018-12-13 09:50:07 +01:00