Commit Graph

7511 Commits

Author SHA1 Message Date
Andy Piper aad51b7066 Copter: update PID notch centers at 1Hz with average loop rate 2023-11-21 13:26:23 +11:00
Peter Barker c531d81cb3 ArduCopter: stop streaming trying SIM_STATE messages outside sim 2023-11-20 19:25:25 +11:00
Peter Barker 1059183758 ArduCopter: tidy sending of winch messages 2023-11-20 19:25:25 +11:00
Peter Barker 621e245b10 ArduCopter: tidy sending of esc telem generator messages 2023-11-20 19:25:25 +11:00
Peter Barker 256f373d7f ArduCopter: tidy sending of queued generator messages 2023-11-20 19:25:25 +11:00
Peter Barker 88a862f128 ArduCopter: tidy sending of queued mcu status messages 2023-11-20 19:25:25 +11:00
Peter Barker a97d51c877 ArduCopter: tidy sending of queued opticalflow messages 2023-11-20 19:25:25 +11:00
Peter Barker dbc0f02649 ArduCopter: tidy sending of queued mount messages 2023-11-20 19:25:25 +11:00
Peter Barker e7ff4a43ca ArduCopter: add and use AP_MAVLINK_COMMAND_LONG_ENABLED 2023-11-16 10:50:21 +11:00
Randy Mackay 2e5af08a10 Copter: 4.4.3 release notes 2023-11-14 12:44:53 +09:00
Gone4Dirt 399398fe64 Copter: Add heli motors param conversion helper 2023-11-14 10:24:03 +11:00
Randy Mackay 02a699c21b Copter: fix 440-beta1 release notes
TKOFF_TH_MAX was not included in Copter-4.4.0
2023-11-13 08:34:29 +09:00
muramura f3914dfc16 Copter: Change to Boolean value 2023-11-11 09:06:42 +09:00
Randy Mackay bbfc949b45 Copter: 4.4.3-beta1 release notes 2023-11-07 17:40:20 +09:00
Peter Barker 75f1459fa6 ArduCopter: add and use AP_TEMPCALIBRATION_ENABLED 2023-11-07 07:46:24 +11:00
Iampete1 935ea02a71 Copter: RTL: ensure rally point is in absolute alt frame as RTL_ALT_TYPE takes precedence 2023-11-01 19:06:39 +11:00
Ryan Friedman 1fa88bacd9 Copter: Add WARN_IF_UNUSED
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-11-01 18:30:54 +11:00
Peter Barker 2be4c0e3f5 Copter: correct defines around using payload place functionality
we need support for the actual payload place flight behaviour as well as the navigation item support
2023-10-31 11:34:03 +11:00
Nick Exton 98dfaba23d Copter: Use AP_Mount::clear_roi_target() to remove ROI 2023-10-30 08:28:23 +09:00
Peter Barker 875580069c ArduCopter: tidy use of GPS mavlink defines 2023-10-27 14:16:47 +11:00
Peter Barker 20563bf58d ArduCopter: save bytes when AP_AIS_ENABLED is false 2023-10-27 14:16:47 +11:00
Peter Barker 6b439bb2f3 ArduCopter: allow payload place to be compiled out of code 2023-10-27 14:15:53 +11:00
Peter Barker bf59fbc6d9 Copter: payloadplace: avoid using auto_takeoff functionality
Co-authored-by: Leonard Hall <leonardthall@gmail.com>

the methods being called to a lot more than we need or want them to.

In particular, they mix both horizontal and vertical control, but also may or may not run based on various aircraft conditions.

Simplify by simply calling position controller.
2023-10-27 14:15:53 +11:00
Peter Barker a820612fc9 Copter: payloadplace: fold methods back into caller
Co-authored-by: Leonard Hall <leonardthall@gmail.com>

