Commit Graph

40 Commits

Author SHA1 Message Date
Andy Piper 4c1816a983 Copter: port betaflight in-flight fft analysis to arducopter and expose as a log message
add harmonic notch tracking mode
call AP_GyroFFT::update_freq_hover() from update_throttle_hover()
move gyrofft configuration and control to AP_Vehicle
move fft logging to fft library
2020-02-22 11:15:37 +11:00
bnsgeyer 64f98622c0 Copter: fix tradheli RSC RC passthrough mode
Copter: heli get_pilot_desired_rotor_speed converts interlock input to desired rotor speed
2020-01-09 19:55:02 +09:00
Peter Barker eb452478ac Copter: override do_aux_function_armdisarm method to set armed_with_switch
As well as removing the code duplication, this only sets the flag if
arming was actually successful.  armed-with-switch is used when setting
various state, and it isn't entirely clear that we only use it when
armed.  This would seem to be a safer option.
2020-01-08 18:36:02 +11:00
Peter Barker 0d04ef19fe ArduCopter: let RC_Channel indicate AUX_FUNC::ARMDISARM needs no initialisation
All users set this.
2020-01-08 18:36:02 +11:00
Randy Mackay 610366e4bd Copter: init aux function cases in alphabetical order 2019-11-12 18:56:13 +11:00
Henry Wurzburg 4a51de724d Copter: move support for ADSB Avoidance enable up to RC_Channel 2019-11-12 13:48:09 +11:00
Peter Barker e6c6189fe5 Copter: cope with change in namespace of LogEvent enum
Also move Acro Trainer types into an enum class as the global defines
interfere with the Event names.

Also eliminate the Log_Write_Event wrappers.
2019-11-05 08:19:26 +08:00
Peter Barker b6920e14c8 Copter: remove redundant SurfaceTracking enumeration namespacing
Also rename State to Surface to be more specific about what is being
set/tracked.
2019-10-26 08:08:22 +08:00
Michael du Breuil b42b1c08c4 Copter: Support new AP_Vehicle::set_mode 2019-10-25 08:48:22 +08:00
Peter Barker f7ba79e493 Copter: canonicalize on STANDBY rather than STANDY_BY 2019-10-21 21:22:17 +08:00
Leonard Hall 50a098c359 Copter: Standby functions 2019-10-17 14:57:18 +09:00
Randy Mackay 1c4f47f882 Copter: add upward facing surface tracking 2019-09-28 11:13:14 +09:00
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.
2019-09-13 13:12:08 +09:00
Peter Hall e1b982c99c Copter: RC_Channel: remove fence 2019-09-02 11:03:27 +09:00
Peter Barker 4b51239920 Copter: move mission reset aux switch option to RC_Channel 2019-07-16 09:24:18 +10:00
SergeyBokhantsev 300ee173ce Copter: fix user aux functions 2019-06-11 10:28:15 +09:00
Peter Barker 6dce39cbe1 Copter: use AP_Arming methods to arm and disarm vehicle
Really just changing the namespace of init_arm_motors
2019-05-30 07:37:30 +09:00
Randy Mackay 01909cf4c8 Copter: zigzag mode gets terrain following support 2019-04-19 07:45:52 +09:00
Arjun Vinod f1de62f0d3 Copter: added left out copter flight modes as auxiliary switch options 2019-04-16 10:57:17 +09:00
Patrick José Pereira 86633e45ff Copter: Use new RC_Channel AUX_FUNC
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2019-04-03 09:53:58 -07:00
Randy Mackay 7c09084f02 Copter: add Loiter and Follow to aux switch 2019-03-28 13:54:22 +09:00
Patrick José Pereira 33764d6c3b Copter: Fix typo
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2019-03-26 15:39:23 +11:00
Peter Barker f189860162 Copter: use enum class for ArmingMethod and ArmingRequired 2019-03-12 19:48:14 +11:00
IamPete1 ba3d1bc6c7 Copter: move E-stop state to SRV_Channel 2019-02-27 08:51:24 +09:00
Peter Barker 845f015648 Copter: adjust for Location_Class and Location unification 2019-01-16 11:45:29 +11:00
Peter Barker f48d757bd4 Copter: adjust for location flags being moved out of union 2019-01-16 11:45:29 +11:00
Peter Barker 48155e72eb Copter: correct use of incorrect name for type 2019-01-09 17:21:00 +11:00
Peter Barker 41cd906641 Copter: beep on mode change/change failure for aux switch changes 2018-12-21 09:36:28 +09:00
Francisco Ferreira a2fa63bcf7 Copter: fix Cygwin build
Static initialization doesn't have an exact order, we can't rely on it
2018-12-13 09:28:44 +09:00
Andrew Tridgell 637dc718df Copter: moved LANDING_GEAR to common RC_Channel 2018-11-09 14:35:14 +11:00
Peter Barker 7017345fc9 Copter: let RC_Channel parent library do AC_Avoid stuff 2018-10-30 12:10:42 +11:00
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
2018-10-05 10:05:45 +09:00
CAO MUQING 71beab7502 Copter: create and update Zigzag flight mode 2018-10-05 10:05:45 +09:00
Peter Barker ec6c59faa3 Copter: move handling of disable-gcs-rc-overrides-channel-option up 2018-09-05 11:54:32 +10:00
Peter Barker 0be5e65b4a Copter: correct compilation for missing define
Bad interaction between two PRs that were merged.
2018-09-03 19:47:15 +09:00
Peter Barker 0f4c68aadb Copter: move rc-channel option for lost-vehicle sound up to base class 2018-09-03 16:57:25 +09:00
Pierre Kancir e7c000875e Copter: complet rc option init list 2018-09-03 16:55:43 +09:00
Peter Barker 6e0b5e307a Copter: move handling of sprayer and gripper up 2018-08-17 15:33:35 +09:00
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
2018-08-05 07:52:28 +10:00
Peter Barker b19c03a3c6 Copter: rename switches.cpp to RC_Channel.cpp 2018-08-02 09:52:29 +09:00