Documentation ¶
Overview ¶
Package imuwit implements wit imus. Tested on the HWT901B and BWT901CL models. Other WT901-based models may work too.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWit ¶
func NewWit( ctx context.Context, deps registry.Dependencies, cfg config.Component, logger golog.Logger, ) (movementsensor.MovementSensor, error)
NewWit creates a new Wit IMU.
Types ¶
type AttrConfig ¶
type AttrConfig struct { Port string `json:"serial_path"` BaudRate int `json:"serial_baud_rate,omitempty"` }
AttrConfig is used for converting a witmotion IMU MovementSensor config attributes.
func (*AttrConfig) Validate ¶
func (cfg *AttrConfig) Validate(path string) error
Validate ensures all parts of the config are valid.
Click to show internal directories.
Click to hide internal directories.