Commit Graph

300 Commits

Author SHA1 Message Date
Iampete1 85638cf4fa Copter: fix RC init order to avoid error message 2021-09-21 17:49:47 +10:00
Iampete1 5002abcea6 Copter: convert to new ARMDISARM_AIRMODE 2021-09-21 09:36:24 +10:00
bnsgeyer ca007ee6f6 Copter: Allow Tradheli to spoolup in guided or auto mode 2021-08-23 12:26:00 +09:00
Peter Barker 6f5e3bf4ff ArduCopter: move VehicleClass handling to AHRS frontend
.... and renaming the enumeration while we're at it
2021-08-17 10:34:07 +10:00
Iampete1 9f5591be02 Copter: notify buzzer on every flight mode change 2021-08-05 14:42:42 +10:00
Iampete1 cbf93c7dad Copter: add new dynamic mixer frame class 2021-07-20 09:19:28 +10:00
Peter Barker 52f6c0e5ca ArduCopter: use singleton to access AP_Terrain data 2021-07-12 17:34:44 +10:00
Peter Barker 3684741517 ArduCopter: remove AC_TERRAIN compilation option
Use AP_TERRAIN_AVAILABLE instead
2021-07-12 17:34:44 +10:00
Peter Barker cdbf6d216e ArduCopter: remove HIL support 2021-06-15 09:47:31 +10:00
Peter Barker 61f41803b9 ArduCopter: remove optical flow pointer from AP_AHRS
Nothing was ever using it.
2021-05-30 10:44:42 +10:00
Peter Barker b9c1633358 ArduCopter: remove pointless init_optflow wrapper
Hiding a one-line call in a wrapper just adds size to the build
2021-05-28 13:41:50 +09:00
Leonard Hall 4bae8f03a4 Copter: Use PosControl fixes 2021-05-24 20:13:37 +10:00
Andy Piper e19bf8149b Copter: generalise ESC telemetry to allow harmonic notch handling with other ESCs 2021-05-12 17:01:11 +10:00
Tatsuya Yamaguchi 0cce5699b2 Copter: change from control_mode to flightmode 2021-03-23 22:48:20 +11:00
Tatsuya Yamaguchi ed8384b45a Copter: add option to disable LANDING_GEAR 2021-03-17 10:41:11 +09:00
Iampete1 a572820dbc Copter: system: use config_error loop don't panic 2021-02-09 12:43:54 +09:00
Iampete1 d6fa4d97e3 Copter: add 6DoF support 2021-02-09 12:43:54 +09:00
Mark Whitehorn f405454aba Copter: add nullptr checks for get_frame_string
fix rebase errors
2021-02-09 12:43:53 +11:00
Mark Whitehorn cb687a6fff Copter: move get_frame_string to Motors class 2021-02-09 12:43:53 +11:00
Patrick José Pereira ad82e01270 ArduCopter: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Iampete1 643966fb3e Copter: add SCRIPTING_MATRIX frame class 2021-01-26 11:07:36 +09:00
Iampete1 0a23084d43 Copter: move get_frame_mav_type to motors 2021-01-26 11:07:36 +09:00
Pierre Kancir f53892a1fa Copter: don't report initial mode switch as failsafe mode change 2021-01-09 08:28:29 +09:00
Pierre Kancir 1e5d9fb299 Copter: set initial mode on startup 2020-12-16 17:27:07 +09:00
murata dcda0c48ca Copter: Support for decacopters 2020-12-08 11:59:10 +11:00
Andrew Tridgell 0329a46b4a ArduCopter: moved init_safety to AP_Vehicle 2020-12-08 11:14:24 +11:00
Gone4Dirt 434af4a4d4 Copter: Move AP_Generator to AP_Vehicle 2020-11-24 12:54:52 +11:00
Paul Riseborough 379506b718 ArduCopter: Don't request EKF yaw reset unless innovations are large
This prevents unwanted resets if GPS fails.
2020-10-30 14:45:40 +09:00
Tatsuya Yamaguchi 813bc2e08a Copter: replace message indicating that initialisation has completed 2020-09-22 09:52:52 +10:00
Randy Mackay 315d9da138 Copter: add ekf alt pre-arm and mode init checks 2020-08-20 12:41:40 +09:00
Siddharth Purohit 9b9954aa46 Copter: move to using CANManager library 2020-08-19 17:31:09 +10:00
Randy Mackay 48d27e1016 Copter: fixup winch comment 2020-08-07 21:55:07 +09:00
Randy Mackay 925f76c048 Copter: integrate winch changes
includes the following changes
winch_update called at 50hz
removed ability to set winch rate from ch6 tuning
remove wheel encoder
call winch library to log at 10hz
fix winch param prefix
2020-08-07 21:55:07 +09:00
Andy Piper 54c3d07547 Copter: make make/gimbal configurable on a per-board basis 2020-08-04 09:18:14 +10:00
Peter Barker a679cd9b92 Copter: add support for AP_Generator 2020-07-03 08:21:42 +09:00
Andy Piper 25dcc1a623 Copter: add support for individually tracking fft peaks and motor rpms with harmonic notches
log harmonic notch even if FFT is disabled. Fallback to throttle notch for BLHeli
move harmonic notch update to AP_Vehicle
2020-06-21 19:09:35 +10:00
Andrew Tridgell 265b9a42fb ArduCopter: invalidate param count when changing param tree structure 2020-04-29 07:36:55 +10:00
Randy Mackay 04c3f040a8 Copter: visual odometry moved to AP_Vehicle 2020-04-09 19:41:08 +09:00
Andrew Tridgell 375c08f39c Copter: convert to new get_rpm() API 2020-03-12 08:36:40 +11:00
Peter Barker 3802ca217e ArduCopter: move AP_PARM_KEY_DUMP function up to AP_Vehicle base class
Common to all vehicles now, including Tracker
2020-03-10 11:00:14 +11:00
Peter Barker ae2578e5c9 ArduCopter: move initialisation of serial and gcs to AP_Vehicle 2020-02-25 11:50:55 +11:00
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
Peter Barker 18670d681e Copter: let AP_Vehicle handle loop() 2020-02-06 14:41:06 +11:00
Peter Barker 9e8af48cce ArduCopter: move some common init_ardupilot code up to AP_Vehicle 2020-01-28 11:34:51 +11:00
Peter Barker 9466126fa8 Copter: let AP_Vehicle base class worry about scheduler delay callback 2020-01-21 11:37:28 +11:00
Andrew Tridgell 1fae2009db Copter: update for new SRV_Channels parameter conversion call 2020-01-14 14:23:11 +11:00
Peter Barker 2694560c38 Copter: generally unseen remove report_version
This won't generally be seen or useful to anyone
2020-01-04 10:46:51 +09:00
Andrew Tridgell 630bd7062c Copter: removed init_vehicle from separate vehicles
use common call from AP_BoardConfig
2019-12-30 13:02:04 +11:00
Andy Piper 93abfdb905 Copter: create generic vehicle management and move runcam to it 2019-12-30 13:02:04 +11:00
Randy Mackay 36fdad4e61 Copter: scripting init sends failure message 2019-12-03 12:48:32 +08:00
Gone4Dirt 180d4e713c Copter: Added autorotation flight mode and support 2019-11-29 08:06:10 +08:00
Andrew Tridgell 68bb7a516b Copter: use HarmonicNotchDynamicMode enum class 2019-11-19 07:08:01 +08:00
Peter Barker 0ab9ddd600 Copter: correct compilation when fence disabled 2019-11-06 16:36:35 +11:00
Andy Piper ac071df104 ArduCopter: add support for BLHeli telemetry-based updates to the harmonic notch
refactor to include RPM for all copter types
2019-10-31 11:18:40 +08:00
Andy Piper 8ce7f02167 ArduCopter: add functions to update dynamic notch frequency. Periodically log the frequency.
tradheli- make RPM sensor input to harmonic notch in hertz
2019-10-10 20:26:02 +09:00
Peter Barker e5fa8f622b Copter: initialise AC_Fence library 2019-09-28 07:58:48 +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 Barker a9ffe902f0 Copter: mount uses AP_SerialManager singleton 2019-08-28 06:55:28 +10:00
Randy Mackay 709c874d8b Copter: integrate AP_OAPathPlanner 2019-08-17 09:42:43 +09:00
Peter Barker 48a1b2f436 Copter: avoid allocate a GCS_MAVLINK per mavlink channel 2019-08-14 18:25:43 +10:00
Michael du Breuil ed2ae707f4 Copter: Add keydump feature 2019-07-30 10:42:16 +10:00
Leonard Hall f128e93ec5 Copter: support for upgrade to PID object 2019-07-25 17:38:15 +09:00
Randy Mackay eb433508f1 Copter: esc cal startup check moved outside rc output init
this ensures we don't accidentally enter esc calibration during motor test
2019-07-22 14:53:36 +09:00
misswhile 15a326bade Copter: fixed can't enter esc calibration by RC. 2019-07-18 16:54:16 +09:00
Peter Barker 05925b57ad Copter: mark position_ok methods as const 2019-07-09 09:26:45 +10:00
Peter Barker cf45108efb Copter: set Heli frame default at compile-time 2019-07-04 10:05:01 +09:00
Peter Barker 478c62b5ac Copter: stop setting beacon in AHRS 2019-07-01 07:20:58 +09:00
Peter Barker db2aff56c0 Copter: remove pointless protocol parameter to setup_uart 2019-06-25 09:47:08 +10:00
Peter Barker 5278919463 Copter: stop pointlessly passing serial manager around 2019-06-25 09:47:08 +10:00
Peter Barker 5985579383 Copter: stop setting AC_Avoid in AC_WPNav; it uses singleton now 2019-06-06 11:47:22 +10:00
Peter Barker 5d996a289a Copter: move responsibility for logging into library 2019-04-23 10:06:17 +10:00
Peter Barker 46a6f45e4a Copter: adjust for desired spool state and spool state renames 2019-04-14 12:18:03 +09:00
bnsgeyer d949c80d54 Copter: tradheli replaces rotor_runup_complete with spool state 2019-04-08 09:42:21 +09:00
Peter Barker 2040580ce7 Copter: move enabled parameter into compass library 2019-04-02 10:24:49 +11:00
bnsgeyer 2fc942ac24 Copter: tradheli-convert swash parameters on firmware upgrade 2019-03-20 10:40:20 +10:00
Peter Barker 451f5f17ce Copter: move devo telemetry handling to GCS 2019-03-19 14:39:14 +11:00
Peter Barker e22b29bce4 Copter: FrSky support has moved to GCS 2019-03-19 14:39:14 +11:00
Michael du Breuil cac4b91671 Copter: Allow scripting to run 2019-03-05 08:45:54 +11:00
Peter Barker f759c7ac7e Copter: GCS_MAVLink takes care of mavlink capabilities 2019-02-19 13:14:52 +11:00
Peter Barker 8de7f4a520 Copter: devo telemetry no long requires singleton classes to be passed in 2019-02-13 19:24:07 +00:00
Peter Barker a0189d6060 Copter: AP_Frsky_Telem uses singletons 2019-02-12 17:53:23 +00: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
Peter Barker 845f015648 Copter: adjust for Location_Class and Location unification 2019-01-16 11:45:29 +11:00
Randy Mackay 50c5ad7076 Copter: TradHelis force spool up before takeoff 2019-01-15 11:41:44 +09:00
Andrew Tridgell 89d54767b1 Copter: convert to use AC_AutoTune library
this maintains existing behaviour
2018-12-18 10:34:42 +09:00
Peter Barker 901e428d53 Copter: DataFlash uses AP_Mission singleton 2018-12-13 14:45:30 +09:00
Peter Barker 4ffd38f6bb Copter: GCS_MAVLink uses dataflash singleton 2018-12-11 08:43:47 +09:00
Peter Barker 73940df48e Copter: move mission into mode_auto 2018-11-09 13:35:40 +09:00
Michael du Breuil 0f636db159 Copter: Make capability init consistent 2018-11-05 14:04:36 +11:00
Peter Barker ec6c59faa3 Copter: move handling of disable-gcs-rc-overrides-channel-option up 2018-09-05 11:54:32 +10:00
Michael du Breuil 433f01ddf0 Copter: Remove unneeded ServoRelayEvent mask set 2018-08-20 21:31:06 -07:00
Peter Barker e7e56dde7a Copter: move handling of RC switches into RC_Channel 2018-08-01 12:11:30 +09:00
Michael du Breuil 858b51c927 Copter: Update notify initilization 2018-08-01 09:22:09 +10:00
Lucas De Marchi 1a45aa12f5 AP_Param: warn on last pass only about unknown parameters
Do not warn about unknown parameters on the first pass, i.e. when
AP_Param:load_all() is called. This is because we may still not know
about dynamically loaded parameters. When we call the second (last)
time, we expect to already know all possible parameters, so print a
warning to both console and the debug terminal.
2018-06-28 10:18:19 -07:00
Andrew Tridgell 20dea6df45 Copter: moved OSD to top level params
this gives us plenty of param depth for a complex param tree
2018-06-27 14:55:00 +10:00
Alexander Malishev f63b3c044a Copter: added OSD support 2018-06-27 14:55:00 +10:00
Peter Barker 70d159cb38 Copter: raise EKF failure even if USB is connected
This will let EKF go bad if your PixHawk is connected to your laptop.
This doesn't seem to be a problem for the other vehicles.

This also allows the EKF to go bad in-flight if you happen to have
connected (against AP's recommendations) your companion computer to your
flight controller via USB.  Since people do this, it is better to have
the checks than not.
2018-06-26 10:07:55 +10:00
Peter Barker 485cafb343 Copter: use AP_FWVersion singleton 2018-06-18 19:10:37 +01:00
Peter Barker 7015d42ab2 Copter: Location gets ahrs from singleton 2018-06-01 16:18:33 +01:00