Commit Graph

4368 Commits

Author SHA1 Message Date
Andrew Tridgell 56e600470a Plane: prepare for 4.2.3 stable 2022-08-29 03:35:46 -04:00
Andrew Tridgell b4c1da6647 Plane: release notes for 4.2.3 2022-08-29 03:35:46 -04:00
Andrew Tridgell 1da45b386c Plane: prepare for 4.2.3beta3 2022-08-19 23:24:19 -04:00
Andrew Tridgell 25fd9321b7 Plane: prepare for 4.2.3beta3 2022-08-19 23:24:19 -04:00
Mark Whitehorn da07cd344c Plane: handle AIRBRAKE RC option 2022-08-19 23:24:19 -04:00
Andrew Tridgell 7aae57672a Plane: prepare for 4.2.3beta2 2022-08-12 02:49:33 -04:00
Andrew Tridgell d2a7ee9a37 Plane: release notes for 4.2.3beta2 2022-08-12 02:49:33 -04:00
Andrew Tridgell dd92f3492d Plane: prepare for 4.2.3beta1 2022-08-12 02:49:33 -04:00
Andrew Tridgell 3d81d9ae04 Plane: update release notes for 4.2.3beta1 2022-08-12 02:49:33 -04:00
Andrew Tridgell 4e141fc67f Plane: allow for throttle control in MANUAL when disarmed
pass base throttle down to ICE subsystem to allow for throttle when
disarmed in MANUAL
2022-08-12 02:49:33 -04:00
Andrew Tridgell a889d1d0e5 Plane: when ICE overrides throttle zero the vfwd integrator 2022-08-12 02:49:33 -04:00
Andrew Tridgell 546cd0efb2 Plane: don't failsafe when in RTL_AUTOLAND landing sequence
when in AUTO and already in the landing sequence then don't trigger a
failsafe
2022-08-12 02:49:33 -04:00
Andrew Tridgell 25127bf1a6 Plane: fixed combination of passby and acceptance dist WP
when a user sets a passby distance we should calculate the turn point
based on the extrapolated distance, not the original waypoint

also simplify the passby logic using offset_bearing()
2022-08-12 02:49:33 -04:00
Andrew Tridgell 1ad47fa45f Plane: fixed check for fixed wing approach QRTL start
ensure we are lined up, or we are at less than 0.5 of radius before we
switch to QRTL. This fixes the case where the stopping distance is
greater than the radius, prevening us from switching to QRTL while not
lined up with the landing point
2022-08-12 02:49:33 -04:00
Andrew Tridgell 1c4cc3670a Plane: improve target airspeed in landing approach
if the user hasn't set TECS_LAND_ARSPD then we can use an airspeed
between ARSPD_FBW_MIN and TRIM_ARSPD_CM when on approach

this also fixes landing_desired_closing_velocity() to never go above
the landing target speed, so we don't try to speed up if we are
starting the landing sequence too early
2022-08-12 02:49:33 -04:00
Andrew Tridgell 5aba7bef29 Plane: base yaw in overshoot on target speed not scaled speed
this prevents an oscillating due to the speed changing as we yaw,
resulting in a different yaw target
2022-08-12 02:49:33 -04:00
Andrew Tridgell 9485a9a62c Plane: improve target airspeed in landing approach
if the user hasn't set TECS_LAND_ARSPD then we can use an airspeed
between ARSPD_FBW_MIN and TRIM_ARSPD_CM when on approach

this also fixes landing_desired_closing_velocity() to never go above
the landing target speed, so we don't try to speed up if we are
starting the landing sequence too early
2022-08-12 02:49:33 -04:00
Andrew Tridgell d4300a8202 Plane: added an arming check for VTOL land too short
this is meant to catch bad mission setup, especially for UGCS, which
planes waypoints right on top of the landing point
2022-08-12 02:49:33 -04:00
Andrew Tridgell a51071678f Plane: in overshoot allow up to the Q WP speed
this prevents us using too much battery when we are a long way from
the landing point
2022-08-12 02:49:33 -04:00
Andrew Tridgell bc115da98d Plane: limit target accel in POSITION1
don't ask for more than 2* transition limit, and reset when we enter
overshoot case
2022-08-12 02:49:33 -04:00
Andrew Tridgell 2c6925b616 Plane: adjust target vector for wind in overshoot
at low speeds we want to keep the nose pointed into the wind on
landings
2022-08-12 02:49:33 -04:00
Andrew Tridgell 088c41f506 Plane: cope with overshoot in POSITION1 VTOL land state
when we overshoot run a simple position controller that tries to point
the nose at the landing point and aims for the position2 speed
threshold
2022-08-12 02:49:33 -04:00
Andrew Tridgell 9918739e8d Plane: version to 4.2.2 2022-08-12 02:49:33 -04:00
Andrew Tridgell 83e0a53267 Plane: prepare for 4.2.2 stable 2022-08-12 02:49:33 -04:00
Andrew Tridgell 1bc973cfa8 Plane: fixed int8_t wrap with FWD_BAT_VOLT_MAX
this could cause crazy throttle values when the ratio pushes us over
127
2022-08-12 02:49:33 -04:00
Andrew Tridgell a2172d5b8e Plane: prepare for 4.2.2beta1 2022-06-21 19:41:34 +09:00
Andrew Tridgell 9f3309667c Plane: prepare for 4.2.2beta1 2022-06-21 19:41:34 +09:00
Andrew Tridgell 4a637efbfe Plane: added Q_NAVALT_MIN
this is equivalent to copters WP_NAVALT_MIN parameter for takeoff. Not
implemented for land yet

