plotter

package
v0.0.0-...-5f4f8ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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

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_THROTTLE_DATA_LEN = 1
View Source
const UDP_BUFFER_LEN = 8192

Variables

This section is empty.

Functions

func DeSerializeDroneData

func DeSerializeDroneData(dataPacket []byte) (dur time.Duration, rotations, accelerometer, gyroscope imu.Rotations, throttle byte)

func DeSerializeHeader

func DeSerializeHeader(packet []byte) (packetSize, dataPerPacket, dataLen int)

func NewPlotter

func NewPlotter() *plotter

func SerializeDroneData

func SerializeDroneData(dur time.Duration, rotations, accelerometer, gyroscope imu.Rotations, throttle byte) []byte

func SerializeHeader

func SerializeHeader() []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL