Auto commit at 2025-06-12 10:13:50
This commit is contained in:
parent
b8aa261670
commit
2f81d24592
@ -192,7 +192,7 @@ private:
|
||||
uint16_t raw_value = static_cast<uint16_t>((msg->data[3] << 8) | msg->data[4]);
|
||||
|
||||
// 数据偏移:减去1024并除以5,得到角度(单位:度)
|
||||
current_feedback_angle = (raw_value - 1024) / 5.0f;
|
||||
current_feedback_angle = (raw_value - 1024) / 7.0f;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user