these methods don't really add much, and prohibit future refactoring
2023-10-27 14:15:53 +11:00
Peter Barker af949590f8 Copter: remove unimplemented method declaration 2023-10-27 14:15:53 +11:00
Peter Barker e2157d8b9f Copter: remove un-needed PayloadPlace::run_should_run
make this look like the other handling, especially in terms of what we do if we shouldn't be running
2023-10-27 14:15:53 +11:00
Peter Barker 5820a9bc2f Copter: encapsulate PayLoadPlace state and methods into existing struct
... and make it a class
2023-10-27 14:15:53 +11:00
Peter Barker d46859aa96 ArduCopter: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false 2023-10-26 13:23:57 +11:00
Michael du Breuil d42a3ee971 Copter: Support not sending a status text on state change 2023-10-25 09:39:51 -07:00
Peter Barker ca3b5a860a ArduCopter: handle MAV_CMD_NAV_TAKEOFF via command_long and command_in 2023-10-24 12:59:19 +11:00
Iampete1 8018d30cc7 Copter: 4.4.2 stable release notes 2023-10-22 21:52:08 +01:00
Peter Barker cc799d3d7e Copter: encapsulate auto takeoff into an ojbect
similar to the encapsulation of "user takeoff" into an object
2023-10-18 13:47:11 +11:00
Randy Mackay 5f242795ea Copter: update 4.4.2-beta1 release notes 2023-10-13 16:32:11 +09:00
Randy Mackay 7a5e130268 Copter: 4.4.2-beta1 release notes 2023-10-13 16:32:07 +09:00
Mykhailo Kuznietsov 3a231f8b32 ArduCopter: Fix some typos
Fixed some typos found in the code.
2023-10-12 18:30:42 +11:00
Peter Barker 521d21765e ArduCopter: allow for compilation without AP_RTC_ENABLED 2023-10-11 19:17:27 +11:00
Rhys Mainwaring b585d61809 Copter: remove duplicate friend declaration
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-10-09 09:05:19 +09:00
muramura 5ce731fa00 Copter: Two processes in one 2023-10-04 19:23:29 +11:00
Peter Barker cd92e301ab ArduCopter: don't send fence_status mavlink message if fence not compiled in 2023-10-04 19:13:23 +11:00
Peter Barker ef1952e1c0 Copter: acccept DO_LAND_START as both int and long 2023-09-29 13:55:32 +10:00
Peter Barker d54d9ae922 ArduCopter: accept several mode-changing commands via command_int
... as well as via command_long
2023-09-29 08:56:50 +10:00
Peter Barker a0ca3ffb22 ArduCopter: handle MAV_CMD_DO_FLIGHTTERMINATION as both long and int 2023-09-27 11:27:45 -07:00
muramura d36667c84a Copter: Change to ternary operator 2023-09-27 08:12:01 +10:00
Randy Mackay 28e5ea152e Copter: 4.4.1 release notes 2023-09-26 12:37:42 +09:00
Peter Barker efc2c39c96 ArduCopter: remove COMPASS_CAL messages from streamrates if tumble cal disabled
fatal error in SITL if we try to send messages with these disabled
2023-09-26 11:39:50 +10:00
Peter Barker ad9a36c157 Copter: allow MAV_CMD_CONDITION_YAW to be run as COMMAND_INT 2023-09-26 11:35:55 +10:00
Peter Barker c61022f596 Copter: handle DO_CHANGE_SPEED as both COMMAND_LONG and COMMAND_INT 2023-09-20 15:44:38 +10:00
Peter Barker b3dd5c20c5 Copter: handle MISSION_START as both COMMAND_LONG and COMMAND_INT 2023-09-20 09:39:31 +10:00
Peter Barker 624cfc8fcc ArduCopter: handle MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN as INT or LONG 2023-09-19 11:16:10 +10:00
Peter Barker 4c6918afea ArduCopter: handle DO_PARACHUTE as both command_long and command_int 2023-09-19 11:14:29 +10:00
Randy Mackay b407591663 Copter: 4.4.1-beta2 release notes 2023-09-14 16:24:18 +09:00
Peter Barker 5e9c2a04d0 Copter: allow motor tests to be triggered with COMMAND_INT 2023-09-13 18:14:31 +10:00
Peter Barker 619b1ecd47 ArduCopter: support preflight calibration via command_int 2023-09-13 17:24:07 +10:00
rishabsingh3003 8a1fa0e096 Copter: Allow fast descend while Prec Landing 2023-09-13 11:49:16 +10:00
Peter Barker 38ba5da09b Copter: allow winch commands to be run as both COMMAND_LONG and COMMAND_INT 2023-09-12 09:30:27 +10:00
Peter Barker 0b225a825c ArduCopter: use AHRS to get Locations from origin-offset 2023-09-12 09:29:26 +10:00
Ep Pravitra 9700e65d19 AP_AdvancedFailsafe: option to automatically set mode to auto when datalink is loss
When enabled, it ensures vehicle enters AUTO even if it is currently in other autonomous modes (for example Guided)
2023-09-12 09:09:39 +10:00
Peter Barker 26b7092c1a ArduCopter: correct logging when rally disabled 2023-09-05 22:23:51 +10:00
Randy Mackay 4ce65bb3f7 Copter: 4.4.1-beta1 release notes 2023-09-05 19:51:35 +09:00
Peter Barker 496e6b18ff Copter: accept solo buttons as both long and int 2023-09-05 09:58:53 +10:00
Peter Barker b725a632d6 ArduCopter: allow MAV_CMD_SOLO_BTN_PAUSE_CLICK as COMMAND_INT 2023-08-29 11:14:05 +10:00
Peter Barker e922d7e3bd ArduCopter: accept mount commands as command_int 2023-08-24 22:07:12 +10:00
Randy Mackay c2be0a5767 Copter: 4.3.8 release notes 2023-08-24 20:28:28 +09:00
Andrew Tridgell b3954afe52 Copter: add friend for AP_ExternalControl_Copter 2023-08-24 07:46:06 +10:00
muramura 79a59d2739 Copter: The preprocessor determines whether rangefinder initialization is possible 2023-08-23 22:31:15 +10:00
muramura 6820e96ca8 Copter: Change from fast_loop method to FAST_TASK(NFC) 2023-08-23 19:24:01 +09:00
Andrew Tridgell c452325de2 Copter: added AP_ExternalControl support
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Co-authored-by: Andrew Tridgell <tridge60@gmail.com>
2023-08-22 18:21:23 +10:00
Peter Barker 57eeda0439 ArduCopter: pass mavlink_message_t to handle_command_*_packet
the "special case" blocks are getting longer and longer.  Merge the switch statements for the command type to be handled by passing around the message.
2023-08-22 10:11:33 +10:00
Randy Mackay 7d264f1700 Copter: 4.4.0 release notes 2023-08-18 17:37:15 +09:00
Randy Mackay f3e56cc7a0 Copter: 4.3.8-beta1 release notes 2023-08-16 10:03:23 +09:00
Randy Mackay 01387335a9 Copter: 4.3.7 release notes fix 2023-08-16 10:03:16 +09:00
Shiv Tyagi 1c38be93c5 Copter: use AP_FOLLOW_ENABLED 2023-08-15 09:57:35 +10:00
Andy Piper 49bdf7a295 Copter: rename dshot define 2023-08-15 06:53:48 +10:00
bugobliterator 73aed28be7 ArduCopter: use HAL_ENABLE_DSHOT instead of DISABLE_DSHOT 2023-08-15 06:53:48 +10:00
bugobliterator 6d4b5cfc1b Copter: use DISABLE_DSHOT value instead of if defined 2023-08-15 06:53:48 +10:00
Randy Mackay 495c8c25ac Copter: 4.4.0-beta4 release notes 2023-08-14 08:51:35 +09:00
muramura 8f13826383 Copter: Remove code that will never be executed 2023-08-11 12:46:06 -07:00
arshPratap 5f17e33b39 AP_Arming: Added DDS Method for Arming/Disarming 2023-08-11 13:35:49 +10:00
Peter Barker 3fd0886574 Copter: rely on magic COMMAND_INT transform for MAV_CMD_DO_PAUSE_CONTINUE 2023-08-09 07:44:44 +10:00
Peter Barker 201e276f00 ArduCopter: avoid use of MINIMIZE_FEATURES define in Copter directory 2023-08-08 10:35:19 +10:00
Randy Mackay 8499a6bd78 Copter: 4.4.0-beta4 release notes 2023-08-01 20:01:32 +09:00
Peter Barker d41e677c08 Copter: correct return error return codes for DO_FOLLOW
in the case it wasn't compiled in the return code would be correct.

