@@ -949,12 +949,13 @@ FixedwingPositionControl::control_auto(const float control_interval, const Vecto
949
949
} else if (position_sp_type == position_setpoint_s::SETPOINT_TYPE_TAKEOFF &&
950
950
_runway_takeoff.runwayTakeoffEnabled ()) {
951
951
952
- _att_sp.thrust_body [0 ] = _runway_takeoff.getThrottle (now , get_tecs_thrust ());
952
+ _att_sp.thrust_body [0 ] = _runway_takeoff.getThrottle (control_interval , get_tecs_thrust ());
953
953
954
954
} else if (pos_sp_curr.type == position_setpoint_s::SETPOINT_TYPE_TAKEOFF &&
955
955
_autogyro_takeoff.autogyroTakeoffEnabled ()) {
956
956
957
- _att_sp.thrust_body [0 ] = _autogyro_takeoff.getThrottle (now, min (get_tecs_thrust (), _param_fw_thr_max.get ()));
957
+ _att_sp.thrust_body [0 ] = _autogyro_takeoff.getThrottle (control_interval, min (get_tecs_thrust (),
958
+ _param_fw_thr_max.get ()));
958
959
959
960
} else if (pos_sp_curr.type == position_setpoint_s::SETPOINT_TYPE_IDLE) {
960
961
@@ -1477,9 +1478,8 @@ FixedwingPositionControl::control_auto_takeoff(const hrt_abstime &now, const flo
1477
1478
_autogyro_takeoff.update (now, _airspeed, _rotor_rpm, _current_altitude - _takeoff_ground_alt,
1478
1479
_current_latitude, _current_longitude, &_mavlink_log_pub);
1479
1480
1480
- float target_airspeed = get_auto_airspeed_setpoint (now,
1481
- _runway_takeoff.getMinAirspeedScaling () * _param_fw_airspd_min.get (), ground_speed,
1482
- dt);
1481
+ float target_airspeed = get_auto_airspeed_setpoint (control_interval,
1482
+ _runway_takeoff.getMinAirspeedScaling () * _param_fw_airspd_min.get (), ground_speed);
1483
1483
/*
1484
1484
* Update navigation: _autogyro_takeoff returns the start WP according to mode and phase.
1485
1485
* If we use the navigator heading or not is decided later.
0 commit comments