Commit Graph

4368 Commits

Author SHA1 Message Date
Andrew Tridgell
1f80e84345 Plane: prepare for 4.2.3 stable 2022-08-29 03:36:02 -04:00
Andrew Tridgell
c321c31221 Plane: release notes for 4.2.3 2022-08-29 03:36:02 -04:00
Andrew Tridgell
c48a7a273e Plane: prepare for 4.2.3beta3 2022-08-19 23:24:26 -04:00
Andrew Tridgell
676eeaa92c Plane: prepare for 4.2.3beta3 2022-08-19 23:24:26 -04:00
Mark Whitehorn
67e1f70bc6 Plane: handle AIRBRAKE RC option 2022-08-19 23:24:26 -04:00
Andrew Tridgell
7b8272f443 Plane: prepare for 4.2.3beta2 2022-08-12 02:49:51 -04:00
Andrew Tridgell
dc21bd290a Plane: release notes for 4.2.3beta2 2022-08-12 02:49:51 -04:00
Andrew Tridgell
90dda9efe7 Plane: prepare for 4.2.3beta1 2022-08-12 02:49:51 -04:00
Andrew Tridgell
0bcdc9f9db Plane: update release notes for 4.2.3beta1 2022-08-12 02:49:51 -04:00
Andrew Tridgell
f212e4bd80 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:51 -04:00
Andrew Tridgell
49255d3315 Plane: when ICE overrides throttle zero the vfwd integrator 2022-08-12 02:49:51 -04:00
Andrew Tridgell
85acba21e2 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:51 -04:00
Andrew Tridgell
f1ace9a01f 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:51 -04:00
Andrew Tridgell
a6f6d12934 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:51 -04:00
Andrew Tridgell
b3d84cd577 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:51 -04:00
Andrew Tridgell
4f9800ca41 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:51 -04:00
Andrew Tridgell
e0b4da9f68 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:51 -04:00
Andrew Tridgell
f1e4b23d71 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:51 -04:00
Andrew Tridgell
baa84a7fdd 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:51 -04:00
Andrew Tridgell
29ccd0e106 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:51 -04:00
Andrew Tridgell
b2f17e7553 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:51 -04:00
Andrew Tridgell
473804f11c 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:51 -04:00
Andrew Tridgell
723f2e25f6 Plane: version to 4.2.2 2022-08-12 02:49:51 -04:00
Andrew Tridgell
52d2d8b1f5 Plane: prepare for 4.2.2 stable 2022-08-12 02:49:51 -04:00
Andrew Tridgell
107f274aaa 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:51 -04:00
Andrew Tridgell
e729aaa142 Plane: prepare for 4.2.2beta1 2022-06-21 19:41:54 +09:00
Andrew Tridgell
01363bcec4 Plane: prepare for 4.2.2beta1 2022-06-21 19:41:54 +09:00
Andrew Tridgell
341ef82ab1 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:54 +09:00
Iampete1
fd47504905 Plane: Quadplane: force convertions of Q_M_PMW_* params if invalid and add arming check 2022-06-21 19:41:54 +09:00
Andrew Tridgell
f133ef6b12 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:54 +09:00
Andrew Tridgell
0faacbd0c6 Plane: moved harmonic notch update code to AP_Vehicle 2022-06-21 19:41:54 +09:00
Andrew Tridgell
542ed5a6e2 Plane: param conversion for INS_NOTCH to INS_HNTC2 2022-06-21 19:41:54 +09:00
Andrew Tridgell
6b6bd8aeb9 Plane: support harmonic notch on 2nd RPM sensor 2022-06-21 19:41:54 +09:00
Andrew Tridgell
2cea3d21b5 Plane: support two full harmonic notch filters 2022-06-21 19:41:54 +09:00
Andrew Tridgell
9fa04ad130 Plane: prepare for 4.2.1 release 2022-05-28 16:08:17 +09:00
Andrew Tridgell
c1be8152ba Plane: release notes for 4.2.1 2022-05-28 16:08:17 +09:00
Andrew Tridgell
b0c8c49643 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:17 +09:00
Andrew Tridgell
400e5e9117 Plane: prepare for 4.2.1beta1 2022-05-28 16:08:17 +09:00
Andrew Tridgell
febdc3950d Plane: update release notes for 4.2.1beta1 2022-05-28 16:08:17 +09:00
Andrew Tridgell
cfeccefcae 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:17 +09:00
Peter Barker
37b3f48786 ArduPlane: support *10 multipler when storing/retrieving radius in NAV_LOITER_TURNS 2022-05-28 16:08:17 +09:00
Andrew Tridgell
d010bc8b55 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:17 +09:00
Andrew Tridgell
669e11b80d 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:17 +09:00
Andrew Tridgell
eed5079295 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:17 +09:00
Andrew Tridgell
de168fe827 Plane: update gyro fft throttle
allows for updating or learned FFT freq
2022-05-28 16:08:17 +09:00
Andrew Tridgell
c0a3c641b2 Plane: prepare for 4.2.0 stable release 2022-05-07 08:40:54 +09:00
Andrew Tridgell
32532209a2 Plane: release notes for 4.2.0 2022-05-07 08:40:54 +09:00
Andrew Tridgell
6c5b7c5178 Plane: prepare for 4.2.0beta6 2022-04-29 08:06:29 +09:00
Andrew Tridgell
e2519e792a Plane: release notes for plane 4.2.0beta6 2022-04-29 08:06:29 +09:00
Sanket Sharma
7bc15282aa Plane: Updated highest airspeed limit when armed 2022-04-29 08:06:29 +09:00