Daniel Agar
55596fad20
commander move safety check to prearm
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
8931f1a75c
commander set status_flags.usb_connected directly and delete static
2018-04-16 20:43:33 -04:00
Daniel Agar
8f543d300d
commander COMPONENT_ARM_DISARM remove useless arm error
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
Simone Guscetti
8a7dc1b320
commander: Remove usb_ connected flag on battery warnings
...
Battery warning gets only fired if a battery is inserted.
2018-04-16 14:33:43 -04:00
Oleg Kalachev
1b1617b5a0
Add new mode AUTO_PRECLAND
2018-04-11 14:50:07 -04:00
Beat Küng
f02ef20a23
commander: set timestamp for vehicle_command publication
2018-04-11 15:19:47 +02:00
acfloria
ae807fc189
Move VEHICLE_CMD_CONTROL_HIGH_LATENCY ack to commander
2018-04-11 15:15:28 +02:00
acfloria
219980cec1
Commander: Combine telemetry variables into struct
2018-04-11 15:15:28 +02:00
acfloria
b95d65df53
Commander: Fix bug when changing to high latency telemetry
...
Due to the old heartbeat of the high latency telemetry when activating it after flying sufficiently long in normal telemetry it is first detected as lost until the first message is sent.
By updating the heartbeat to the current time on switching this issue is avoided.
Also includes a small style fix for the HIGH_LATENCY2 stream
2018-04-11 15:15:28 +02:00
acfloria
1124a397f2
Commander: Move telemetry logic to separate functions
2018-04-11 15:15:28 +02:00
acfloria
443a4016af
Commander: Improve handling and generating of VEHICLE_CMD_CONTROL_HIGH_LATENCY
2018-04-11 15:15:28 +02:00
acfloria
17a157b9da
Adopt high latency switching to new MAV_CMD design
2018-04-11 15:15:28 +02:00
acfloria
a026575e37
commander: Fix for qurt and improve high latency switch logic
2018-04-11 15:15:28 +02:00
acfloria
1cc84ad8c9
Remove magic numbers from commander.cpp and style fixes
2018-04-11 15:15:28 +02:00
acfloria
1223a9abd5
Commander: High latency telem fallback only in non-manual mode
2018-04-11 15:15:28 +02:00
acfloria
634697946a
Add switch logic for high latency telemetry in commander
...
Switch to the high latency telemetry, if available, if every low latency link is lost. Switch back if any low latency link is regained. Only indicate that all links are lost if all high and low latency links are lost. Allow different timeouts for high and low latency links.
2018-04-11 15:15:28 +02:00
Beat Küng
f1f72c70e0
commander: immediately publish kill switch state change
2018-04-06 11:29:49 +02:00
dw.xiong
381c2b52ac
commander: Remove the ekf pre-flight check variables that are not used in commander. ( #9226 )
2018-04-02 10:52:32 -04:00
Daniel Agar
f0528d28fb
commander once armed safety should only request ARMING_STATE_STANDBY
2018-03-29 10:25:56 -04:00
Daniel Agar
95ff860f4e
commander cleanup includes and sort
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
c547866029
Commander::handle_command() remove unused safety parameter
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
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
c181501e27
commander home position update swap incorrect eph/epv for auto update
2018-03-28 15:37:57 -04:00
Daniel Agar
29b3950747
move geo and geo_lookup to PX4/ecl
2018-03-26 23:16:55 -04:00
Alessandro Simovic
cd250831d5
commander: removed duplicated startup tune
...
Addressing review comments in PR #9096
2018-03-19 14:15:52 +01: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
8fc659dcb2
commander only copy actuator_controls if engine failure enabled
2018-02-19 15:28:47 +01:00
Daniel Agar
43c7f7edbe
commander remove vehicle_attitude usage
2018-02-19 15:28:47 +01:00
Daniel Agar
71fef78bdd
commander remove unused include
2018-02-19 15:28:47 +01:00
Daniel Agar
50e96b24b0
commander remove unused differential pressure check
2018-02-19 15:28:47 +01:00
Daniel Agar
ecf46b4f91
commander remove globallocalconverter
2018-02-19 15:28:47 +01:00
Daniel Agar
4e45d7959c
commander remove gps receiver checks
2018-02-19 15:28:47 +01:00
Daniel Agar
976b890c56
commander increase stack by 90 bytes (3160 -> 3250)
2018-02-02 08:34:39 +01:00
Daniel Agar
8b0ba3c34c
commander log full status flags
2018-01-28 19:28:32 +01:00
Daniel Agar
dc2d6e8aab
commander fix ignored parameters (COM_POS_FS_DELAY/COM_POS_FS_PROB) and refactor position velocity validity check ( #8765 )
2018-01-28 11:22:51 -05: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
0266ca9845
commander: fix indentation
2018-01-25 15:27:55 +01:00
DonLakeFlyer
342509b3ab
New ROI commands implementation
2018-01-25 15:27:55 +01:00
Daniel Agar
fd3f59d8c4
commander publish periodic status messages at 1 Hz
2018-01-24 17:36:53 +01:00
Daniel Agar
edf178d4e8
commander safety update require successful orb_copy
2018-01-24 17:36:53 +01:00
Daniel Agar
bda929bebb
commander fix hil_state regression again
2018-01-18 17:38:48 +01:00