Commit Graph

740 Commits

Author SHA1 Message Date
Peter Barker 7e962bb1be ArduCopter: iinclude AP_OpticalFlow header as required 2022-12-15 21:07:31 +11:00
Peter Barker c32a11f37a ArduCopter: make and use AP_LANDINGGEAR_ENABLED 2022-12-14 18:30:23 +11:00
Leonard Hall 5d690f0360 Copter: Support changing update period 2022-12-13 17:10:06 +11:00
Peter Barker 15673f2aa7 Copter: remove SPRAYER_ENABLED define in favor of just HAL_SPRAYER_ENABLED 2022-11-15 08:45:42 +09:00
Peter Barker 1d1956739e ArduCopter: change namespace of MultiCopter and FixedWing params
this stops the libraries knowing anything about AP_Vehicle
2022-11-09 19:04:37 +11:00
Andrew Tridgell 8c4732210c Copter: two more arguments to NAV_SCRIPT_TIME 2022-10-23 18:11:15 +11:00
Peter Barker be93d8212c ArduCopter: add AP_GRIPPER_ENABLED 2022-10-04 10:58:34 +11:00
Peter Barker 2d0f31c2ad ArduCopter: correct compilation with rally disabled 2022-09-27 10:16:47 +10:00
Peter Barker fd28991ab2 ArduCopter: add and use AP_CAMERA_ENABLED 2022-09-21 11:58:38 +10:00
Peter Barker 9c7e1c3af9 ArduCopter: add and use AP_RPM_ENABLED 2022-09-20 09:28:27 +10:00
Randy Mackay 3f96423795 Copter: add takeoff RPM check 2022-09-07 17:03:03 +01:00
esaldiran cbadf77652 ArduCopter: support custom controller 2022-08-30 13:10:09 +10:00
rishabsingh3003 8fcd42d104 Copter: Convert PRX_ parameters to PRX1_ 2022-08-24 18:26:27 +10:00
Stephen Dade 58cb4cbfb1 Copter: Make mode flowhold a build option via MODE_FLOWHOLD_ENABLED 2022-08-18 07:46:13 -04:00
Peter Barker 78c742978e ArduCopter: rename OpticalFlow class to AP_OpticalFlow
Brings us in-line with other classes in ArduPilot.

Removes ambiguity with AP_HAL::OpticalFlow which can cause compilation errors as we start to make code more portable across targets
2022-08-18 14:24:01 +10:00
Henry Wurzburg d3aebd72d8 Copter: logging disentangle and correct bugs and rename bitmasks
fix
2022-08-16 20:16:24 -04:00
Peter Barker d39fcfd038 ArduCopter: move call to compass cal update up to AP_Vehicle 2022-08-16 10:06:44 +10:00
Andy Piper 1c8d206dfb Copter: fast attitude logging should be at loop rate 2022-08-09 03:45:08 -04:00
Iampete1 1b160205ab ArduCopter: change AC_FENCE to AP_FENCE_ENABLED 2022-07-27 19:04:56 +10:00
Iampete1 b988391455 Copter: Fence moved to vehicle 2022-07-27 19:04:56 +10:00
Yuri a97a17cce4 Copter: implement set_desired_speed 2022-07-07 19:34:10 +09:00
Bill Geyer 4fde394395 Copter: add support for command model class 2022-06-28 07:56:12 +09:00
Randy Mackay 46023318d4 Copter: get_rangefinder_height_interpolated_cm made const 2022-06-21 09:07:36 +09:00
Randy Mackay 7d13582913 Copter: implement get_rate_bf_targets method 2022-06-15 09:07:14 +09:00
Randy Mackay cd1a62b7bc Copter: move get_wp_xxx declarations higher in Copter.h
The declarations are grouped by the file in which they appear except for these 3
2022-06-15 09:07:14 +09:00
Randy Mackay 0f73d705a7 Copter: add failsafe_ekf_recheck
this allows modes to retrigger the EKF failsafe if they move from a sub mode that did not require GPS to one that does
2022-05-31 07:50:16 +09:00
Randy Mackay b60d6348ed Copter: add dead reckon failsafe 2022-05-25 20:05:21 +09:00
Peter Barker b0c8fda8d4 ArduCopter: move logging of compass ERR flags into AP_Compass 2022-05-10 19:46:40 +10:00
Peter Barker 6830092a7d ArduCopter: move error logging of sensor health into AP_Baro 2022-05-03 17:38:09 +10:00
Andy Piper 01766eee01 Copter: use new Task infrastructure for the fast loop
add helper for running rate controller
add fast_loop documentation.
2022-05-03 08:20:13 +09:00
Randy Mackay 5ad6a0d2ef Copter: implement has_ekf_failsafed for use by lua 2022-04-26 18:37:54 +09:00
Andrew Tridgell eb4a70f613 Copter: moved harmonic notch update code to AP_Vehicle 2022-04-19 09:39:03 +10:00
Andrew Tridgell 8d187f4bc6 Copter: support two full harmonic notch filters 2022-04-19 09:39:03 +10:00
Peter Barker 5539b55c01 Copter: factor failsafe reporting 2022-04-06 10:40:09 +10:00
Peter Barker bfb8e7df81 ArduCopter: include cleanups 2022-03-01 11:21:33 +11:00
Bill Geyer 2fa54f0df4 Copter: start engine flag not used and style cleanup 2022-02-23 14:22:47 +09:00
Ferruccio1984 84bf3fb74e Copter: Tradheli support for turbine start 2022-02-23 14:22:47 +09:00
Randy Mackay 1251a91430 Copter: add nav_script_time mission command support 2022-02-22 12:32:56 +09:00
Peter Barker 3989ed76cd ArduCopter: stop passing mission in Terrain constructor
Terrain can use the mission singleton

