Auto commit at 2025-06-11 16:41:08

This commit is contained in:
cxh 2025-06-11 16:41:08 +08:00
parent fdc96bd02d
commit ca488dd5ee

View File

@ -100,7 +100,7 @@ private:
else
{
msg.brake = 0;
msg.rpm = static_cast<uint16_t>(MCU_RPM_MAX * (ch_data[1] - speed[1]) / (speed[2] - speed[1]));
msg.rpm = static_cast<uint8_t>(MCU_RPM_MAX * (ch_data[1] - speed[1]) / (speed[2] - speed[1]));
}
// 一键清扫