mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 12:17:35 +08:00
uavcan: esc: init msg to avoid publishing random values (#25485)
This commit is contained in:
@@ -96,7 +96,7 @@ UavcanEscController::update_outputs(uint16_t outputs[MAX_ACTUATORS], unsigned to
|
||||
|
||||
_prev_cmd_pub = timestamp;
|
||||
|
||||
uavcan::equipment::esc::RawCommand msg;
|
||||
uavcan::equipment::esc::RawCommand msg = {};
|
||||
|
||||
// directly output values from mixer
|
||||
for (unsigned i = 0; i < total_outputs; i++) {
|
||||
|
||||
Reference in New Issue
Block a user