mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
uavcan: esc: init msg to avoid publishing random values (#25485)
This commit is contained in:
parent
ec436d3be3
commit
30fcb4fcb1
@ -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++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user