in the case that the parameter was invalid we would return UNSUPPORTED , which is wrong, it should be DENIED
2023-08-01 10:43:34 +10:00
Peter Barker a79a8ca659 ArduCopter: rely on conversion from long to int for DO_FOLLOW
we have code which tries to handle commands coming in as command long as command int.

Change to rely on that code working, rather than handling both command-long and command-int variants
2023-08-01 10:43:34 +10:00
Iampete1 d927af03e9 Copter: remove heli motors param checks, moved to motors arming check 2023-08-01 09:12:51 +09:00
Iampete1 40414499fd Copter: AP_Arming: print multiple failures at once. 2023-08-01 09:12:51 +09:00
muramura d9492c1c6c Copter: Change RATE (NFC) 2023-07-31 17:18:21 +09:00
Randy Mackay 9d2e9b37c8 Copter: log MNT at 10hz 2023-07-26 17:33:18 +10:00
Iampete1 0de7544650 Copter: SURFTRAK_MODE: mark as reboot required 2023-07-26 11:31:05 +09:00
Andy Piper baae1b7732 Copter: squash bitwise & warnings 2023-07-13 11:02:40 +10:00
Andrew Tridgell 105b7a6163 ArduCopter: removed set_blocking_writes_all calls 2023-07-12 17:06:02 +10:00
Randy Mackay e84cd0cad8 Copter: update 4.4.0-beta3 release notes 2023-07-04 15:15:36 +09:00
Tom Pittenger a88c3a08b0 Copter: is_landing/is_taking_off not to req scripting 2023-07-03 22:44:00 -07:00
Randy Mackay 4af22db6c2 Copter: update 4.4.0-beta3 release notes 2023-07-04 12:44:45 +09:00
Randy Mackay a11033a67d Copter: 4.4.0-beta3 release notes 2023-07-04 12:44:37 +09:00
Henry Wurzburg d0a0fd730c ArduCopter: allow scaled passthru to go to trim on rc failsafe 2023-06-29 21:37:12 +10:00
Iampete1 678017c577 Copter: implement FLTMODE_GCSBLOCK bitmask 2023-06-28 12:56:25 +01:00
Iampete1 717f82f104 Copter: check with motors if motor test is allowed 2023-06-27 10:24:15 +10:00
Andrew Tridgell ab07a2ecf3 Copter: moved MAV_CMD_AIRFRAME_CONFIGURATION to common code 2023-06-21 17:38:28 +10:00
muramura b153a90430 Copter: Note that this process is for SOLO 2023-06-20 11:10:26 +10:00
Peter Barker cd8a699675 ArduCopter: add option to disable relay and servorelay libraries 2023-06-20 09:36:39 +10:00
bugobliterator 1242054cbb ArduCopter: move sysid_my_gcs to be public 2023-06-17 14:49:22 +10:00
Tatsuya Yamaguchi 30318b51f9 Copter: remove has_user_takeoff from ModeAuto class 2023-06-17 14:41:39 +10:00
Tatsuya Yamaguchi 10c3a70072 Copter: add has_user_takeoff in ZigZag mode 2023-06-14 13:28:41 +10:00
Randy Mackay f7149ed138 Copter: update 4.4.0-beta2 release notes 2023-06-08 10:07:12 +09:00
Randy Mackay 775281397b Copter: 4.4.0-beta2 release notes 2023-06-08 10:07:07 +09:00
Randy Mackay 388e54458c Copter: 4.3.7 release notes 2023-06-03 11:31:39 +09:00
Asif Khan edf9fbdb60 ArduCopter: support for Mount following the lead vehicle in follow mode 2023-05-26 11:10:35 -07:00
Tatsuya Yamaguchi fdac668782 Copter: implement is_landing and is_taking_off for use by lua 2023-05-26 10:59:09 -07:00
Randy Mackay 2c675246c9 Copter: 4.3.7-beta1 release notes
# Conflicts:
#	ArduCopter/ReleaseNotes.txt
2023-05-25 11:24:21 +09:00
Peter Barker 078debb893 ArduCopter: use enum class for mount type 2023-05-25 09:54:43 +10:00
Peter Barker aa5a882de8 Copter: protect against bad vels/accels being sent through in guided mode 2023-05-25 09:42:28 +10:00
Tatsuya Yamaguchi 6b40fd11d6 Copter: Add GCS Failsafe Brake option 2023-05-20 17:28:54 +10:00
Peter Barker 6c5c88061f ArduCopter: move call of notify.update up to AP_Vehicle 2023-05-17 18:41:15 +10:00
Randy Mackay dec9584e5e Copter: handle_command_mount override accepts msg
mavlink msg required to extra caller's sysid/compid
2023-05-17 12:38:49 +10:00
Asif Khan 27d96eb64e AP_Mount: Support for pointing mount to circle center 2023-05-08 10:48:20 +10:00
Michael du Breuil 04b16d1a79 Copter: Support checking max rpm in the takeoff check 2023-05-02 10:23:55 +10:00
Randy Mackay 2ded167bc7 Copter: version to 4.5.0-dev 2023-04-26 17:45:52 +10:00
Randy Mackay 00e1f1d6f5 Copter: 4.4.0-beta1 release notes update 2023-04-21 08:56:09 +09:00
Randy Mackay 16e9d183f1 Copter: update 4.4.0-beta1 release notes based on peer feedback 2023-04-21 08:56:02 +09:00
Randy Mackay 75874e3290 Copter: 4.4.0-beta1 release notes 2023-04-21 08:55:56 +09:00
Peter Barker f33e5e7847 ArduCopter: allow Copter to emit MISSION_STATE_PAUSED when paused in auto 2023-04-21 09:49:55 +10:00
Randy Mackay 0d43a2bec4 Copter: RTL accepts do-change-speed commands 2023-04-20 21:39:57 +10:00
Iampete1 be275e2cac Copter: use new motors thrust linrisation, don't send air density ratio 2023-04-18 09:32:22 +10:00
Peter Barker 96fa96936b ArduCopter: AP_Arming ensures mission items present when in auto mode
Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>
2023-04-14 07:49:54 +10:00
Peter Barker 3eae095966 ArduCopter: use AP_BEACON_ENABLED instead of BEACON_ENABLED 2023-04-12 09:24:39 +10:00
Henry Wurzburg 1f94fd69f9 ArduCopter: move estop pre-arm to AP_Arming and add exception 2023-04-11 09:24:06 +10:00
Randy Mackay ce1e0c3782 Copter: 4.3.6 release notes 2023-04-06 14:16:30 +09:00
Peter Barker caa77ccba8 Copter: remove very old parameter conversion information 2023-04-04 10:40:56 +10:00
Peter Barker b24d74b35d Copter: remove stale conversion functions
past this PR upgrade from Copter-3.3 will not be seamless
2023-04-04 10:40:56 +10:00
Randy Mackay e57a9cacb6 Copter: 4.3.6-beta2 release notes 2023-03-27 11:19:13 +09:00
tzarjakob 97b7e8d1d0 ArduCopter: configuration of Precision Landing for custom build server 2023-03-27 09:04:07 +11:00
murata 8c1e2546d8 Copter: Add an element of NAV_CONTROLLER_OUTPUT to ZIGZAG mode 2023-03-26 20:02:14 +11:00
Randy Mackay 71d02820a7 Copter: 4.3.6-beta release notes 2023-03-26 12:00:16 +09:00
Peter Barker 3f21946d50 Copter: stop setting motor output levels at boot
We should not have different state in our motors library based on your RC stick positions at boot.

