Documentation ¶
Index ¶
- func CommandToRotation(hByte, lByte byte, maxRotation float64) float64
- func CommandToThrottle(hByte, lByte byte, maxThrottle float64) float64
- func DeSerializeDuration(data []byte) time.Duration
- func DeSerializeFloat64(data []byte) float64
- func DeSerializeInt(data []byte) int16
- func Limit(value, limit float64) float64
- func NewCounter(limit int) *counter
- func NewKalmanFilter(gain float64, decimalPrecision int) *kalmanFilter
- func SerializeDuration(dur time.Duration) []byte
- func SerializeFloat64(f float64) []byte
- func SerializeInt(n int16) []byte
- func SignedMax(v, maxValue float64) float64
- func WithDataPerSecond(dataPerSecond int) *timeInterval
- func WithMinInterval(dataPerSecond int, minIntervalPercent uint) *timeInterval
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandToRotation ¶
func CommandToThrottle ¶
func DeSerializeDuration ¶
func DeSerializeFloat64 ¶
func DeSerializeInt ¶
func NewCounter ¶
func NewCounter(limit int) *counter
func NewKalmanFilter ¶
func SerializeDuration ¶
func SerializeFloat64 ¶
func SerializeInt ¶
func WithDataPerSecond ¶
func WithDataPerSecond(dataPerSecond int) *timeInterval
func WithMinInterval ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.