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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user