Commit Graph

22 Commits

Author SHA1 Message Date
murata 28ccc167f7 AP_LandingGear: Change the tab code to whitespace 2020-04-27 09:29:18 +09:00
Randy Mackay 6297306492 AP_LandingGear: add OPTIONS param to auto deploy and retract 2020-02-26 08:01:00 +09:00
Tom Pittenger cf2723458d AP_LandingGear: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Michael du Breuil 0808539ee5 AP_LandingGear: Remove unused members 2018-11-27 07:36:17 +11:00
Eugene Shamaev 9cba4b2e70 AP_LandingGear: Helper for landing 2018-11-17 20:31:01 -08:00
Andrew Tridgell ac920633af AP_LandingGear: use SERVO_MIN/MAX/REVERSED for landing gear 2018-11-10 21:24:19 +11:00
Andrew Tridgell 486ecd6148 AP_LandingGear: added height based triggering
very useful for manual takeoffs and landings
2018-11-10 21:24:19 +11:00
Andrew Tridgell 2bab144eca AP_LandingGear: make singleton a pointer
this allows common code for rover and sub
2018-11-09 14:35:14 +11:00
Eugene Shamaev fa6afe145f AP_LandingGear: weight on wheels, debounce, singleton 2018-11-09 14:35:14 +11:00
Matt 15823d9e97 AP_LANDING_GEAR: Remove deploy lock
Since the RC switches only respond to changes, there is no longer a need
for this lock state. The gear can be retracted or deployed by RC switch,
flight mode, or mavlink command freely without convoluted unlocking
methods.  Also removed use of this in the associated Copter code.
2018-08-03 10:59:15 +09:00
Andrew Tridgell ad99b04de7 AP_LandingGear: removed create() method for objects
See discussion here:

  https://github.com/ArduPilot/ardupilot/issues/7331

we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach

Thanks to assistance from Lucas, Peter and Francisco
2017-12-14 08:12:28 +11:00
Lucas De Marchi beabccf9ef AP_LandingGear: add static create method 2017-09-26 03:01:21 +01:00
Randy Mackay 42cab6b533 AP_LandingGear: add startup position selection parameter 2017-08-05 11:20:41 +09:00
Randy Mackay c9cc0de83d AP_LandingGear: set pwm only when set_position called
Also simplify interface and internal state
2017-06-13 13:56:07 +09:00
Randy Mackay e84b5c63be LandingGear: remove unused enabled method
Also minor formatting fix
2017-06-10 10:34:33 +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
Lucas De Marchi 83f11145d5 AP_LandingGear: replace header guard with pragma once 2016-03-16 18:40:41 +11:00
Gustavo Jose de Sousa 105255eadb AP_LandingGear: standardize inclusion of libaries headers
This commit changes the way libraries headers are included in source files:

 - If the header is in the same directory the source belongs to, so the
 notation '#include ""' is used with the path relative to the directory
 containing the source.

 - If the header is outside the directory containing the source, then we use
 the notation '#include <>' with the path relative to libraries folder.

Some of the advantages of such approach:

 - Only one search path for libraries headers.

 - OSs like Windows may have a better lookup time.
2015-08-11 16:28:44 +10:00
Randy Mackay ed7e176c61 LandingGear: command_mode becomes enum 2015-01-07 11:58:22 +09:00
Robert Lefebvre c297aaeeab AP_LandingGear: Add force_deploy method. 2015-01-07 11:58:19 +09:00
Robert Lefebvre 4177852d89 AP_LandingGear: Remove relay control from library. 2015-01-07 11:58:17 +09:00
Robert Lefebvre 9b0a33c453 AP_LandingGear: Create LandingGear Library. 2015-01-07 11:58:15 +09:00