Peter Barker
d1c2e0017e
Copter: remove redundant SurfaceTracking enumeration namespacing
...
Also rename State to Surface to be more specific about what is being
set/tracked.
5 years ago
Michael du Breuil
b42b1c08c4
Copter: Support new AP_Vehicle::set_mode
5 years ago
Peter Barker
f7ba79e493
Copter: canonicalize on STANDBY rather than STANDY_BY
5 years ago
Leonard Hall
50a098c359
Copter: Standby functions
5 years ago
Randy Mackay
1c4f47f882
Copter: add upward facing surface tracking
5 years ago
Peter Barker
b4537bebd8
Copter: move control_mode_t into being Mode::Number enum class
...
Fixes this compiler error:
In file included from ../../ArduCopter/sensors.cpp:1:
In file included from ../../ArduCopter/Copter.h:195:
../../ArduCopter/mode.h:1291:9: fatal error: declaration shadows a variable in the global namespace [-Wshadow]
AUTO, // after A and B defined, pilot toggle the switch from one side to the other, vehicle flies autonomously
^
../../ArduCopter/defines.h:38:5: note: previous declaration is here
AUTO = 3, // fully automatic waypoint control using mission commands
^
1 error generated.
5 years ago
Peter Hall
e1b982c99c
Copter: RC_Channel: remove fence
6 years ago
Peter Barker
4b51239920
Copter: move mission reset aux switch option to RC_Channel
6 years ago
SergeyBokhantsev
300ee173ce
Copter: fix user aux functions
6 years ago
Peter Barker
6dce39cbe1
Copter: use AP_Arming methods to arm and disarm vehicle
...
Really just changing the namespace of init_arm_motors
6 years ago
Randy Mackay
01909cf4c8
Copter: zigzag mode gets terrain following support
6 years ago
Arjun Vinod
f1de62f0d3
Copter: added left out copter flight modes as auxiliary switch options
6 years ago
Patrick José Pereira
86633e45ff
Copter: Use new RC_Channel AUX_FUNC
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
6 years ago
Randy Mackay
7c09084f02
Copter: add Loiter and Follow to aux switch
6 years ago
Patrick José Pereira
33764d6c3b
Copter: Fix typo
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
6 years ago
Peter Barker
f189860162
Copter: use enum class for ArmingMethod and ArmingRequired
6 years ago
IamPete1
ba3d1bc6c7
Copter: move E-stop state to SRV_Channel
6 years ago
Peter Barker
845f015648
Copter: adjust for Location_Class and Location unification
6 years ago
Peter Barker
f48d757bd4
Copter: adjust for location flags being moved out of union
6 years ago
Peter Barker
48155e72eb
Copter: correct use of incorrect name for type
6 years ago
Peter Barker
41cd906641
Copter: beep on mode change/change failure for aux switch changes
6 years ago
Francisco Ferreira
a2fa63bcf7
Copter: fix Cygwin build
...
Static initialization doesn't have an exact order, we can't rely on it
6 years ago
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