mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
fix handling MAV_CMD_CONFIGURE_ACTUATOR -1000
This commit is contained in:
parent
4ee3d2778e
commit
72cd09bd87
@ -765,7 +765,10 @@ void DShot::handle_configure_actuator(const vehicle_command_s &command)
|
||||
{
|
||||
int function = (int)(command.param5 + 0.5);
|
||||
|
||||
PX4_INFO("Received VEHICLE_CMD_CONFIGURE_ACTUATOR");
|
||||
if (function > 1000) {
|
||||
// NOTE: backwards compatibility for QGC - 1101=Motor1, 1102=Motor2, etc
|
||||
function -= 1000;
|
||||
}
|
||||
|
||||
int motor_index = -1;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user