mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -04:00
Plane: added support for throttle nudging with TECS
This commit is contained in:
parent
2c5db9a165
commit
a4f3180e2a
@ -1264,7 +1264,8 @@ static void update_alt()
|
|||||||
SpdHgt_Controller->update_pitch_throttle(target_altitude_cm - home.alt + (int32_t(g.alt_offset)*100),
|
SpdHgt_Controller->update_pitch_throttle(target_altitude_cm - home.alt + (int32_t(g.alt_offset)*100),
|
||||||
target_airspeed_cm,
|
target_airspeed_cm,
|
||||||
(control_mode==AUTO && takeoff_complete == false),
|
(control_mode==AUTO && takeoff_complete == false),
|
||||||
takeoff_pitch_cd);
|
takeoff_pitch_cd,
|
||||||
|
throttle_nudge);
|
||||||
if (g.log_bitmask & MASK_LOG_TECS) {
|
if (g.log_bitmask & MASK_LOG_TECS) {
|
||||||
Log_Write_TECS_Tuning();
|
Log_Write_TECS_Tuning();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user