Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadStatusAndVector ¶
ReadStatusAndVector reads status byte, and 3x2-byte X, Y and Z int16 vector values.
func WriteBitsToReg ¶
WriteBitsToReg reads a byte from a specified address, clears the bits set in mask, then sets them to a specified value and writes back.
Types ¶
type DataAvailabilityError ¶
DataAvailabilityError is a warning which tells that some data was either lost (not read by the user before it was overwritten with a new value), or not available yet (the measurement frequency is too low).
func (*DataAvailabilityError) Error ¶
func (e *DataAvailabilityError) Error() string
Error returns human-readable description string for the error.
type IntVector ¶
type IntVector struct {
X, Y, Z int16
}
IntVector is a 3D vector holding the dimensions in 2-byte signed integers, as all the hardware parts of miniIMU9 do.
func GetOffsetAndRange ¶
func GetOffsetAndRange(read func() (IntVector, error), stop chan int) ( IntVector, r3.Vector, error)
GetOffsetAndRange computes average offset and range of vectors returned by read(), until stop channel is written to.
func ReadVector ¶
ReadVector reads IntVector dimensions.