Commit Graph

21 Commits

Author SHA1 Message Date
Peter Barker 8e9de04221 ArduCopter: correct initialisation of PrecLand buffers
this value determines the size of buffers allocated.

Too high and you waste RAM.  Too low and you probably won't store data correctly.
2024-09-24 10:56:57 +09:00
tzarjakob 97b7e8d1d0 ArduCopter: configuration of Precision Landing for custom build server 2023-03-27 09:04:07 +11:00
Peter Barker 2da88263e6 Copter: tidy invocation of precland.update
Setting the altitude to home-relative is misleading/wasteful in this method as
the alt is unused in precland unless it is marked as "OK" with the
second parameter
2021-09-11 14:17:24 +10:00
Brent McLaughlin 04f817020f Copter: use glitch-protected range from rangefinder for precision landing
use glitch protected result from rangefinder so precision landing avoids aggressive maneuvers due to large range spikes
2020-11-24 13:00:41 +09:00
Randy Mackay 3e7fb66a77 Copter: precision landing does not use terrain database
precision landing was always only using the range finder, there was no use of the provided alt unless the rangefinder was good
2019-12-17 20:02:01 +09:00
Peter Barker a58813c828 Copter: precland: don't use altitude from bad location 2019-12-02 16:13:49 +08:00
Jaaaky 5ce185e4ac ArduCopter: convert to unix style end-of-line 2019-06-19 16:39:09 +09:00
Peter Barker 366051c39f Copter: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker 845f015648 Copter: adjust for Location_Class and Location unification 2019-01-16 11:45:29 +11:00
Randy Mackay 4fa0cc4bd3 Copter: pass update rate to precland init 2018-09-21 16:38:35 +09:00
Randy Mackay eef839703f Copter: remove unnecessary copter prefix from precland update 2018-09-21 16:38:35 +09:00
Mathieu OTHACEHE 152edf7189 Global: remove mode line from headers
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Jonathan Challinger f2ef8eec8c Copter: use velocity output from AC_PrecLand 2016-10-14 10:46:08 +09:00
Randy Mackay 3be76743bf Copter: precland checks get_alt_cm return value
This makes it easier for Covarity to recognise that we don't have an error by checking the return value of get_alt_cm
No functional change
2016-08-08 13:30:19 +09:00
Jonathan Challinger e311139a21 Copter: use terrain alt for precland if rangefinder is unavailable 2016-07-12 18:40:25 +09:00
Jonathan Challinger 0f4367744f Copter: update precland at 400hz, log at 25hz 2016-07-12 18:40:25 +09:00
Randy Mackay 5ac13c0355 Copter: move rangefinder variables into structure
moved in rangefinder_alt, rangefinder_alt_health and rangefinder_enabled
2016-05-21 10:36:53 +09:00
Randy Mackay 949d5f7109 Copter: add rangefinder_alt_ok
Reduces some duplicate code,no functional change.
2016-05-21 10:36:53 +09:00
Randy Mackay 7689315ba2 Copter: rename sonar to rangefinder 2016-05-21 10:36:53 +09:00
Daniel Nugent 9fe3abf5ca Copter: precision landing uses sonar alt if available 2015-09-11 20:56:09 +09:00
Randy Mackay 26ded641db Copter: integrate Precision Landing lib 2015-08-31 18:00:28 +09:00