Commit Graph

4978 Commits

Author SHA1 Message Date
Randy Mackay
b094390943 Plane: version to 4.6.0-beta2 2024-12-12 15:13:40 +11:00
Randy Mackay
f055d9634f Plane: 4.6.0-beta2 release notes 2024-12-12 15:13:40 +11:00
George Zogopoulos
c7dd3d8b64 Plane: Call new TECS method in case of altitude change 2024-12-12 15:13:40 +11:00
Iampete1
b745cf72a4 Plane: QuadPlane: Clear pilot corrections on mode change to avoid getting stuck in QLand 2024-12-12 15:13:40 +11:00
Peter Barker
809ac764b7 ArduPlane: make SRV_Channels::cork non-static
for symmetry with the push function
2024-12-12 15:13:40 +11:00
Peter Barker
9ef17dffab ArduPlane: create and use a singleton for SRV_Channels
avoid creation of static pointers to objects held within SRV_Channels
2024-12-12 15:13:40 +11:00
Andrew Tridgell
0d4f4fd81a autotest: added non-compass takeoff test 2024-12-12 15:13:40 +11:00
Andrew Tridgell
a3591b1563 Plane: fixed takeoff direction with no yaw source
in TAKEOFF mode with either very poor yaw source or no yaw source we
need to use ground vector and wait for sufficient ground speed
2024-12-12 15:13:40 +11:00
Michelle Rossouw
c379310d11 Plane: Added Quicktune
replaces QAUTOTUNE in default build
2024-12-11 14:09:48 +11:00
Randy Mackay
8d4976cd60 Plane: version to 4.6.0-beta1 2024-11-14 09:02:45 +11:00
Randy Mackay
059cae1edd Plane: 4.6.0-beta1 release notes
Co-authored-by: Bill Geyer <bnsgeyer@users.noreply.github.com>
Co-authored-by: Ryan <25047695+Ryanf55@users.noreply.github.com>
Co-authored-by: Thomas Watson <twatson52@mac.com>
Co-authored-by: Andrew Tridgell <andrew@tridgell.net>
2024-11-14 09:02:45 +11:00
Ryan Friedman
58c2b82213 ArduPlane: use frame instead of bools for setting alt frame
* And switch to mavlink_coordinate_frame_to_location_alt_frame

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
2024-11-14 09:02:45 +11:00
muramura
7371e45dc0 Plane: Adjust the grouping of functions to match the style 2024-11-14 09:02:45 +11:00
Ryan Friedman
8bcdb89a49 ArduPlane: Remove unused radio_in_rssi function
Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
2024-11-14 09:02:45 +11:00
George Zogopoulos
e9cdc46f55 Plane: Refactored quadplane's SLT_Transition::active_frwd() 2024-10-16 19:02:38 +11:00
George Zogopoulos
016a81bc14 Plane: Reset TECS along with other controllers 2024-10-16 18:58:15 +11:00
Randy Mackay
84a5cc69a6 Plane: 4.5.7 release notes 2024-10-15 11:49:46 +11:00
Peter Barker
dc898e42dd Plane: document date of conversion code addition 2024-10-15 11:02:29 +11:00
Peter Barker
f01abb9d5d ArduPlane: remove stray log_init declaration
this method went away
2024-10-15 10:42:36 +11:00
George Zogopoulos
4352129c4d Plane: Fix SLT_Transition::active_frwd() check 2024-10-09 19:25:50 +11:00
Peter Barker
1a1edf92b7 Plane: evaluate assistance requirements on mode change
this avoid the AHRS being told we are flying forward - because we are no longer in a VTOL mode - and instantly being told we are not flying forward - because we are providing assistance
2024-10-09 19:19:29 +11:00
Peter Barker
c69366ac10 Plane: stop using bit-packing for quadplane state 2024-10-08 20:08:55 +11:00
Leonard Hall
ae01a8f26d Plane: updates for offset handling
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2024-10-04 09:25:56 +09:00
Peter Barker
96f7d8a969 Plane: avoid calling quadplane methods if quadplane not available
one block was guarded, the second not
2024-10-02 17:18:46 +10:00
George Zogopoulos
6ce6ef8fff Plane: Takeoff improvements
- TAKEOFF and AUTO flight modes now should have identical takeoff
- Prevent behaviour switching past climb altitude in TAKEOFF mode.
- Refactor set_pitch_min/max methods.
  Max was already there, now renamed.
  Min is newly introduced.
  behaviour.
- Remove enforcement of min takeoff throttle logic from servos.cpp.
  It is now handled only by takeoff.cpp.
