Skip to content

Commit 8c69e38

Browse files
committed
follow changes in master
1 parent 4c99051 commit 8c69e38

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/modules/fw_pos_control_l1/FixedwingPositionControl.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -949,12 +949,13 @@ FixedwingPositionControl::control_auto(const float control_interval, const Vecto
949949
} else if (position_sp_type == position_setpoint_s::SETPOINT_TYPE_TAKEOFF &&
950950
_runway_takeoff.runwayTakeoffEnabled()) {
951951

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());
953953

954954
} else if (pos_sp_curr.type == position_setpoint_s::SETPOINT_TYPE_TAKEOFF &&
955955
_autogyro_takeoff.autogyroTakeoffEnabled()) {
956956

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()));
958959

959960
} else if (pos_sp_curr.type == position_setpoint_s::SETPOINT_TYPE_IDLE) {
960961

@@ -1477,9 +1478,8 @@ FixedwingPositionControl::control_auto_takeoff(const hrt_abstime &now, const flo
14771478
_autogyro_takeoff.update(now, _airspeed, _rotor_rpm, _current_altitude - _takeoff_ground_alt,
14781479
_current_latitude, _current_longitude, &_mavlink_log_pub);
14791480

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);
14831483
/*
14841484
* Update navigation: _autogyro_takeoff returns the start WP according to mode and phase.
14851485
* If we use the navigator heading or not is decided later.

0 commit comments

Comments
 (0)