Commit Graph
44 Commits
Author SHA1 Message Date
Lorenz Meier b07deed6c6 Land detector: Update param metadata
This helps with param transfers and will hide these params by default from the user.
2018-01-08 09:27:22 +01:00
Daniel Agar ec57832a8f FW land detector increase trigger time and cleanup (#8486) 2017-12-21 12:17:32 -05:00
Dennis Mannhart 8a0a8e20e1 mc_pos_control: use correct altitude as limit
fadfdasf
2017-10-10 10:28:07 +02:00
Dennis Mannhart f9b8afc006 Navigator: Use maximum flight altitude to limit missions
This change limits all mission items to the maximum flight altitude. The mission will still be executed and flown,
but the vehicle will never exceed the mission altitude. This ensures the vehicle can always reach the mission
items. Wether or not the entire mission should be rejected if it falls outside of the fenced area is enforced
in the mission feasibility checker function.
2017-10-10 10:28:07 +02:00
Julian Oes 7229ec2a37 Move throttle check from land detector to posctrl
This commit is an attempt to fix a race condition happening on takeoff
between the land detector and the multicopter position controller.

Previously, an auto-takeoff leads to the following events:

1. A takeoff setpoint is given.
2. The thrust setpoint spikes because we don't enter smooth takeoff yet.
3. The land detector detects a takeoff because of the high thrust.
4. The position controller sees the landed state transition and
   initiates the smooth takeoff. Thrust goes back down.
5. Depending on control gains the takeoff is successful or fails
   if the smoothing takes too long which causes thrust to be too low, so
   the land detector detects land again.

The two obvious problems with this are:
- The intermittent spike.
- The failed takeoff because of the smoothing leads to a delay..

With this change, the logic for a takeoff detection is moved from the
land detector to the position controller.

The events are now:

1. A takeoff setpoint is given.
2. The position controller detects the takeoff setpoint and initiates
   the smooth takeoff.
3. As thrust ramps up, the land detector detects the take off.

In the same way, we now detect the intent to takeoff in manual,
altitude, control, position control in the position controller instead
of in the land detector.
2017-10-09 19:05:15 +02:00
Dennis Mannhart 10c41e2624 land xy max: set it back to 1.5 2017-08-01 19:31:34 +02:00
Dennis Mannhart 50ef2d0e52 landdetector: adjust time to 3 stage detection 2017-08-01 19:31:34 +02:00
Lorenz Meier 669e580f0a Land detector max altitude: Adjust max limit 2017-05-14 14:24:06 +02:00
Lorenz Meier cdb8146af5 Land detector: Choose a default alt limit parameter value that ensures regular users are not running into it 2017-05-14 13:27:57 +02:00
Lorenz Meier 61cd89efc1 Land detector: Since multicopters take off and land slower than 0.7 m/s, setting the default detection threshold to 0.5 m/s is a much safer default 2017-04-09 17:22:58 +02:00
Lorenz Meier 706464d2eb Land detector: Fix param meta data 2017-03-12 14:42:19 +01:00
Matthias Grob 2b90224075 land_detector: added parameter for manual position stick takeoff threshold 2017-02-28 13:05:33 +01:00
Dennis Mannhart 9c2dd48814 landdetector: m/s to m 2017-02-27 22:54:19 +01:00
Dennis Mannhart 7f54f891c1 land_detector: set max height to 100 2017-02-27 22:54:19 +01:00
Dennis Mannhart a1982e0392 land_detector: battery level status to adjust maximum altitude possible 2017-02-27 22:54:19 +01:00
Matthias Grob e6031a97fa land_detector: added a parameter for the manual land detection stick throshold
because it is definitely something that needs to be allowed to tune or disable for different application scenarios
2017-02-23 13:18:49 +01:00
Beat Küng 3dc6e7b574 LandDetector: use a 64bit counter for total system flight time
The previous 32bit counter wrapped in ~1.19h, this switches to 2 32bit
counters, wrapping in 584942 years.
2017-02-02 09:22:25 +01:00
Lorenz Meier 75132a50e6 Land detector: Measure total system flight time
This implementation is a baseline implementation and makes no attempt to be tamper-proof. A monotonic counter like the W25R64FV or a similar HW facility would be required to achieve this.
2017-01-29 15:48:34 +01:00
Lorenz Meier 9ef97b78c8 Land detector: Turn throttle range parameter into proper user-configurable parameter 2017-01-28 16:23:04 +01:00
Lorenz Meier 8b9b02bee8 Land detector: Update params 2016-04-29 14:58:27 +02:00
Lorenz Meier 3ccd9988d3 Multicopter land detector: Enforce sync between system and detector 2016-04-29 12:34:58 +02:00
Lorenz Meier aa6168963a Land detectorr: Fix units, complete meta data for decent user representation 2016-04-25 09:35:23 +02:00
Emmanuel Roussel ec427f61c4 fix a small mistake: parameter LNDMC_FFALL_TRIG was not shown in QGC. 2016-04-18 22:27:11 +02:00
Emmanuel Roussel e6b3cf3ac9 Fix code style
(Ran AStyle)
2016-04-18 22:27:11 +02:00
Emmanuel Roussel 776c7f5d60 Updated commander to take free-fall into account
Added free-fall status in vehicle_status topic
2016-04-18 22:27:11 +02:00
Emmanuel Roussel 98d51179ad Added time to trigger free-fall as a parameter 2016-04-18 22:27:11 +02:00
Emmanuel Roussel 78a99797fb Implemented first try on multicopter free-fall detection 2016-04-18 22:27:11 +02:00
Julian Oes 836c63339e land_detector_params: comment fix 2016-03-14 09:45:34 +01:00
Daniel Agar 7a9427bc34 param remove empty @unit 2016-03-14 09:12:34 +01:00
Daniel Agar c9b03a9844 land_detector param @unit 2016-03-14 09:10:29 +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 e11a753e24 Land detector: Disable params in build 2015-10-10 16:20:49 +02:00
Lorenz Meier 0321f416a0 Increase allowance for vertical velocity in landed mode 2015-07-19 18:33:14 +02:00
Lorenz Meier 5bec38b37d MC land detector: Slightly decrease allowed vertical motion during landed state. This is important so that fast descends do not result in a false positive landed state 2015-06-30 09:51:04 +02:00
Lorenz Meier 5549d480fd MC land detector: Update params and fix docs. Allow more motion during the landed state, but become more picky on throttle. 2015-06-30 09:51:04 +02:00
Lorenz Meier 640024357f Land detector: increase ground speed threshold 2015-06-24 17:44:44 +02:00
Lorenz Meier b7986e6fdd land detector: Improve performance for fixed wing setups 2015-06-06 11:37:10 +02:00
Lorenz Meier 945aa4789b Land detector: Make fixed wing detections more stable with better param 2015-05-24 11:45:42 +02:00
Johan Jansen 9ddb7e72e4 LandDetector: Check each rotation angle rather than the magnitude 2015-02-09 18:06:29 +01:00
Johan Jansen e38b25c1f7 LandDetector: Fix default param scale error 2015-02-09 16:52:04 +01:00
Johan Jansen 004118f929 LandDetector: Change rotation rate in rads/s to deg/s (more similar to mpc params) 2015-02-09 12:47:31 +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