refactor: remove deprecated zero_force field from manual control frame

VISION_MANUAL_LEN 11→10, frame [SOF:0xA6][yaw_velocity:4][pitch_velocity:4][checksum:1].
Protocol comment, docs, README struct diagram all updated.
This commit is contained in:
2026-06-02 16:41:06 +08:00
parent da6acdcc89
commit 3cb727e151
4 changed files with 13 additions and 19 deletions
+2 -3
View File
@@ -37,9 +37,8 @@ static void DecodeVision()
{
if (calc_checksum(buf, VISION_MANUAL_LEN) != buf[VISION_MANUAL_LEN - 1])
return;
vision_data.zero_force = buf[1];
memcpy(&vision_data.yaw_degree_velocity, buf + 2, 4);
memcpy(&vision_data.pitch_degree_velocity, buf + 6, 4);
memcpy(&vision_data.yaw_degree_velocity, buf + 1, 4);
memcpy(&vision_data.pitch_degree_velocity, buf + 5, 4);
vision_data.manual_updated = 1;
}
else if (sof == VISION_SOF_DEBUG && len == VISION_DEBUG_LEN)