utils

package
v0.0.0-...-6b1210f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandToRotation

func CommandToRotation(hByte, lByte byte, maxRotation float64) float64

func CommandToThrottle

func CommandToThrottle(hByte, lByte byte, maxThrottle float64) float64

func DeSerializeDuration

func DeSerializeDuration(data []byte) time.Duration

func DeSerializeFloat64

func DeSerializeFloat64(data []byte) float64

func DeSerializeInt

func DeSerializeInt(data []byte) int16

func Limit

func Limit(value, limit float64) float64

func NewCounter

func NewCounter(limit int) *counter

func NewKalmanFilter

func NewKalmanFilter(gain float64, decimalPrecision int) *kalmanFilter

func SerializeDuration

func SerializeDuration(dur time.Duration) []byte

func SerializeFloat64

func SerializeFloat64(f float64) []byte

func SerializeInt

func SerializeInt(n int16) []byte

func SignedMax

func SignedMax(v, maxValue float64) float64

func WithDataPerSecond

func WithDataPerSecond(dataPerSecond int) *timeInterval

func WithMinInterval

func WithMinInterval(dataPerSecond int, minIntervalPercent uint) *timeInterval

Types

This section is empty.

Jump to

Keyboard shortcuts

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