This means Copter can have terrain while compiling mission out
2022-02-08 11:20:20 +11:00
Leonard Hall 23711b7b10 Copter: Add support for Force Flying 2022-02-04 09:10:57 +09:00
bnsgeyer a9450ac9b6 Copter: making autotune work for heli too 2022-02-01 23:06:51 -05:00
Rishabh 309dfa63f3 Copter: Switch PrecLand to use updated Pos Controller 2022-01-31 14:38:29 +09:00
Iampete1 f4c7760819 Copter: add flight option to relase gripper on thrust loss 2022-01-28 08:59:47 +09:00
Shiv Tyagi c1dafae84a Copter: separate logging for position and attitude targets in guided mode
We now log position and attitude targets in guided mode separately. Earlier we were using same messages for both which was causing some confusion in field names
2022-01-26 21:36:48 +09:00
Josh Henderson ea58c130b4 Copter: move Airspeed to AP_Vehicle 2022-01-19 18:21:32 +11:00
Iampete1 b6806ada27 Copter: move motbatt logging to motors 2022-01-18 10:18:10 +11:00
Peter Barker b4ff6ddfb7 ArduCopter: move RPM sensor logging into AP_RPM 2022-01-11 11:09:26 +11:00
Randy Mackay d5461f2225 Copter: integrate AP_Mission_ChangeDetector 2022-01-10 08:19:16 +09:00
Peter Barker 6bfcf2fb53 Copter: remove pointless wrapper around proximity init 2022-01-04 09:02:54 +09:00
Peter Barker 285d752143 ArduCopter: create and use AP_OPTICALFLOW_ENABLED
Including a define for each backend.
2021-12-29 18:12:03 +11:00
Miloš Petrašinović 063e24c723 Copter: fix userhook aux switches
Functions userhook_auxSwitch1, userhook_auxSwitch2, and userhook_auxSwitch3 had the wrong argument type resulting in a compilation error.
2021-12-01 07:44:25 +09:00
Randy Mackay 02ad9879fa Copter: surface tracking timeout fix
also restructure update_surface_offset and add comments

Co-authored-by: Leonard Hall <leonardthall@gmail.com>
2021-11-17 08:09:00 +09:00
Peter Barker 238a6e4016 ArduCopter: move from ENABLE_SCRIPTING to AP_SCRIPTING_ENABLED 2021-11-15 20:27:40 +11:00
Peter Barker ee9aef25fc ArduCopter: ensure ENABLE_SCRIPTING is always defined 2021-11-15 20:27:40 +11:00
Peter Barker 6228cf25dc Copter: remove unimplemented update_proximity declaration 2021-11-15 07:57:34 +09:00
Shiv Tyagi 477f2824b9 Copter : initialise surface to be tracked
This sets the surface to be tracked in SurfaceTracking with the value of SURFTRAK_MODE parameter.