this call is made anywhere we actually arm the motors anyway.
2023-03-25 22:19:54 +11:00
Peter Barker 9c2d68bcd1 Copter: remove enable_motor_output method
this doesn't actually do what it says it does.  I think the functionality to set the motors armed was split out long ago but this little method and its misleading comments remained
2023-03-25 07:57:48 +09:00
Leonard Hall 6d5bc17c8e Copter: Add TKOFF_TH_MAX 2023-03-21 19:51:03 +09:00
Leonard Hall 715bb6e705 Copter: Guided Yaw Fix 2023-03-21 08:23:12 +09:00
bugobliterator 3012450b4a ArduCopter: change INS_ to INS 2023-03-21 10:04:16 +11:00
Randy Mackay b638a3576b Copter: 4.2.4 release notes 2023-03-16 13:36:47 +09:00
Randy Mackay fda4349f5b Copter: 4.1.6 release notes 2023-03-16 13:35:43 +09:00
Randy Mackay 63c0b276c3 Copter: 4.3.5 release notes 2023-03-14 19:15:51 +09:00
CharlieBurge 62119d5bbe Copter: remove check on pause state 2023-03-09 18:13:38 +00:00
CharlieBurge 659ba8324b Copter: report success if already paused or resumed 2023-03-09 18:13:38 +00:00
Leonard Hall 5a178984c4 Copter: Add Radio Failsafe Brake option 2023-03-09 09:25:43 +11:00
Pierre-Yves BRULIN d67e67965f Copter: Reenable PID logging in SystemID mode 2023-03-08 19:28:05 +11:00
Randy Mackay e6ad42b851 Copter: fix terrain offset reset 2023-03-07 13:41:35 +11:00
Leonard Hall 7978347044 Copter: Add support for terrain altitude time constant 2023-03-07 13:41:35 +11:00
Peter Barker ade654b251 Copter: use AP_WINCH_ENABLED in place of WINCH_ENABLED 2023-03-03 20:59:06 +11:00
Peter Barker f47e60d1ea AP_HAL_ChibiOS: add and use AP_WINCH_ENABLED 2023-03-03 20:59:06 +11:00
Randy Mackay 25582d2ecc Copter: 4.3.5-rc1 release notes 2023-03-02 15:03:09 +09:00