46 Commits

Author SHA1 Message Date
mcsauder
d4fedca1ee Rename _accel_horz_lp -> _xy_accel_filtered to standardize naming, use time literal, and delete unneeded #includes in the FixedwingLandDetector class. 2019-08-14 23:10:20 -04:00
Daniel Agar
a917f22b65
sensors: create vehicle_acceleration module (#12597) 2019-08-07 05:05:48 -04:00
Mark Sauder
c22ed9397e land_detector: Implement ModuleParams inheritance in the FixedwingLandDetector class. 2019-06-28 10:26:59 -04:00
Mark Sauder
1466d11acc land_detector: cleanup actuator_armed and battery_status naming
* Rename _arming -> _actuator_armed
 * Rename _battery -> _battery_status in the MulticopterLandDetector class.
2019-06-27 12:02:14 -04:00
mcsauder
2b9ad179a2 Standardize class member variable naming convention in the FixedWingLandDetector class. 2019-06-26 14:06:56 -04:00
Daniel Agar
53aa4130a8 land_detector move orb subscriptions to uORB::Subscription 2019-06-04 18:10:21 -04:00
Philipp Oettershagen
7a82c777b2 LandDetector FW: Fix param min/max values and descriptions as well as some variable names which were wrong/outdated (#9708) 2018-06-20 16:13:33 -04:00
Daniel Agar
ec57832a8f
FW land detector increase trigger time and cleanup (#8486) 2017-12-21 12:17:32 -05:00
Beat Küng
a0afc370d0 land detector: move arming state into base class & set param when disarming
Before that, different modules (ekf2, commander & land detector) changed
params upon different events:
- ekf2 & commander set params after disarm
- land detector set params on land detected
If the 2 events were several 100ms appart, it led to 2 param saves, and
the latter param set could have been blocked by an ongoing save. And if
the land detector was blocked, it could lead to mag timeouts.

This patch makes all modules use the same event, thus only a single param
save will happen.

If we want to have guarantees to never block, we should introduce a
param_try_set() API method.
2017-12-07 11:55:51 +00:00
Daniel Agar
b4755297ec delete control_state and cleanup vehicle_attitude (#7882) 2017-09-21 16:24:53 -04:00
Daniel Agar
c250fb0a9e land detector FW round get_max_altitude()
- this prevents constant land detector publications
2017-08-31 22:49:44 -04:00
Daniel Agar
18d29d5a73 land detector FW uniform initialization 2017-08-31 22:49:44 -04:00
Daniel Agar
90819b2852 land detector move hysteresis constants into FW and MC 2017-08-31 22:49:44 -04:00
Dennis Mannhart
f8e9f380d0 landdetector: add additional landdetection state 2017-08-01 19:31:34 +02:00
Beat Küng
8a83fb7dc2 land_detector: use ModuleBase & add module documentation 2017-07-14 11:57:11 +02:00
Daniel Agar
5d626bd940 clang-tidy remove redundant init 2017-06-02 19:35:18 -04:00
Daniel Agar
64ed96d81a clang-tidy readability-simplify-boolean-expr 2017-06-02 19:35:18 -04:00
Lorenz Meier
daf668e687 Fixed wing land detector: Fix RTL logic with a temporary altitude limit workaround 2017-03-07 15:48:23 +08:00
Dennis Mannhart
a1982e0392 land_detector: battery level status to adjust maximum altitude possible 2017-02-27 22:54:19 +01:00
Dennis Mannhart
3fe45697bb Fix3dwinglandDetector.cpp: adjusted to astyle 2017-01-28 16:23:04 +01:00
Dennis Mannhart
2f164602b4 LandDetector:
- constructor initalization fix
- set trigger time for ground contact hysteresis
- updated ground_contact_state logic
MulticopterLandDetector:
- added hysteresis for ground_contact
VtolLandDetector:
- get_ground_contact_state function that return the one form MultcopterLandDetector
FixedWingLandDetector:
- get_ground_contact_state with a return false: requires implementation
2017-01-28 16:23:04 +01:00
Julian Oes
50cac88e5b land_detector: big refactor, share update function
This is a big refactor and general cleanup of the land detector. The
main functional change is to share the hysteresis lib across all land
detectors.
2016-07-30 12:26:56 +02:00
Emmanuel Roussel
e6b3cf3ac9 Fix code style
(Ran AStyle)
2016-04-18 22:27:11 +02:00
Emmanuel Roussel
35110a52f9 Added room in land_detector code for free-fall detection 2016-04-18 22:27:11 +02:00
Daniel Agar
dfeab4f5e3 remove unused vehicle_status 2016-04-11 18:01:48 +02:00
Julian Oes
f5e0c72ea0 FixedwingLandDetector: timeout fixes
In the case of the control state topic not updating, the land detector
would get stuck. Therefore, set it to landed in that case.
2016-03-14 09:45:34 +01:00
Lorenz Meier
de46d8e872 Land detector: Code cleanup 2015-11-17 14:15:41 +01:00
Lorenz Meier
515d81b8d6 Land detector: Move back to more agile raw airspeed 2015-11-17 14:15:41 +01:00
Lorenz Meier
f02dc3c95f Fixed wing land detector: Use control state, use horizontal acceleration for takeoff detect 2015-11-17 14:15:41 +01:00
Lorenz Meier
fc29fed260 Land detector: Fix code style 2015-10-19 13:47:57 +02:00
Lorenz Meier
616b9f7bc0 Land detector: Add missing POSIX header 2015-09-20 10:25:16 +02:00
Lorenz Meier
ea7ae7d019 Merged beta into master 2015-08-01 16:58:02 +02:00
Lorenz Meier
9f322a395e Make land detector more robust during initial spool-up 2015-07-19 18:30:52 +02:00
Lorenz Meier
d19de58102 Merge branch 'master' of github.com:PX4/Firmware into master_release 2015-06-27 11:54:17 -07:00
tumbili
40cc11a5ed ported land detector 2015-06-26 15:01:17 +02:00
Lorenz Meier
289ad91bcc Fixed wing land detector: Filter GPS speeds more since they are unreliable, leave airspeed filter where it was 2015-06-24 17:44:11 +02:00
Lorenz Meier
891829d3a7 Land detector: Protect fixed wing logic from false-positives due to bad input data 2015-06-11 19:25:17 +02:00
Lorenz Meier
b7986e6fdd land detector: Improve performance for fixed wing setups 2015-06-06 11:37:10 +02:00
Vasily Dybala
6d1df8f721 Update land detector parameters at startup. 2015-02-26 23:19:12 +03:00
Lorenz Meier
378dcc53d6 Code style: minor comment styling 2015-01-17 23:32:00 +01:00
Lorenz Meier
b1127315b4 Fixed land detector param names 2015-01-17 23:26:43 +01:00
Johan Jansen
510a314386 LandDetector: Shorter and less ambiguous param names 2015-01-15 14:58:06 +01:00
Johan Jansen
92add9cf80 LandDetector: Externalized algorithm parameters 2015-01-15 14:37:51 +01:00
Johan Jansen
f1587da4c4 MulticopterLandDetector: Detect land even if autopilot is not landing 2015-01-15 14:37:51 +01:00
Johan Jansen
9ea086bf2d Astyle: Run astyle to fix code formatting 2015-01-15 14:37:51 +01:00
Johan Jansen
10a2dd8a34 LandDetector: Merged fixedwing and multicopter into one module handling both algorithms 2015-01-15 14:37:51 +01:00