Commit Graph

4352 Commits

Author SHA1 Message Date
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
Andrew Tridgell 04de0cb382 Plane: add Q_OPTION for RTL always on RC failsafe for ship landing 2022-04-29 08:06:29 +09:00
Andrew Tridgell 70decb3282 Plane: param conversion for INS_NOTCH to INS_HNTC2 2022-04-29 08:06:29 +09:00
Peter Barker d44ad0a2a7 Plane: do not use guided waypoint for loiter location
Currently this waypoint is set 10,000m away by the avoidance behaviour

Instead, immediately enter loiter mode
2022-04-29 08:06:29 +09:00
Andrew Tridgell dc765abb90 Plane: prepare for 4.2.0beta5 2022-04-09 17:12:27 +09:00
Andrew Tridgell 73a932c05d Plane: release notes for 4.2.0beta5 2022-04-09 17:12:27 +09:00
Andrew Tridgell aeed2b1a9d Plane: fixed rudder control when ARMING_RUDDER != 2
when rudder disarm is disabled we should allow full yaw control
regardless of throttle level. We should also only disable left yaw
when throttle is at zero, as right yaw does not indicate pilot may be
trying to disarm
2022-04-09 17:12:27 +09:00
Andrew Tridgell 9bdd5844a8 Plane: prepare for 4.2.0beta4 release 2022-03-30 19:12:45 +09:00
Andrew Tridgell 6247e908f6 Plane: added release notes for 4.2.0beta4 2022-03-30 19:12:45 +09:00
Andrew Tridgell a51f595ef0 Plane: fixed yaw on the ground when rudder disarming in AUTO
when a quadplane touches down in an auto throttle mode the pilot may
use rudder to disarm. The check for rudder disarm was only active in
modes without auto-throttle. This expands it to all modes if the
throttle has hit the lower limit
2022-03-30 19:12:45 +09:00
Andrew Tridgell e764a96198 Plane: added a value for RTL_AUTOLAND to disable arming check
set RTL_AUTOLAND=3 to get go-around but not RTL DO_LAND_START usage
2022-03-30 19:12:45 +09:00
Andrew Tridgell b764b4c1e4 Plane: prevent rapid RTL/AUTO switching on fence breach
don't switch back to RTL if already in a DO_LAND_START sequence
2022-03-30 19:12:45 +09:00
Andrew Tridgell a977898bd3 Plane: when shutting down motors force outputs to minimum
this fixes issue #20354 where a long spool time can lead to motors
running without control for an extended period of time.
2022-03-30 19:12:45 +09:00
Andrew Tridgell dc8ade101f Plane: prepare for 4.2.0beta3 2022-03-30 19:12:45 +09:00
Andrew Tridgell 87a32a2c68 Plane: update release notes for 4.2.0beta3 2022-03-30 19:12:45 +09:00
Tim Tuxworth 7dbfd2ebf7 Plane: Display Fence Breach message in GCS
Send a "Geofence breach" message to the Ground Control Station. Without this when the fence is breached and if anything happens as a result, such as RTL, it will happen silently.
2022-03-30 19:12:45 +09:00
Andrew Tridgell 77bc475ad6 Plane: adjust throttle mix for auto landing
use mix-max during landing approach and initial descent, use min in
land final. As discussed with Leonard
2022-03-30 19:12:45 +09:00