Andrew Tridgell
8d34fabce0
Plane: added an option to enable flaps by actual speed
...
this allows auto flaps in manual throttle modes, and when speed drops
in an uncommanded fashion
this needs to be used with caution and carefully tested on an aircraft
as it could result in an oscillation, as adding flaps can change the
airspeed
2025-07-14 19:31:01 +10:00
Peter Barker
400dc16d39
ArduPlane: use get_roll_deg in place of roll_sensor (etc.)
2025-06-03 09:48:53 +10:00
Andrew Tridgell
5e34fe600a
Plane: auto-deploy landing gear on fixed wing landing
...
if LGR_OPTIONS is set to auto-deploy then deploy
2025-03-27 08:12:02 +11:00
rubenp02
a1a0fc4a70
Plane: Add fwd. throttle cutoff voltage parameter
...
Updated the forward throttle battery voltage compensation feature to
disable the throttle entirely when the sag-compensated voltage drops
below the new parameter FWD_THR_CUTOFF_V.
Key changes:
- Added new parameter FWD_THR_CUTOFF_V to control the voltage threshold
for this feature. The default value of 0 matches the original behavior
of never cutting the throttle due to low voltage.
- Modified forward throttle battery voltage compensation logic in the
servos code to cut off the throttle in auto-throttle modes if the
resting voltage estimate of the FWD_BAT_IDX battery is under
FWD_THR_CUTOFF_V.
2025-02-11 10:53:49 +11:00
Peter Barker
d322c33169
ArduPlane: rename SRV_Channel::Aux_servo_function_t to SRV_Channel::Function
2025-01-28 21:56:46 +11:00
Iampete1
52efe952cd
Plane: slew limit all throttles in one place
2024-11-19 11:04:37 +11:00
Peter Barker
aadc37ebeb
ArduPlane: make SRV_Channels::cork non-static
...
for symmetry with the push function
2024-11-13 19:47:49 +11:00
Peter Barker
c23f777ae6
ArduPlane: create and use a singleton for SRV_Channels
...
avoid creation of static pointers to objects held within SRV_Channels
2024-11-13 19:47:49 +11:00
George Zogopoulos
d149150a45
Plane: Added parameter TKOFF_THR_IDLE
2024-11-13 19:32:00 +11: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
George Zogopoulos
bc1e490257
Plane: In transition use TRIM_THROTTLE when TKOFF_THR_MIN==0
2024-08-28 18:18:55 +10:00
George Zogopoulos
3b247a346a
Plane: TKOFF_THR_MIN is applied to SLT transitions
...
Also split in_transition() to forward and backward.
2024-08-28 18:18:55 +10:00
Peter Barker
da562369b5
Plane: remove replace PARACHUTE define with AP_PARACHUTE_ENABLED
2024-08-05 10:20:14 +10:00
George Zogopoulos
85bb4ad88f
Plane: Revert min throttle during transitions
2024-07-31 18:23:40 +10:00
George Zogopoulos
ae6f41f414
Plane: Fixed unhandled TKOFF_THR_MAX=0 case
2024-07-31 18:23:40 +10:00
George Zogopoulos
c213ee2ef8
Plane: Converted paramter TKOFF_MODE into TKOFF_OPTIONS
2024-07-29 15:50:32 +10:00
George Zogopoulos
773c91cec1
ArduPlane: Added minimum throttle during TAKEOFF mode
...
This is a rework so that servos.cpp is responsible for setting the
throttle limits under more circumstances and always notifies TECS when
it does so.
Additionally, the TAKEOFF mode has been improved with a new parameters
TKOFF_MODE and TKOFF_THR_MIN that extend the throttle behaviour.
2024-07-29 15:50:32 +10:00
Tom Pittenger
1fe7f6b099
Plane: refactor NAV_ALTITUDE_WAIT to AutoMode:: to match nav_delay()
2024-05-02 10:16:00 -07:00
Iampete1
8a1872bd2a
Plane: allow set_throttle in manual and move disarmed override up
2024-02-20 11:35:17 +11:00
Iampete1
5216dc92f9
Plane: reorder set_throttle function
2024-02-14 20:01:31 +11:00
Iampete1
6b32227d2f
Plane: output nav scripting throttle with rest of nav scripting stuff
2024-02-13 10:50:03 +11:00
Iampete1
2f42f55278
Plane: move pilot throttle output up to control modes
2024-02-06 11:02:28 +11:00
Iampete1
b119a2a6d7
Plane: move guided throttle passthrough to mode_guided
2024-01-31 18:21:27 +11:00
Iampete1
c84e5b337e
Plane: move forward throttle output in VTOL modes to QuadPlane update
2024-01-30 11:06:09 +11:00
Iampete1
7e79a13053
Plane: ask mode if battery voltage compensation should be done
2024-01-18 12:28:38 +11:00
Iampete1
01c8717308
Plane: ask flight mode if min/max throttle limits should be applied
2024-01-16 11:07:53 +11:00
Iampete1
17fb9455a9
Plane: set_throttle add early return for disarmed and throttle suppression
2024-01-16 11:07:53 +11:00
Iampete1
3e955d12fa
Plane: Quadaplane: add helper allow_forward_throttle_in_vtol_mode
2024-01-16 11:07:53 +11:00
Iampete1
ab0755d0d8
Plane: rework forward throttle votlage compensation into sub class and split min/max from throttle
2023-12-20 19:28:47 +11:00
Iampete1
5642d2449a
Plane: allow set_takeoff_expected in manual mode
2023-12-12 11:51:33 +11:00
Iampete1
21a9f8e3a2
Plane: move landing servo override out of throttle control function
2023-12-12 11:51:33 +11:00
Iampete1
4ac9eb9509
Plane: set_servos_controlled: rework throttle output
2023-12-05 11:00:55 +11:00
Iampete1
483ef18087
Plane: ignore invalid pilot throttle
2023-11-29 18:15:01 +11:00
Tom Pittenger
b468af81ac
Plane: wrap Watt Limiiter in #if AP_BATTERY_WATT_MAX_ENABLED
2023-11-26 11:57:14 +11:00
Iampete1
5087a4262d
Plane: set_servos_idle: output left and right throttles
2023-10-31 14:06:22 +11:00
Iampete1
8061b1b4c2
Plane: move set_servos_idle functionality to ModeAuto
2023-10-31 14:06:22 +11:00
Iampete1
7e4b5b0c97
Plane: rework set_servos_controlled function
2023-10-31 11:18:19 +11:00
Iampete1
a6206bde3c
Plane: move to new using_airspeed_sensor ahrs method
2023-10-31 10:39:21 +11:00
Mykhailo Kuznietsov
b7c040e8bc
ArduPlane: Fix some typos
...
Fixed some typos found in the code.
2023-10-12 18:30:42 +11:00
Iampete1
045cde5fcf
Plane: output rudder and steering directly removing steering_control struct
2023-08-05 08:41:05 +10:00
Iampete1
e194cb704c
Plane: fix throttle going bellow min in fbwa RC failsafe
2023-07-26 18:30:49 +10:00
Iampete1
f89563f987
Plane: Training: output rudder from mode run function
2023-07-04 10:44:13 +10:00
Henry Wurzburg
3f7f7cd3a1
Plane:remove duplication in setting servos in MANUAL
2023-06-27 11:04:53 +10:00
Henry Wurzburg
b4c79c9105
Plane:add FlightOptions helper
2023-04-26 17:35:25 +10:00
Henry Wurzburg
1415418d6e
Plane:Takeoff on rudder arm only after return to neutral
2023-04-25 09:28:45 +10:00
Andrew Tridgell
a57e6455ab
Plane: use is_armed_and_safety_off()
...
this no longer sets soft_armed false when safety is on, and instead
uses is_armed_and_safety_off() when appropriate
2023-02-21 07:44:09 +11:00
Peter Barker
648a13d3f7
ArduPlane: add and use AP_ADVANCEDFAILSAFE_ENABLED
2023-02-08 19:00:13 +11:00
Peter Barker
0cf56ea320
ArduPlane: make and use AP_LANDINGGEAR_ENABLED
2022-12-14 18:30:23 +11:00
Andrew Tridgell
15a2e0c1c8
Plane: only apply THR_MIN if ICE has allow_throttle_while_disarmed
...
this fixes the disarmed throttle to be zero on normal aircraft
2022-11-14 11:14:09 +11:00