mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 06:13:33 +08:00
Publishing esc_setpoint_raw from the UAVCAN driver
This commit is contained in:
@@ -109,6 +109,8 @@ void UavcanEscController::update_outputs(float *outputs, unsigned num_outputs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
msg.cmd.push_back(static_cast<int>(scaled));
|
msg.cmd.push_back(static_cast<int>(scaled));
|
||||||
|
|
||||||
|
_esc_status.esc[i].esc_setpoint_raw = abs(static_cast<int>(scaled));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user