Peter Barker
aa78f53498
Plane: use origin-relative altitudes rather than home-relative
2023-10-18 19:49:06 +11:00
Henry Wurzburg
410fbb998b
Plane:reset in landing seq on mode change while disarmed
2023-10-18 13:37:55 +11:00
Henry Wurzburg
a26ee15216
Plane:force min transition timer to 2 sec
2023-10-17 14:32:24 +11:00
Peter Barker
c990b0105e
ArduPlane: accept LOITER_UNLIM and RETURN_TO_LAUNCH as command_int
2023-10-17 12:58:57 +11:00
Randy Mackay
6bd7c37039
Plane: 4.4.2-beta1 release notes
2023-10-14 11:24:37 +11:00
Andrew Tridgell
c980e0488e
Plane: fixed terrain RTL with rally points
...
this fixes a bug where if the terrain database cache does not have the
tile for the location of a rally point then RTL to the rally point
with TERRAIN_FOLLOW=1 will not track terrain
The underlying issue is that Location::loc.change_alt_frame() will
return false if the location is not in the terrain memory cache. We
can't just extrapolate as the rally point could be in a totally
different terrain area to the current location. So instead we set it
as terrain_following_pending and fix it as soon as the terrain cache
is filled.
fixes https://github.com/ArduPilot/ardupilot/issues/25157
2023-10-14 10:46:00 +11:00
Mykhailo Kuznietsov
b7c040e8bc
ArduPlane: Fix some typos
...
Fixed some typos found in the code.
2023-10-12 18:30:42 +11:00
Peter Barker
e13566695b
ArduPlane: allow for compilation without AP_RTC_ENABLED
2023-10-11 19:17:27 +11:00
Peter Barker
2e494d496b
ArduPlane: allow Plane to run MAV_CMD_MISSION_START as long and int
2023-10-11 19:05:56 +11:00
Henry Wurzburg
7c46585bac
ArduPlane: add airspeed estimate status logging
2023-10-10 08:11:10 +09:00
Peter Barker
be3f292ba4
ArduPlane: don't send fence_status mavlink message if fence not compiled in
2023-10-04 19:13:23 +11:00
Peter Barker
e965b987f6
Plane: accept MAV_CMD_DO_LAND_START as both command_long and COMMAND_INT
2023-10-04 19:04:25 +11:00
Iampete1
9381e2f411
Plane: GuidedHeading PID: remove slew limit
2023-10-03 11:28:18 +11:00
Iampete1
73db3c3823
Plane: MAV_CMD_GUIDED_CHANGE_HEADING: allow changing heading type or rate for same heading
2023-10-03 11:28:18 +11:00
Iampete1
e9fbf6db24
Plane: fix guided heading control anti windup
2023-10-03 11:28:18 +11:00
Peter Barker
af3992d795
Plane: handle DO_GO_AROUND as both COMMAND_LONG and COMMAND_INT
2023-09-27 17:37:55 +10:00
Andrew Tridgell
babdb3625a
Plane: moved assign tilt to the run() function
...
this prevents double calling and fixes qhover
2023-09-27 11:43:45 +10:00
Paul Riseborough
2f0bbf14a4
Plane: fix metadata units for Q_FWD_PIT_LIM
2023-09-27 11:43:45 +10:00
Paul Riseborough
3866f2b4b5
Plane: Rework pitch limiting in QuadPlane::assign_tilt_to_fwd_thr
...
Don't unnecessarily increase the forward pitch limit when position control forward action is saturated.
2023-09-27 11:43:45 +10:00
Paul Riseborough
acf8dbaeee
Plane: Add diagnostics logging to QuadPlane::assign_tilt_to_fwd_thr
2023-09-27 11:43:45 +10:00
Paul Riseborough
fa5aef050c
Plane: Restructure throttle scaling and pitch limiting to enable logging
2023-09-27 11:43:45 +10:00
Paul Riseborough
fb7c383946
Plane: Prevent quadplane.assign_tilt_to_fwd_thr() being called twice
2023-09-27 11:43:45 +10:00
Paul Riseborough
c2d6db13ec
Plane: explicitly type cast pitch limit
2023-09-27 11:43:45 +10:00
Paul Riseborough
90eacaeb88
Plane: fix centi-degree scaling bug
2023-09-27 11:43:45 +10:00
Paul Riseborough
da595bbf88
Plane: Add protection for failed quadplane forward thrust motor
2023-09-27 11:43:45 +10:00
Andrew Tridgell
e3ce7d966b
Plane: fixes from review
2023-09-27 11:43:45 +10:00
Andrew Tridgell
573de2fc17
Plane: implement methods for aux switch control of vfwd code
...
and use a common function for the active method
2023-09-27 11:43:45 +10:00
Paul Riseborough
4993dcb814
Plane: Remove duplicated parameter check
2023-09-27 11:43:45 +10:00
Paul Riseborough
f834d4730b
Plane: Add Q_FWD_THR_GAIN to table of transmitter tuning parameters
2023-09-27 11:43:45 +10:00
Paul Riseborough
6ad7588857
Plane: Add arming check for incompatible Q_VFWD_GAIN and Q_FWD_THR_USE
2023-09-27 11:43:45 +10:00
Paul Riseborough
daea00168b
Plane: Use Q_FWD_THR_USE parameter to control modes that use Q_FWD_THR_GAIN
2023-09-27 11:43:45 +10:00
Paul Riseborough
ed91d428e1
Plane: Default Q_FWD_THR_GAIN to 0 and update meta data
2023-09-27 11:43:45 +10:00
Paul Riseborough
7bbd0ed74e
Plane: prevent wind up of Q-mode velocity controller I term
2023-09-27 11:43:45 +10:00
Paul Riseborough
b3a1807349
Plane: Fix use of q_fwd_nav_pitch_lim_cd class variable
2023-09-27 11:43:45 +10:00
Paul Riseborough
16895003df
Plane: if statement cleanup in QuadPlane::assign_tilt_to_fwd_thr
2023-09-27 11:43:45 +10:00
Paul Riseborough
57cfe854b2
Plane: Add Q_FWD_THR_GAIN value arming check for tailsitters
2023-09-27 11:43:45 +10:00
Paul Riseborough
04e5f6b5f6
Plane: use forward tilt instead of forward throttle when close to ground
2023-09-27 11:43:45 +10:00
Paul Riseborough
8988de3c7c
Plane: Allow non positive values of Q_FWD_PIT_LIM to be used
2023-09-27 11:43:45 +10:00
Paul Riseborough
e866998b21
Plane: Rename q_fwd_tilt_lim to q_fwd_pitch_lim
2023-09-27 11:43:45 +10:00
Paul Riseborough
c15bb3f1e3
Plane: remove code that can never run
2023-09-27 11:43:45 +10:00
Paul Riseborough
98220c7315
Plane: Handle reset of q_fwd_throttle in QuadPlane::mode_enter(void)
2023-09-27 11:43:45 +10:00
Paul Riseborough
2d3431a1ac
Plane: Improve use of forward flight motors and tilting rotors in Q modes
2023-09-27 11:43:45 +10:00
Peter Barker
93da99bea2
Plane: adjust for a lack of DCM
2023-09-27 08:00:54 +10:00
Andrew Tridgell
2b2d4b8087
Plane: release notes for 4.4.1
2023-09-26 13:26:01 +10:00
Peter Barker
c726dec834
ArduPlane: remove COMPASS_CAL messages from streamrates if tumble cal disabled
...
fatal error in SITL if we try to send messages with these disabled
2023-09-26 11:39:50 +10:00
Peter Barker
11ffb059ae
Plane: accept MAV_CMD_DO_AUTOTUNE_ENABLE as both long and int
2023-09-26 11:36:57 +10:00
Iampete1
665ba38cdb
Plane: update PID logger documentation
2023-09-26 10:41:05 +10:00
Henry Wurzburg
f5beb4772d
ArduPlane: correct/expand param metadata re synth airspeed
2023-09-26 09:04:51 +10:00
Henry Wurzburg
97f4f99a89
Plane:clarify CTUN.SAs message meaning
2023-09-26 09:03:35 +10:00
Peter Barker
fbb0601408
Plane: use AP_TUNING_ENABLED
2023-09-21 07:07:58 +10:00
Peter Barker
fc722b5efc
AP_Tuning: add and use AP_TUNING_ENABLED
2023-09-21 07:07:58 +10:00
Peter Barker
63c88fea58
Plane: handle DO_PARACHUTE as both COMMAND_LONG and COMMAND_INT
2023-09-20 17:37:59 +10:00
Peter Barker
06f1ac07bc
Plane: accept motor test as both command long and command int
2023-09-19 20:31:03 +10:00
Iampete1
fa1c5f62aa
Plane: Tailsitter: use motor I term for pitch in assist if not surfaces are setup
2023-09-19 09:35:19 +10:00
Randy Mackay
1572520913
Plane: 4.4.1-beta2 release notes
2023-09-14 17:18:47 +10:00
Peter Barker
ee316f04ed
Plane: allow DO_VTOL_TRANSITION as both LONG and INT commands
2023-09-13 21:25:14 +10:00
Peter Barker
a1b021e833
Plane: move nav_delay state to be private in ModeAuto
2023-09-13 18:08:10 +10:00
Andy Piper
f25e67e3eb
Plane: add option to scale FF in VTOL modes based on ratio of angle gains
2023-09-13 18:02:44 +10:00
Peter Barker
c1b5e9a446
ArduPlane: support preflight calibration via command_int
2023-09-13 17:24:07 +10:00
Peter Barker
445f1fa272
Plane: handle DO_CHANGE_SPEED as COMMAND_INT
2023-09-12 09:22:36 +10:00
Ep Pravitra
9700e65d19
AP_AdvancedFailsafe: option to automatically set mode to auto when datalink is loss
...
When enabled, it ensures vehicle enters AUTO even if it is currently in other autonomous modes (for example Guided)
2023-09-12 09:09:39 +10:00
Henry Wurzburg
e1d91e3007
Plane:add taildrag holdown to TAKEOFF mode
2023-09-11 09:16:02 +10:00
Andrew Tridgell
94201f12c6
Plane: use deadzone in stick mixing
...
this prevents small RC input deviations from impacting non-pilot
controlled modes via stick mixing
2023-09-10 12:25:40 +10:00
Henry Wurzburg
ed21c49975
Plane:correct TKOFF_DIST metadata
2023-09-07 00:49:58 -07:00
Andrew Tridgell
68896c6a50
Plane: release notes for 4.4.1-beta1
2023-09-05 20:16:02 +10:00
Andrew Tridgell
9d98244730
Plane: fixed nav_roll/nav_pitch when waiting for VTOL takeoff
...
the nav_roll_cd and nav_pitch_cd were not being set in the VTOL
takeoff code when disarmed. This led to small increments accumulating
in the stick mixing code, leading to large control surface movements
before arming
2023-09-03 09:51:24 +10:00
Peter Barker
4103d5cdb9
Plane: accept DO_ENGINE_CONTROL as both COMMAND_LONG and COMMAND_INT
2023-08-29 11:48:24 +10:00
Andy Piper
15655a9c24
Plane: add AUTOTUNE_OPTIONS flags to allow filter updates to be disabled
2023-08-23 18:06:22 +10:00
Andrew Tridgell
56dcad3cc2
Plane: dummy AP_ExternalControl implementation
2023-08-22 18:21:23 +10:00
Peter Barker
7df3d29e9d
ArduPlane: pass mavlink_message_t to handle_command_*_packet
...
the "special case" blocks are getting longer and longer. Merge the switch statements for the command type to be handled by passing around the message.
2023-08-22 10:11:33 +10:00
Andrew Tridgell
5e61bfe54c
Plane: release notes from 4.4.0
2023-08-18 18:31:32 +10:00
Shiv Tyagi
ecdc036eb6
Plane: use AP_FOLLOW_ENABLED
2023-08-15 09:57:35 +10:00
Andrew Tridgell
fdccfe7afa
Plane: update release notes for 4.4.0beta5
2023-08-12 16:31:58 +10:00
arshPratap
5f17e33b39
AP_Arming: Added DDS Method for Arming/Disarming
2023-08-11 13:35:49 +10:00
Henry Wurzburg
e9414d69ff
ArduPlane: add failsafe protections to Mode Takeoff
2023-08-09 17:33:58 +10:00
Henry Wurzburg
d8e205dd39
Plane:disarm on parachute release FS
2023-08-08 11:38:45 +10:00
Nicholas Ionata
da30f0b418
Plane: reset target altitude time on mode enter
2023-08-08 11:04:41 +10:00
Peter Hall
83339c9088
Plane: add steering to AETR log msg
2023-08-05 08:41:05 +10:00
Iampete1
045cde5fcf
Plane: output rudder and steering directly removing steering_control struct
2023-08-05 08:41:05 +10:00
Andrew Tridgell
2e2c7b50ad
Plane: cope with home altitude change while navigating
...
this fixes a bug where a change of home altitude would cause a sudden
height demand change. This copes with 3 situations:
- flying with AMSL alt demand. Changing home altitude makes for no change
- flying with AGL alt demand. Changing home altitude requires update of next_WP_loc
- flying with home relative alt demand. Changing home altitude changes demand at end of current navigation leg
2023-08-05 08:31:02 +10:00
Henry Wurzburg
ae5d04b696
Plane:correct metatdata for Q_YAW_ANGLE param
2023-08-03 00:11:08 -07:00
Peter Barker
925ac9bc4e
ArduPlane: eliminate use of MINIMIZE_FEATURES for Plane features
2023-08-02 17:48:25 +10:00
Andrew Tridgell
432fd28c45
Plane: update release notes for 4.4.0-beta4
2023-08-01 17:49:38 +10:00
Peter Barker
5c7e22debb
ArduPlane: correct return error return codes for DO_FOLLOW
...
in the case it wasn't compiled in the return code would be correct.
in the case that the parameter was invalid we would return FAILED, which is wrong, it should be DENIED
2023-08-01 10:43:34 +10:00
Peter Barker
354e3fa5bf
Plane: rely on conversion from long to int for DO_FOLLOW
...
we have code which tries to handle commands coming in as command long as command int.
Change to rely on that code working, rather than handling both command-long and command-int variants
2023-08-01 10:43:34 +10:00
Peter Barker
2cec1204d0
ArduPlane: trim LogStructure base off included code
2023-08-01 10:07:28 +10:00
Iampete1
e194cb704c
Plane: fix throttle going bellow min in fbwa RC failsafe
2023-07-26 18:30:49 +10:00
Randy Mackay
84752fbeaa
Plane: log MNT at 10hz
2023-07-26 17:33:18 +10:00
Henry Wurzburg
9dbcce4460
Plane:expand log metadata for QTUN
2023-07-25 00:04:17 +01:00
Andy Piper
761c7a0161
ArduPlane: fix incorrect float conversion
2023-07-18 11:06:02 +10:00
Andy Piper
49096422e7
Plane: allow notch frequencies to be logged at full rate
2023-07-18 11:03:47 +10:00
Michael du Breuil
a8102d6662
Plane: On vtol landings if from a mission perform crosstracking
2023-07-18 10:44:11 +10:00
Andrew Tridgell
435a83f106
ArduPlane: removed set_blocking_writes_all calls
2023-07-12 17:06:02 +10:00
Andrew Tridgell
a57647e3b4
Plane: update release notes
2023-07-04 16:19:36 +10:00
Tom Pittenger
606ef1b269
Plane: is_landing/is_taking_off not to req scripting
2023-07-03 22:44:00 -07:00
Andrew Tridgell
b271a20e97
Plane: update release notes for 4.4.0beta3
2023-07-04 14:02:01 +10:00
Iampete1
f89563f987
Plane: Training: output rudder from mode run function
2023-07-04 10:44:13 +10:00
Andrew Tridgell
40ce471fec
Plane: fixed transition started airspeed message
...
this message was lost in recent refactoring
2023-07-04 07:22:01 +10:00
Andrew Tridgell
086d0907dd
Plane: fixed TECS state reset in VTOL auto
...
this fixes a bug where TECS maintains its slow integrator while in a
VTOL hover mode in AUTO or GUIDED.
Among other things this affects PAYLOAD_PLACE and
DO_VTOL_TRANSITION. In those states the height can change while
hovering outside the control of TECS. When TECS regains control in a
fwd transition then can lead to a very large height loss or gain until
the TECS integrator can catch up
2023-07-03 07:03:14 +10:00
Henry Wurzburg
979d810912
ArduPlane: allow scaled passthru to go to trim on rc failsafe
2023-06-29 21:37:12 +10:00