Commit Graph

46 Commits

Author SHA1 Message Date
Peter Barker 52d5b4e684 AP_LandingGear: use GCS_SEND_TEXT rather than gcs().send_text
Co-authored-by: muramura <ma2maru@gmail.com>
2024-08-07 18:33:16 +10:00
Peter Barker 97c8d149f7 AP_LandingGear: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
Iampete1 f26ff3ee5a AP_LandingGear: remove unneeded relay include 2023-12-19 10:01:01 +11:00
Peter Barker 09a59bc934 AP_LandingGear: avoid use of MINIMIZE_FEATURES in AP_LandingGear_config.h 2023-08-01 10:44:59 +10:00
Peter Barker e10593ee69 AP_LandingGear: make and use AP_LANDINGGEAR_ENABLED 2022-12-14 18:30:23 +11:00
jackhong12 4a4f361a17 all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
Iampete1 e511f72294 AP_LandingGear: SITL: only set defualts is SITL pin is set avoiding enable via param conversion 2022-08-02 10:48:19 +10:00
Henry Wurzburg cc51e9f995 AP_LandingGear: add note to desc's on how to determine GPIO pin numbers 2022-04-24 08:21:01 +09:00
Iampete1 b818401563 AP_LandingGear: add enable param 2021-11-23 11:40:44 +11:00
Peter Barker 215bc51775 AP_LandingGear: remove @Values from param metadata where @Bitmask exists 2021-06-23 18:37:34 +10:00
Patrick José Pereira d749fce378 AP_LandingGear: Simplify boolean expression
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-23 10:30:05 +11:00
Patrick José Pereira 41c653f973 AP_LandingGear: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Peter Barker bacbe21011 AP_LandingGear: move logging of LandingGear event into LandingGear
Less code and Plane will get the event logged too.
2020-12-05 20:45:20 +11:00
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
Peter Barker 2dacafe0f3 AP_Landing: emit DEPLOY gcs text only if not already deployed 2019-12-02 07:28:53 +08:00
Peter Barker 992f216cc5 AP_LandingGear: use enum-class for SRV_CHANNEL_LIMIT_TRIM and friends 2019-11-26 10:17:17 +11:00
Randy Mackay a4d4513da4 AP_LandingGear: send-text only if servo output has been configured 2019-11-11 17:54:29 +11:00
Randy Mackay 5c99f02c15 AP_LandingGear: minor format fix 2019-05-11 08:49:40 +09:00
Tom Pittenger cf2723458d AP_LandingGear: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Peter Barker 6fc76a32af GLOBAL: use AP::logger() and strip redundant Log_ from methods 2019-01-18 18:08:20 +11:00
Peter Barker b47733142f GLOBAL: rename DataFlash_Class to AP_Logger 2019-01-18 18:08:20 +11: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
Andrew Tridgell fa1fc004bf AP_LandingGear: fixed pullup/pulldown and doc strings 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
Dr.-Ing. Amilcar Do Carmo Lucas eebf26ed9f AP_LandingGear: Improve the PWM parameters descriptions 2017-06-06 11:06:26 +10:00
Dr.-Ing. Amilcar Do Carmo Lucas 44eca002f0 AP_LandingGear: Use SI units conventions in parameter units
Follow the rules from:
http://physics.nist.gov/cuu/Units/units.html
http://physics.nist.gov/cuu/Units/outside.html
and
http://physics.nist.gov/cuu/Units/checklist.html
one further constrain is that only printable (7bit) ASCII characters are allowed
2017-05-17 18:07:25 +10:00
Andrew Tridgell 929fbce2c2 AP_LandingGear: use new SRV_Channels API 2017-01-12 17:39:37 +11: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
Lucas De Marchi 831d8acca5 Remove use of PROGMEM
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:

    git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
    git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'

The 2 commands were done so we don't leave behind spurious spaces.

AVR-specific places were not changed.
2015-10-30 14:35:16 +09: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