Matthias Grob
e979d24fff
commander: fix orbit failsafes for data link & rc loss
2018-12-08 22:34:57 +01:00
Matthias Grob
34fb52d8bd
commander: add orbit state handling
2018-12-08 22:34:57 +01:00
Daniel Agar
48d9484ceb
commander fix and enforce code style
2018-11-28 20:42:03 -05:00
CarlOlsson
db4d79358a
commander: fix typo
2018-10-22 09:26:06 -04:00
Julian Oes
d370a7c2b5
commander: remove unused HITL transition function
...
To my knowledge this hil transition function is not used anymore,
however, it makes sending the DO_SET_MODE command unnecessarily complex.
In my opinion the DO_SET_MODE command should only change the mode but
not other things like arming (already removed) and HITL state (this
commit).
Often times, I was seeing the error message "Set SYS_HITL to 1 and
reboot to enable HITL." when using QGC with a vehicle in HITL.
HITL is set via parameter which then has an impact in the startup script
where the CLI argument `-hil` is added to some of the commands that
require it (like commander as well).
2018-08-30 09:16:02 +02:00
Daniel Agar
29082d0118
commander battery_failsafe state machine share strings
2018-08-21 02:38:51 -04:00
Daniel Agar
6396e486bd
commander cleanup battery failsafe handling
2018-08-21 02:38:51 -04:00
Beat Küng
8c3cf0167c
commander arming_state_transition: respect fRunPreArmChecks properly
...
if fRunPreArmChecks was set to false, there were still cases where the
preflight checks could be called. This fixes that.
arming_state_transition() with fRunPreArmChecks=false is only called
when entering & leaving preflight calibration mode.
All other places use fRunPreArmChecks=true, which means there is no change
for these.
2018-06-27 10:41:21 +02:00
Daniel Agar
daa6f29b58
commander ignore failsafe transitions when in mission and disarmed
2018-06-13 08:37:00 +02:00
Daniel Agar
64fb4b43b6
commander preflightCheck don't report failures during calibration
2018-04-16 20:43:33 -04:00
Daniel Agar
2271b3f127
commander preflight checks pass status and status_flags messages
2018-04-16 20:43:33 -04:00
Daniel Agar
f2104217d4
commander arm_auth check last
2018-04-16 20:43:33 -04:00
Daniel Agar
a2bc0bd947
commander prearm_check limit simultaneous error messages
2018-04-16 20:43:33 -04:00
Daniel Agar
55596fad20
commander move safety check to prearm
2018-04-16 20:43:33 -04:00
Daniel Agar
a4703c6be4
commander arming state transition consolidate HIL special checks and remove atomic
2018-04-16 20:43:33 -04:00
Daniel Agar
54ea78898c
commander arming state transition delete useless errors
2018-04-16 20:43:33 -04:00
Daniel Agar
1400652724
commander arming state machine pass checks by default
...
- this is needed for the unit tests
2018-04-16 20:43:33 -04:00
Daniel Agar
f81a1aedcd
commander state machine add global position check
2018-04-16 20:43:33 -04:00
Daniel Agar
729c98d9e2
commander move avionics rail voltage check out of state machine
...
- add preflight_check helper
2018-04-16 20:43:33 -04:00
Daniel Agar
415c5f13bb
commander move power check to prearm_check
2018-04-16 20:43:33 -04:00
Daniel Agar
c679703da4
commander move arm authorization to prearm_check
2018-04-16 20:43:33 -04:00
Daniel Agar
082126610d
commander status flags delete condition_system_prearm_error_reported
...
- this flag often results in hiding useful information, or adding
useless information to the mavlink console
2018-04-16 20:43:33 -04:00
Daniel Agar
bb13b602e2
commander arming_state_transition cleanup preflight and prearm calls
...
- only call prearm if preflight passes
- prearm always provide feedback
2018-04-16 20:43:33 -04:00
Daniel Agar
208e320975
commander prearm_check is always prearm
2018-04-16 20:43:33 -04:00
Daniel Agar
e5d9c826d8
commander state machine fix preflight and prearm error
...
- fixes #9155
2018-04-16 20:43:33 -04:00
Daniel Agar
35bf37d617
commander state machine helper shorten names
2018-04-16 20:43:33 -04:00
Daniel Agar
0f6a94894d
commander state machine helper fix code style
2018-03-29 10:25:56 -04:00
Daniel Agar
db7e8635a2
commander state machine helper pass battery and safety as const references
2018-03-29 10:25:56 -04:00
Daniel Agar
4ccfc280c8
commander arming_state_transition add HIL boolean
2018-03-29 10:25:56 -04:00
Daniel Agar
e395b3578f
delete unused ARMING_STATE_ARMED_ERROR state
2018-03-29 10:25:56 -04:00
Daniel Agar
e29b568d33
state machine helper remove unused headers
2018-03-29 10:25:56 -04:00
Daniel Agar
bff2136db0
commander state machine helper use constexpr for strings
2018-03-29 10:25:56 -04:00
Daniel Agar
f59b7c7399
commander is_safe() use const references
2018-03-29 10:25:56 -04:00
Daniel Agar
376b5e4747
state machine helper make vehicle_status_flags const
2018-03-29 10:25:56 -04:00
Daniel Agar
8c8fe17ff3
commander delete unused main_state_prev
2018-03-29 10:25:56 -04:00
Daniel Agar
c194c1acb5
commander use const where possible
...
- this helps tease apart the various pieces of commander.
2018-03-29 10:25:56 -04:00
Daniel Agar
458db2e508
vehicle_global_position remove redundant evh and evv
...
- vehicle_status_flags condition_global_velocity_valid is also unnecessary
2018-03-05 13:20:28 -05:00
Daniel Agar
4e45d7959c
commander remove gps receiver checks
2018-02-19 15:28:47 +01:00
Daniel Agar
8b0ba3c34c
commander log full status flags
2018-01-28 19:28:32 +01:00
SungTae Moon
f8f95078e8
commander status reuse arming_state_names in state_machine_helper ( #8667 )
2018-01-27 10:22:29 -05:00
Nicolas de Palezieux
f2dbb0ad3b
commander : add support for precision landing measurements
2018-01-15 10:27:23 +01:00
Daniel Agar
b1a3475ebf
commander mission valid check require updated mission_result
2018-01-14 12:53:53 +01:00
Lorenz Meier
90b4afebb5
Commander: properly separate preflight check and prearm checks
...
We were running pre-arm checks before when not arming, which led to annoying error messages on vehicles that were on the bench or serviced on the ground. Now we really only run them when trying to arm.
2017-12-31 16:37:02 +01:00
Lorenz Meier
6a701adf3c
HITL: Remove hard requirement for airframes
2017-12-30 11:24:22 +01:00
Lorenz Meier
bb516be61e
Commander: Enforce correct system configuration for HITL
...
This is important to ensure that users are not trying to use HITL with airframes that will not work.
2017-12-30 11:24:22 +01:00
Lorenz Meier
644db1b03f
State machine helper: Fix typo
2017-12-30 11:24:22 +01:00
Daniel Agar
fc7c8b4b89
vehicle_status delete engine_failure_cmd
2017-12-27 02:41:10 +08:00
Daniel Agar
17e17d79dd
commander delete unused vtol_transition_failure_cmd
2017-12-27 02:41:10 +08:00
Daniel Agar
d0fba8bf8b
commander delete unused data_link_lost_cmd
2017-12-27 02:41:10 +08:00
Daniel Agar
c0be801b5c
commander delete unused rc_signal_lost_cmd
2017-12-27 02:41:10 +08:00