Andrew Tridgell
637dc718df
Copter: moved LANDING_GEAR to common RC_Channel
6 years ago
Peter Barker
7017345fc9
Copter: let RC_Channel parent library do AC_Avoid stuff
6 years ago
Randy Mackay
d3f7214bcf
Copter: revamp zigzag mode
...
more accurately stops on target
uses current z target when moving to edge
loses unnecessary auto_yaw.set_mode
ensure A and B are different
6 years ago
CAO MUQING
71beab7502
Copter: create and update Zigzag flight mode
6 years ago
Peter Barker
ec6c59faa3
Copter: move handling of disable-gcs-rc-overrides-channel-option up
7 years ago
Peter Barker
0be5e65b4a
Copter: correct compilation for missing define
...
Bad interaction between two PRs that were merged.
7 years ago
Peter Barker
0f4c68aadb
Copter: move rc-channel option for lost-vehicle sound up to base class
7 years ago
Pierre Kancir
e7c000875e
Copter: complet rc option init list
7 years ago
Peter Barker
6e0b5e307a
Copter: move handling of sprayer and gripper up
7 years ago
Peter Barker
f2b1387c1c
RC_Channel: add AUTOTUNE to init_aux_function routine
...
Also, cark it in SITL if we fail to initialise an aux function
7 years ago
Peter Barker
b19c03a3c6
Copter: rename switches.cpp to RC_Channel.cpp
7 years ago
Peter Barker
e7e56dde7a
Copter: move handling of RC switches into RC_Channel
7 years ago
SergeyBokhantsev
ea3de59107
Copter: implement user auxswitch functions
7 years ago
Andrew Tridgell
3e08132828
Copter: CH_12 can be used with any HAL, not just HAL_PX4
7 years ago
Peter Barker
df83cb034e
Copter: use ArmingMethod enumeration
7 years ago
Pierre Kancir
b95fe2b8b1
Copter: rename SPRAYER-enabled-define to SPRAYER_ENABLED
7 years ago
Peter Barker
4b4e66e2bd
Copter: correct comment about mode change
7 years ago
Andrew Tridgell
2425c65e74
Copter: implement 'air-mode' for copter
...
this implements what betaflight calls 'air-mode'. This gives attitude
control when throttle is at zero, allowing for zero-throttle maneuvers,
plus keeping the copter level on the ground.
This was already implemented if an interlock switch was setup, but it
should also work with an arming switch. If using an arming switch then
throttle should not be considered zero as long as the arming switch
hasn't gone low.
7 years ago
Andrew Tridgell
0d56526400
Copter: added de-bouncing of aux switches
...
this prevents a crash with a switch such as arm/disarm getting a
single frame RC glitch
7 years ago
bnsgeyer
86440b20ba
Copter: Tradheli - disables inverted flight option for single and dual heli frames
7 years ago
Dr.-Ing. Amilcar do Carmo Lucas
8e143aa637
Copter: Do not switch into a disabled flight mode
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
ed36ec3c29
Copter: add option to disable THROW mode
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
b27c00dc5f
Copter: add option to disable ACRO mode
7 years ago
Peter Barker
7154f4dea4
Copter: add option to disable LOITER mode
7 years ago
Peter Barker
b9ad2bc8db
Copter: add option to disable AUTO mode
...
Saves ~12k of flash
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
def098bd8a
Copter: obey ADSB_ENABLED == DISABLED
7 years ago
murata
296ee7315b
Copter: minor formatting fixes
7 years ago
murata
c31c2a4cf1
Copter: optionalize the winch
7 years ago
Andrew Tridgell
89674482a7
Copter: added FLTMODE_CH parameter
...
this allows for the flight mode to be on any RC channel, or no channel
at all to disable RC flight modes
7 years ago
Pierre Kancir
10e6fe43dd
Copter: Add a switch option to enable/disable RC_Override
7 years ago
Randy Mackay
2d23e1f7c7
Copter: rename flightmode_ objects to mode_
7 years ago
Peter Barker
f2495b2d08
Copter: FlightMode - convert LOITER flight mode
7 years ago
Randy Mackay
787954fa37
Copter: integrate winch library
...
fixes after peer review:
rename winch-disable to winch-relaxed
add DO_WINCH to do-verify
winch release-length accepts rate
7 years ago
Andrew Tridgell
951ed95eb9
Copter: support inverted flight CH7 option
7 years ago
Randy Mackay
44a436642b
Copter: complete rename to SmartRTL
...
Also fix parameter description for CH7_OPT
8 years ago
squilter
4b57a4a231
Copter: rename SafeRTL to SmartRTL
8 years ago
squilter
ba0e08552f
Copter: add SafeRTL flight mode
8 years ago
Peter Barker
cdf9ebcb39
Copter: camera is responsible for taking distance-based-images and logging
8 years ago
Peter Barker
f60389d4aa
Copter: use send_text method on the GCS singleton
8 years ago
Randy Mackay
a5ea9420c0
Copter: landing gear position set less often
...
This change means no pwm output is sent to the landing gear servos until the pilot has moved the switch
8 years ago
Randy Mackay
51c00f8144
Copter: use only downward facing rangefinder
8 years ago
Peter Barker
b7f982d7ce
Copter: support for arming and disarming using an auxsw
8 years ago
Andrew Tridgell
0f6d0c5ba9
Copter: combined tri, single, coax and multicopter into a single build
...
this allows copter to be just 2 builds, one for heli, and one for
everything else
8 years ago
Andrew Tridgell
5a87ae3f01
Copter: use new SRV_Channels API
8 years ago
Peter Barker
a233024e05
Copter: fix compilation when fence andd proximity are disabled
...
This adds AC_AVOID_ENABLED; avoidance must be disabled if either
of fence or proximity are disabled.
Parameter definitions have been reordered to avoid compiler warnings;
this make sthe numbering non-linear
8 years ago
Randy Mackay
38478638de
Copter: aux switch for enable/disable proximity based avoidance
8 years ago
Randy Mackay
2371b05696
Copter: init avoid-adsb and prec-loiter enabled from switch positions
...
Without this there could be a mismatch between the switch position and whether the feature is enabled/disabled
8 years ago
Randy Mackay
2365036e5c
Copter: move #if within case statement in switches.cpp
...
This removes some compile warnings when features are disabled
8 years ago
Randy Mackay
70feff487e
Copter: format fixes to switches.cpp
...
No functional change
8 years ago
Peter Barker
556eb88fe5
Copter: fix compile when precland is not selected
...
Fixes #5327
8 years ago