Co-Authored-By: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2021-11-13 11:52:38 +09:00
Bill Geyer 8ef88fb98e Copter: add collective stick low flag to catch bad setups for land detector 2021-11-10 16:45:17 -05:00
Peter Barker a88264d73b ArduCopter: handle renaming of AP_InertialNav_NavEKF to AP_InertialNav 2021-10-20 18:09:36 +11:00
Peter Barker 1aefa1b378 ArduCopter: move SITL object up to AP_Vehicle 2021-10-19 11:34:43 +11:00
Peter Barker cfd686c772 Copter: stop passing current_loc into AP_Camera 2021-09-29 18:33:01 +10:00
Iampete1 456d57c28f Copter: rename armed_with_switch to armed_with_airmode_switch 2021-09-21 09:36:24 +10:00
Andrew Tridgell ab36dc0ed9 Copter: moved accel cal update to vehicle code 2021-09-17 14:07:14 +10:00
Pierre Kancir 7e1716eaeb Copter: Classify failsafe action definitions 2021-09-15 18:04:58 +10:00
Leonard Hall 5fea74d4d0 Copter: Separate landing and terrain following. 2021-09-06 16:00:19 +09:00
Randy Mackay da12593bd8 Copter: implement new set_target methods 2021-08-26 11:25:54 +09:00
Peter Barker 3a3433cad2 ArduCopter: add and use HAL_BUTTON_ENABLE 2021-08-25 19:03:42 +10:00
Randy Mackay 8c5b079d8e Copter: implement get_circle_radius, set_circle_rate 2021-08-25 18:39:09 +10:00
Iampete1 0895cf0a07 Copter: remove gesture compass cal start / stop 2021-08-24 08:51:29 +09:00
Rishabh c5b98c3490 Copter: Support Prec Land State Machine 2021-08-23 15:00:56 +09:00
Andy Piper 1b5ed1caff Copter: add turtle mode
add turtle mode as an RC function
add turtle mode arming checks
re-use motortest arming checks for turtle mode
2021-08-12 19:00:51 +09:00
Peter Barker 14e5c99b0c ArduCopter: log GPS primary change event in GPS library 2021-08-06 15:30:18 +10:00
Iampete1 9f5591be02 Copter: notify buzzer on every flight mode change 2021-08-05 14:42:42 +10:00
bugobliterator 7e01e10056 Copter: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
Iampete1 c2a6377c53 Copter: #ifdef scripting specific functions 2021-07-28 18:18:32 +10:00
Iampete1 6561669213 Copter: support Auto RTL for failsafe events 2021-07-27 09:00:11 +09:00
Peter Barker e74a8e28af ArduCopter: rename for AHRS restructuring 2021-07-21 21:01:39 +10:00
Randy Mackay d39581f996 Copter: replace use of TERRAIN_MARGIN with WPNAV_TER_MARGIN 2021-07-21 16:03:44 +09:00
Peter Barker 3684741517 ArduCopter: remove AC_TERRAIN compilation option
Use AP_TERRAIN_AVAILABLE instead
2021-07-12 17:34:44 +10:00
Randy Mackay 7dcc5dd7ac Copter: add TERRAIN_MARGIN parameter 2021-07-10 20:25:05 +09:00
Randy Mackay ba1951a372 Copter: guided accepts terrain alt position targets 2021-07-10 20:25:05 +09:00
Leonard Hall 635d13a106 Copter: support for acceleration-based AttitudeControl 2021-07-10 20:25:05 +09:00
Shiv 4a39424d6b Copter: added comments to include libraries in copter.h and attitude.cpp
fixed typo in a comment and added more comments for included libraries in copter.h and fixed a comment in attitude.cpp
2021-06-30 09:23:24 +09: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
Peter Barker 5df8dd8c50 Copter: move guided submode enumeration into ModeGuided 2021-04-14 16:12:57 +09:00
Peter Barker fa9ac072ec Copter: remove unused AP_IRLock include
This header is included as required by the AC_PrecLand library - it is
now responsible for actually instantiating the AP_IRLock instance if
required, so Copter doesn't need to know anything about AP_IRLock.
2021-04-14 12:01:12 +10:00
Peter Barker 65b1868863 Copter: move precision landing logging up into AC_PrecLand 2021-04-13 10:28:39 +10:00
Peter Barker 09a9bd73a4 ArduCopter: move handling of last-seen-SYSID_MYGCS up to GCS base class 2021-04-07 17:54:21 +10:00
Peter Barker 5edfed0083 Copter: factor out a mode-change-failed method 2021-03-30 19:58:05 +11:00
Peter Barker 1e0f106ed4 Copter: make AutoTune object private state to ModeAutoTune 2021-03-30 11:23:10 +11:00
Randy Mackay 91fa40aea6 Copter: HAL_PROXIMITY_ENABLED replaces PROXIMITY_ENABLED 2021-03-26 16:22:46 +09:00
Peter Barker 45d484c0ba ArduCopter: remove Log_Write_Performance which is not called anywhere 2021-03-26 16:35:08 +11:00
Peter Barker dc793e916f Copter: move implementation of get_pilot_desired_yaw_rate into mode.cpp 2021-03-24 20:46:08 +11:00
Emre Saldiran d5715292a3 Copter: implement set_target_posvel_NED method for use in scripting 2021-03-24 08:55:48 +09: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
James O'Shannessy a88f2721a8 ArduCopter: Use auto enable and auto disable from AC_Fence 2021-03-05 14:52:46 +11:00
James O'Shannessy f228adfa75 ArduCopter: Improve auto-enable/disable of fence 2021-03-05 14:52:46 +11:00
Dr.-Ing. Amilcar do Carmo Lucas 92122e5133 Copter: automatically enable and disable floor fence on automated takeoff and landing 2021-03-05 14:52:46 +11:00
Iampete1 2e9c11fbdf Copter: add FLIGHT_OPTIONS param and options bits to disable thrust loss and yaw imbalance warnings 2021-03-02 09:35:06 +09:00
Iampete1 447af29ef1 Copter: add yaw imbalance check 2021-03-02 09:35:06 +09:00