this is useful for vehicles with significant GPS velocity noise on
takeoff, preventing dragging the landing gear
2022-06-21 19:41:34 +09:00
Iampete1 7c0a44237c Plane: Quadplane: force convertions of Q_M_PMW_* params if invalid and add arming check 2022-06-21 19:41:34 +09:00
Andrew Tridgell 9da7d6a4cf Plane: adjust down default quadplane gains
make it better for a typical quadplane, the defaults were more
suitable on smaller aircraft
2022-06-21 19:41:34 +09:00
Andrew Tridgell 6201115c76 Plane: moved harmonic notch update code to AP_Vehicle 2022-06-21 19:41:34 +09:00
Andrew Tridgell 13df45adff Plane: param conversion for INS_NOTCH to INS_HNTC2 2022-06-21 19:41:34 +09:00
Andrew Tridgell fd00fef01a Plane: support harmonic notch on 2nd RPM sensor 2022-06-21 19:41:34 +09:00
Andrew Tridgell 800c21fc41 Plane: support two full harmonic notch filters 2022-06-21 19:41:34 +09:00
Andrew Tridgell 5460d7c10c Plane: prepare for 4.2.1 release 2022-05-28 16:08:08 +09:00
Andrew Tridgell 4d8cb8bd67 Plane: release notes for 4.2.1 2022-05-28 16:08:08 +09:00
Andrew Tridgell e5d379cf75 Plane: fixed false positive in landing detector
this fixes a case where we can get false positive on the landing
detector for quadplanes.

The issue happens if we cross the LAND_DESCEND to LAND_FINAL threshold
while pilot repositioning is active, with stale information in
landing_detect.lower_limit_start_ms as we don't run should_relax() in
LAND_DESCEND
2022-05-28 16:08:08 +09:00
Andrew Tridgell b5f9ccbb74 Plane: prepare for 4.2.1beta1 2022-05-28 16:08:08 +09:00
Andrew Tridgell 2db13505ab Plane: update release notes for 4.2.1beta1 2022-05-28 16:08:08 +09:00
Andrew Tridgell 50267e255f Plane: cope with QGC retrying AUTO mode
QGC tries several times to enter AUTO even when it is refused. We need
to keep refusing
2022-05-28 16:08:08 +09:00
Peter Barker cbe9a24d89 ArduPlane: support *10 multipler when storing/retrieving radius in NAV_LOITER_TURNS 2022-05-28 16:08:08 +09:00
Andrew Tridgell e02e0d793c Plane: increased safety of guided -> auto quadplane takeoff
when we arm in guided mode then enter a special guided_wait_takeoff
state. We keep motors suppressed until one of the following happens

  1) disarm
  2) guided takeoff command
  3) change to AUTO with a takeoff waypoint as first nav waypoint
  4) change to another mode

while in this state we don't go to throttle unlimited, and will refuse
a change to AUTO mode if the first waypoint is not a takeoff. If we
try to switch to RTL then we will instead use QLAND

This state is needed to cope with the takeoff sequence used by QGC on
common controllers such as the MX16, which do this on a "takeoff"
swipe:

  - changes mode to GUIDED
  - arms
  - changes mode to AUTO
2022-05-28 16:08:08 +09:00
Andrew Tridgell 066fed18ce Plane: account for sprung throttle in VTOL throttle suppression
when RC_OPTIONS has been changed to not check throttle for arming then
treat this like a sprung throttle for quadplane throttle suppression
in auto-throttle modes, and only unsuppress when throttle goes above
trim+dz
2022-05-28 16:08:08 +09:00
Andrew Tridgell ee8ae2eebd Plane: refuse arming if we are in a landing sequence
this helps when the aircraft has gone into a landing sequence due to a
failsafe before it is armed. Arming while in the landing sequence is
very unlikely to be what the user wants
2022-05-28 16:08:08 +09:00
Andrew Tridgell 57aaaa2a89 Plane: update gyro fft throttle
allows for updating or learned FFT freq
2022-05-28 16:08:08 +09:00
Andrew Tridgell 23f3a3de68 Plane: prepare for 4.2.0 stable release 2022-05-07 08:40:41 +09:00
Andrew Tridgell f51f9875ae Plane: release notes for 4.2.0 2022-05-07 08:40:41 +09:00
Andrew Tridgell 279e457344 Plane: prepare for 4.2.0beta6 2022-04-29 07:54:06 +09:00
Andrew Tridgell e977092363 Plane: release notes for plane 4.2.0beta6 2022-04-29 07:54:06 +09:00
Sanket Sharma ec2a33589c Plane: Updated highest airspeed limit when armed 2022-04-29 07:54:06 +09:00