mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-08-21 20:50:36 +08:00
FlightTask: rename and move setCruisingSpeed() -> overrideCruiseSpeed()
This commit is contained in:
committed by
Roman Bapst
parent
f892a624b7
commit
68cf686892
@@ -447,7 +447,7 @@ void FlightModeManager::handleCommand()
|
||||
if ((command.command == vehicle_command_s::VEHICLE_CMD_DO_CHANGE_SPEED)
|
||||
&& (static_cast<uint8_t>(command.param1 + .5f) == vehicle_command_s::SPEED_TYPE_GROUNDSPEED)
|
||||
&& (command.param2 > 0.f)) {
|
||||
_current_task.task->setCruisingSpeed(command.param2);
|
||||
_current_task.task->overrideCruiseSpeed(command.param2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user