Commit Graph

48212 Commits

Author SHA1 Message Date
Randy Mackay 400731df1b AP_Common: add Location::linear_interpolate_alt 2021-07-23 10:19:49 +09:00
Andy Piper 74a8891099 AP_BLHeli: ensure correct rotation through telemetry ESCs 2021-07-23 10:19:49 +09:00
Pierre Kancir 3cee86e63f AC_WPNav: remove unused variable following https://github.com/ArduPilot/ardupilot/pull/18076 2021-07-23 10:19:49 +09:00
Leonard Hall 6f5d2008e3 AC_PosControl: Add MAX(bla,0) because safe_sqrt isn't safe 2021-07-23 10:19:49 +09:00
Leonard Hall 2e314a00b2 Copter: Guided and Loiter mode returns Crosstrack error 2021-07-23 10:19:49 +09:00
Leonard Hall 6f26ca6b65 WP_Nav: Return Crosstrack error 2021-07-23 10:19:49 +09:00
Leonard Hall d6df47fd06 AC_AttitudeControl: AC_PosControl: calculate cross track 2021-07-23 10:19:49 +09:00
Randy Mackay fce7db0d18 AC_WPNav: use get_terrain_margin instead of constant 2021-07-23 10:19:49 +09:00
Andrew Tridgell 61b72cd50d Copter: replace use of TERRAIN_MARGIN with WPNAV_TER_MARGIN
# Conflicts:
#	ArduCopter/Parameters.cpp
#	ArduCopter/Parameters.h
#	ArduCopter/terrain.cpp
2021-07-23 10:19:49 +09:00
Randy Mackay 33ec14ce70 AC_WPNav: add TER_MARGIN param 2021-07-23 10:19:49 +09:00
Leonard Hall 767281dc76 AC_AttitudeControl: AC_PosControl: Auto Terain following update 2021-07-23 10:19:49 +09:00
Leonard Hall 4bbc69ef6e AC_WPNav: Auto Terain following update 2021-07-23 10:19:49 +09:00
Andrew Tridgell f3f1e72b0b Copter: Fix guided yaw bug.
# Conflicts:
#	ArduCopter/GCS_Mavlink.cpp
2021-07-23 10:19:48 +09:00
Peter Barker aa05bdde0f Copter: simplify throttle-is-unlimited check
Now not the same pattern as the other checks - but it is much shorter
2021-07-23 10:19:48 +09:00
Peter Barker e120b75aa4 Copter: wait for motors to spool up before trying to upright vehicle
This stops us from progressing through the whole throw mode if the
vehicle just happens to be in the right state - which is can be for a
drop.
2021-07-23 10:19:48 +09:00
Peter Barker b52ec7978b Copter: constify some ModeThrow methods 2021-07-23 10:19:48 +09:00
Andy Piper f2e22cf8e5 iomcu: update for pulse width changes 2021-07-23 10:19:48 +09:00
Andy Piper a9187a50cf AP_HAL_ChibiOS: only control widest pulse for dshot and oneshot 2021-07-23 10:19:48 +09:00
Tal Bass f4abb80aaf Copter: reset land_repo_active flag in RTL mode 2021-07-23 10:19:48 +09:00
Leonard Hall a765e266f4 AC_AttitudeControl: Allow yaw rate reset to be de-selected 2021-07-23 10:19:48 +09:00
Leonard Hall a066e1fcb1 Copter: Don't reset yaw rate when disarmed or ground idle in Heli Stab and Acro 2021-07-23 10:19:48 +09:00
Hwurzburg 4664ed6d7d RC_Channel: fix ELRS systems spamming CRSF mode/rate messages 2021-07-23 10:19:48 +09:00
Hwurzburg a09f38b195 AP_RCTelemetry: fix ELRS systems spamming CRSF mode/rate messages 2021-07-23 10:19:48 +09:00
Andy Piper 2ef5a9170e AP_RCTelemetry: correct firmware string length for CRSF 2021-07-23 10:19:48 +09:00
Randy Mackay 3777b8edec Copter: add TERRAIN_MARGIN parameter 2021-07-23 10:19:48 +09:00
Randy Mackay a582409377 Copter: add GUID_TIMEOUT for guided mode vel, accel and angle control 2021-07-23 10:19:48 +09:00
Leonard Hall f5a15dd85b Copter: Guided: move to zero velocity after takeoff 2021-07-23 10:19:48 +09:00
Leonard Hall 0ad493fdf7 Copter: Auto Yaw variable names and comments 2021-07-23 10:19:48 +09:00
Leonard Hall 703f09638f Copter: Guided Angle init Z controller on time out 2021-07-23 10:19:48 +09:00
Leonard Hall 82ba9e06a1 AC_WPNav: Remove unused function 2021-07-23 10:19:48 +09:00
Leonard Hall 23ec88e90a Copter: additional yaw modes and fixes 2021-07-23 10:19:48 +09:00
Leonard Hall 05f21d7665 AC_AttitudeControl: Add accessor for yaw slew limit 2021-07-23 10:19:48 +09:00
Leonard Hall 49da46af16 AC_AttitudeControl: AC_PosControl: support accel only input in the vertical 2021-07-23 10:19:48 +09:00
Leonard Hall 767e50eaa2 Copter: Guided: use default yaw mode for all gps based sub modes. 2021-07-23 10:19:48 +09:00
Leonard Hall 8f626623d8 Copter: Guided: stop aircraft if an invalid command is sent 2021-07-23 10:19:48 +09:00
Leonard Hall 452bf51c90 Copter: Guided: make aircraft stop on accel time out 2021-07-23 10:19:48 +09:00
Leonard Hall 3f7957418c Copter: Guided add terrain failsafe 2021-07-23 10:19:48 +09:00
Leonard Hall 6ff5913aa1 Copter: Guided: support terrain following 2021-07-23 10:19:48 +09:00
Leonard Hall b2032ee2e3 AC_AttitudeControl: AC_PosControl: support terrain following 2021-07-23 10:19:48 +09:00
Leonard Hall fa0442f565 Copter: Guided: fix waypoint track reporting 2021-07-23 10:19:48 +09:00
Leonard Hall b43f5cb2a3 Copter: Guided close gap between TARGET_LOCAL_NED and TARGET_GLOBAL_INT 2021-07-23 10:19:48 +09:00
Leonard Hall 4995add509 Copter: seperate kinimatic shaping from pid limit setting 2021-07-23 10:19:48 +09:00
Leonard Hall 029f5d23a4 Plane: seperate kinimatic shaping from pid limit setting 2021-07-23 10:19:47 +09:00
Leonard Hall e0ae24c428 Sub: seperate kinimatic shaping from pid limit setting 2021-07-23 10:19:47 +09:00
Leonard Hall d9c0670dcd AC_WPNav: seperate kinimatic shaping from pid limit setting 2021-07-23 10:19:47 +09:00
Leonard Hall 5f7607bbf0 AC_AttitudeControl: AC_PosControl: seperate kinimatic shaping from pid limit setting 2021-07-23 10:19:47 +09:00
Leonard Hall 72e23cfb8c Copter: Guided: use common initialisation 2021-07-23 10:19:47 +09:00
Leonard Hall 73a500db4d Copter: Guided prevent takeoff without takeoff command. 2021-07-23 10:19:47 +09:00
Leonard Hall 2075e2ffc4 AC_AttitudeControl: Add terain following to guided 2021-07-23 10:19:47 +09:00
Randy Mackay f79e20ab67 Copter: guided accepts terrain alt position targets 2021-07-23 10:19:47 +09:00