- Take TKOFF_LVL_ALT into consideration in AUTO as well.
- Fixed pitch setpoint when TKOFF_ROTATE_SPD>0.
- Roll navigation in mode TAKEOFF during climb should now work again.
- Now the TAKEOFF loiter waypoint is set by the bearing of the
aircraft while on TKOFF_LVL_ALT, as in the last stable release, instead
of TKOFF_ALT.
- Using TRIM_THROTTLE in takeoffs, when TKOFF_THR_MIN==0
2024-10-02 17:09:07 +10:00
Tarik
9d58bfb91e Plane: Stage control surface wiggles one after another 2024-10-02 17:05:45 +10:00
Peter Barker
0c0a615403 ArduPlane: adjust for AP_Mission logging mission-item-starts 2024-10-01 10:19:29 +10:00
Peter Barker
1470176ca1 ArduPlane: split sending terrain report from terrain request 2024-10-01 10:13:06 +10:00
Andrew Tridgell
1c194878ee Plane: fixed bug in pullup code
if we have poor pitch trim it is possible we will pullup before
reaching the target airspeed. Check pitch threshold during airspeed
stage of pullup
2024-10-01 07:15:44 +10:00
Randy Mackay
8d990d56e5 Plane: 4.5.7-beta1 release notes 2024-09-28 10:18:10 +10:00
Andy Piper
79bae8fd1b Plane: reset sysid and other temporary inputs after rate cycle 2024-09-26 19:25:33 +10:00
timtuxworth
1133f82799 ArduPlane: use Location::AltFrame for guided_state.target_alt_frame 2024-09-24 22:51:02 +10:00
Peter Barker
2bbf1a63a7 ArduPlane: re-order initialiser lines so -Werror=reorder will work 2024-09-24 22:50:28 +10:00
Peter Barker
dc0941ac09 ArduPlane: correct initialisation of PrecLand buffers
this value determines the size of buffers allocated.

Too high and you waste RAM.  Too low and you probably won't store data correctly.
2024-09-24 10:56:57 +09:00
Peter Barker
77067edd91 Plane: correct the ability to disable the takeoff atititude checks 2024-09-24 11:50:17 +10:00
Thomas Watson
1d4c181d17 ArduPlane: only send airspeed when enabled
Avoids debug message spam about sending an unknown message.
2024-09-23 18:53:27 +10:00
Andy Piper
2e194383d2 Plane: log ANG attitude message 2024-09-17 10:12:35 +10:00
Bob Long
a5c8b03925 Plane: try left/right throttle to init ESC scaling
Without this, twin motor planes with DroneCAN ESCs need to set a
dummy throttle channel for scale_esc_to_unity to work.
2024-09-17 09:18:36 +10:00
Iampete1
f000ab6d1b ArduPlane: add Airspeed to raw sensor stream rates 2024-09-17 09:10:17 +10:00
Andrew Tridgell
83cac93e85 Plane: allow for any orientation of rangefinder for landing
this is principally for tailsitters where rangefinders would be
orientation with RNGFND1_ORIENT=12 (PITCH_180), but also allows for
custom orientations which will be useful if the rangefinder is tilted
forward
2024-09-14 08:39:51 +10:00
Andrew Tridgell
f3b4f8fdc4 Plane: added Q_APPROACH_DIST
this sets a minimum distance to use the fixed wing approach logic. It
is an alternative to just disabling the approach with Q_OPTIONS which
some users do to avoid some short distance problems. This allows the
approach to still be used for longer distances in QRTL but have it
disabled for shorter distances
2024-09-12 20:48:48 +10:00
Andy Piper
8596466d5a Plane: Write_Rate() moved to AC_AttitudeControl 2024-09-10 16:33:04 +01:00
Peter Barker
c99fc688e1 ArduPlane: avoid nullptr dereference on bad rcmap value entry 2024-09-10 22:00:50 +10:00
Andy Piper
d309275866 Plane: log attitude target in degrees 2024-09-10 10:54:55 +10:00
Andrew Tridgell
65e15f2bd9 Plane: don't run TECS update_speed_height() when in idle mode 2024-09-10 10:15:34 +10:00
Andrew Tridgell
2f19dfef8a Plane: added glider pullup support 2024-09-10 10:15:34 +10:00
Peter Barker
1476c69d84 ArduPlane: remove AUX_FUNC entries based on feature defines 2024-09-08 00:55:43 +10:00
Randy Mackay
7f3b552ac7 Plane: 4.5.6 release notes 2024-09-04 07:36:58 +10:00
George Zogopoulos
bc1e490257 Plane: In transition use TRIM_THROTTLE when TKOFF_THR_MIN==0 2024-08-28 18:18:55 +10:00
George Zogopoulos
6fee0eccad Plane: Removed all instances of in_back_transition
It is not currently used anywhere.
2024-08-28 18:18:55 +10:00