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
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
788e28fbb1
Commander: datalink heartbeat variables refactoring.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
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
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
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
Daniel Agar
88fd8147fd
commander auto disarm if kill switch engaged for 5 seconds
...
- closes #10133
2019-02-20 18:37:20 +01:00
Alessandro Simovic
6e5bd1ad70
commander: remove duplicate includes
2019-01-28 12:05:36 +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
Beat Küng
24dc316973
commander: enforce yaw-airmode to have an arming switch mapped
...
Yaw airmode w/o arming switch is most likely not what you want and will
lead to surprising results.
2018-12-13 09:50:07 +01:00
Daniel Agar
d4f713b286
commander cleanup home position handling
2018-11-25 21:00:51 +00:00
CarlOlsson
c826140c2b
commander: update comment to make post takeoff ekf quality test logic more clear
2018-10-22 09:26:06 -04:00
Matthias Grob
c87e124f13
commander: refactor COM_DISARM_LAND to param wrapper
...
after review comment request from @dagar. Thanks!
2018-08-30 08:05:13 +02:00
bresch
c4c8e8d2db
Failure Detector - Various cleanup and style changes.
...
- use pragma once guard in FailureDetector.hpp
- send Commander parent to ModuleParams and remove update_params() method
- simplify attitude checks
- FailureDetector::get_status() (previously named "get") is now a constant method that returns a constant reference
2018-08-28 11:23:25 -04:00
bresch
246b3ebc23
FailureDetector - Update failure detector logic in commander.
2018-08-28 11:23:25 -04:00
bresch
7908f75b8b
FailureDetector - New class, first working simple implementation. Outputs PX4_ERR messages if roll or pitch is exceeded.
2018-08-28 11:23:25 -04:00
Daniel Agar
6396e486bd
commander cleanup battery failsafe handling
2018-08-21 02:38:51 -04:00
Daniel Agar
92bfdea1e3
commander delete non-existant methods and cleanup
2018-08-03 17:38:16 -04:00
Daniel Agar
05ca1defee
commander consolidate estimator checks in new method
2018-08-03 17:38:16 -04:00
acfloria
57162ff08d
Improve high latency switching and acknowledge
...
- Move publishing the telemetry status from the IridiumSBD driver to the mavlink instance
- In the commander use the iridiumsbd_status message for heartbeat in case of a high latency link
- Move positive acknowledge to the mavlink instance
- Add a failed acknowledge in the commander if no high latency link exists
2018-05-27 12:11:35 -04:00
Daniel Agar
fbbe1f5288
commander use new time literals
2018-04-24 00:02:48 -04:00
Daniel Agar
fc26fd99bd
commander move remaining position failsafe params to class and cleanup
2018-04-24 00:02:48 -04:00
Daniel Agar
b70e7433dc
commander add parameters for eph, epv, evh requirements
2018-04-24 00:02:48 -04:00
Daniel Agar
7bc3a12efe
commander move telemetry checks to new preflightcheck helper
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
acfloria
53fdbb6c04
Remove unnecessary newlines
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
1124a397f2
Commander: Move telemetry logic to separate functions
2018-04-11 15:15:28 +02:00
Daniel Agar
c547866029
Commander::handle_command() remove unused safety parameter
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
Beat Küng
68ce62f173
Commander.hpp: remove usage of BlockParam & SuperBlock
2018-03-22 08:19:08 +01:00
Daniel Agar
43c7f7edbe
commander remove vehicle_attitude usage
2018-02-19 15:28:47 +01:00
Daniel Agar
6e0f3ffa88
commander move mission init out of main loop
2018-01-14 12:53:53 +01:00
Daniel Agar
fe6006e22f
commander move mission_result to class
2018-01-14 12:53:53 +01:00
Daniel Agar
294fbc46a9
commander initial class structure
2017-12-27 02:41:10 +08:00