Documentation ¶
Overview ¶
Package fake implements a fake servo.
Index ¶
- type Servo
- func (s *Servo) IsMoving(ctx context.Context) (bool, error)
- func (s *Servo) Move(ctx context.Context, angleDeg uint32, extra map[string]interface{}) error
- func (s *Servo) Position(ctx context.Context, extra map[string]interface{}) (uint32, error)
- func (s *Servo) Stop(ctx context.Context, extra map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Servo ¶
type Servo struct { resource.Named resource.TriviallyReconfigurable resource.TriviallyCloseable // contains filtered or unexported fields }
A Servo allows setting and reading a single angle.
Click to show internal directories.
Click to hide internal directories.