Auto commit at 2025-06-13 11:29:11
This commit is contained in:
parent
2c842f87ec
commit
b56d7e2f98
@ -98,6 +98,8 @@ private:
|
||||
msg.rpm = 0;
|
||||
}
|
||||
|
||||
if (ch_data[7] != 992)
|
||||
{
|
||||
// 油门 / 刹车逻辑
|
||||
if (ch_data[1] <= speed[1])
|
||||
{
|
||||
@ -109,6 +111,7 @@ private:
|
||||
msg.brake = 0;
|
||||
msg.rpm = static_cast<uint8_t>(MCU_RPM_MAX * (ch_data[1] - speed[1]) / (speed[2] - speed[1]));
|
||||
}
|
||||
}
|
||||
|
||||
// 一键清扫
|
||||
if (ch_data[5] == 1792)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user