Documentation ¶
Index ¶
- Constants
- func DeSerializeDroneData(dataPacket []byte) (dur time.Duration, rotations, accelerometer, gyroscope imu.Rotations, ...)
- func DeSerializeHeader(packet []byte) (packetSize, dataPerPacket, dataLen int)
- func NewPlotter() *plotter
- func SerializeDroneData(dur time.Duration, rotations, accelerometer, gyroscope imu.Rotations, ...) []byte
- func SerializeHeader() []byte
Constants ¶
View Source
const PLOTER_PACKET_HEADER_LEN = PLOTTER_INT_DATA_LEN * 3
2 byte packet size + 2 byte data len + 2 byte data/packet
View Source
const PLOTTER_DATA_LEN = PLOTTER_DUR_DATA_LEN + 9*PLOTTER_FLOAT_DATA_LEN + PLOTTER_THROTTLE_DATA_LEN
4 bytes duration, 18 bytes rotations, 1 byte throttle
View Source
const PLOTTER_DATA_PER_PACKET = 100
View Source
const PLOTTER_DUR_DATA_LEN = 4
View Source
const PLOTTER_FLOAT_DATA_LEN = 2
View Source
const PLOTTER_INT_DATA_LEN = 2
View Source
const PLOTTER_PACKET_LEN = PLOTER_PACKET_HEADER_LEN + PLOTTER_DATA_PER_PACKET*PLOTTER_DATA_LEN
View Source
const PLOTTER_THROTTLE_DATA_LEN = 1
View Source
const UDP_BUFFER_LEN = 8192
Variables ¶
This section is empty.
Functions ¶
func DeSerializeDroneData ¶
func DeSerializeHeader ¶
func NewPlotter ¶
func NewPlotter() *plotter
func SerializeDroneData ¶
func SerializeHeader ¶
func SerializeHeader() []byte
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.