Commit Graph
89 Commits
Author SHA1 Message Date
Randy MackayandIampete1 17792724fa Copter: simple mode fix
Co-authored-by: Iampete1 <iampete@hotmail.co.uk>

Replaces update_simple_mode with apply_simple_mode function that takes roll and pitch input arguments.  The rotation is now done within the various get-pilot-desired-xxx methods removing the need for each flight mode to call update_simple_mode and also removing the slightly ugly call to overwrite RC_Channels' control inputs from the flight code (e.g. no more calls to set_control_in)
2026-08-11 02:01:53 +01:00
Leonard Hall ee123d63bb Copter: remove redundant pilot climb rate constrain in flight modes 2026-04-27 13:05:02 +09:00
Leonard Hall 12068ad310 Copter: Remove repeated call to set_desired_spool_state 2026-03-06 09:30:09 +09:00
Randy Mackay 107152625a Copter: PILOT params renamed and converted to meters 2026-03-04 13:59:09 +09:00
Leonard Hall 7a8cc3815f Copter: NEU to NED renaming - No compiler change 2025-12-17 08:03:10 +09:00
Leonard Hall b07775a4dc Copter: AC_PosControl: Correct sign of speed_down_ms to positive 2025-11-21 13:01:44 +09:00
Leonard Hall 36538f9df6 Copter: Small enhancements for NED conversion 2025-11-21 13:01:44 +09:00
Leonard Hall ee8595b822 Copter: Naming Change No compiler change 2025-11-14 10:01:37 +11:00
muramura f70d0c1b2a Copter: Change the maximum and minimum values of the type to named constants 2025-11-05 18:05:53 +11:00
Leonard Hall 7e03cfb3a9 Copter: Convert to postype 2025-09-26 10:35:25 +09:00
Leonard Hall ce0e74d209 Copter: Convert Mode ZigZag to meters 2025-08-20 17:01:44 +09:00
Leonard Hall 807f970517 Copter: Convert zigzag to meters 2025-08-20 17:01:44 +09:00
Leonard Hall e610cac5fd Copter: Remove last use of cm in AC_PosControl. 2025-08-20 17:01:44 +09:00
Leonard Hall 5dbe7b9d7a Copter: Convert Mode Auto to meters 2025-08-13 11:06:41 +09:00
Leonard Hall 690f01144c Copter: Add axis and units to get_alt_hold_state 2025-08-07 20:32:05 +09:00
Leonard Hall d7dc0fcf88 Copter: Update parameter variables from cm to m 2025-08-07 20:32:05 +09:00
Leonard Hall 5962f25800 Copter: Convert get_pilot_desired_climb_rate to meters 2025-08-07 20:32:05 +09:00
Leonard Hall 07b4065097 Copter: Convert takeoff to meters 2025-08-07 20:32:05 +09:00
Leonard Hall 48c07d666d Copter: Address PR feedback 2025-08-07 08:48:18 +09:00
Leonard Hall a6d38197d1 Copter: Convert Position Control limit setters to meters 2025-08-07 08:48:18 +09:00
Leonard Hall d641eae0be Copter: Climb rate: Use helpers for vertical speed, accel parameters 2025-08-07 08:48:18 +09:00
Leonard Hall e944b8c776 Copter: Fix get_pilot_desired_climb_rate_cms 2025-08-05 11:04:37 +09:00
Leonard Hall a1049c540c Copter: Takeoff: Fix/Add units and axis
Copter: Takeoff: Fix/Add units and axis
2025-08-05 11:04:37 +09:00
Leonard Hall 63a3515326 Copter: ZigZag: Fix/Add units and axis 2025-08-05 11:04:37 +09:00
Leonard Hall cc08f59eb8 Copter: AC_PosControl: Fix units on set_correction_speed_accel_U 2025-08-05 11:04:37 +09:00
Leonard Hall 561cfe2c1c Copter: Support - AC_WPNav: add units to crosstrack_error 2025-07-25 14:20:19 +09:00
Leonard Hall f8f720a0c0 Copter: remove most of the _cd() functions 2025-07-07 09:28:56 +09:00
Leonard Hall 089b70ca72 Copter: Convert copter to radians 2025-07-01 09:06:25 +09:00
Leonard Hall a578bf6275 Copter: Fix units on target_climb_rate 2025-06-24 07:55:28 +09:00
Leonard Hall 589708df48 Copter: Names and Units 2025-06-23 15:05:55 +09:00
Leonard Hall b344ac893a Copter: Zigzag units 2025-06-16 15:31:46 +09:00
Peter Barker 8aa3c36f92 Copter: trust control values from get_pilot_desired_lean_angles etc
this stops ArduCopter looking at the RC failsafe values before trusting return values from varios methods like get_pilot_target_climb_rate_cms

Several other modes already make the assumption that if there's no good pilot input that these methods return 0
2025-05-14 21:39:08 +10:00
muramura 514e71b850 Copter: Add units to the method that calculates the distance meter between WAYPOINTs 2025-05-12 11:37:04 +09:00
Leonard Hall 69f563c36d Copter: add units and frames to AC_WPNav methods
Copter

Copter
2025-05-02 21:47:07 +10:00
Leonard Hall ce2bb06cf7 Copter: add units and frames to AC_AttitudeControl methods
squash
2025-04-29 08:54:14 +09:00
Peter Barker 1e7c5b23c2 Copter: stop passing control in value to get_pilot_desired_climb_rate
these are always the same value, so simplify things
2025-04-23 13:39:22 +10:00
Leonard HallandPeter Barker c11d93b36f ArduCopter: add units and frames to AC_AttitudeControl methods
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2025-04-23 10:02:29 +10:00
Randy Mackay be1c87f3d1 Copter: zigzag uses desired xy instead of actual 2024-10-04 09:25:56 +09:00
Randy MackayandLeonard Hall 0bcff6cec0 Copter: support set_posvelaccel_offset in auto
Co-authored-by: Leonard Hall <leonardthall@gmail.com>
2024-10-04 09:25:56 +09:00
Iampete1 a72182ae97 Copter: don't pass channel_yaw->norm_input_dz() into get_pilot_desired_yaw_rate 2024-09-22 08:40:12 +09:00
Peter Barker 784760342d Copter: remove ENABLE/ENABLED/DISABLE/DISABLED defines 2024-09-06 11:53:09 +10:00
Peter Barker f64fcb78d3 ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
muramura 07a5f61782 Copter: Change from enum to class 2024-05-07 20:27:15 +09:00
muramura 0f0023e62d Copter: Get the flight mode name display from the name method 2024-04-16 09:08:35 +09:00
Peter Barker 7377b3f8f2 ArduCopter: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
muramura d36667c84a Copter: Change to ternary operator 2023-09-27 08:12:01 +10:00
murata 8c1e2546d8 Copter: Add an element of NAV_CONTROLLER_OUTPUT to ZIGZAG mode 2023-03-26 20:02:14 +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
Josh Henderson 3107c42fca Copter: INAV rename for neu & cm/cms 2021-11-30 10:08:07 +11:00
Josh Henderson 6b871fba55 ArduCopter: inav funcs use _xy() 2021-11-30 10:08:07 +11:00