uavcan: esc: init msg to avoid publishing random values (#25485)

This commit is contained in:
Jacob Dahl 2025-08-26 21:09:36 -08:00 committed by GitHub
parent ec436d3be3
commit 30fcb4fcb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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++) {