Skip to main content

encode_pose_data_header

Function encode_pose_data_header 

Source
pub fn encode_pose_data_header(serial: u32) -> [u8; 12]
Expand description

Build the fixed header of a PKT_TYPE_POSE_DATA packet. The caller appends the MessagePack-encoded pose payload after this header; the receiver decodes the payload from offset PACKET_SIZE. serial is the sending device’s factory serial.