Documentation ¶
Overview ¶
Package fake implements a fake base.
Index ¶
- type Base
- func (b *Base) Close()
- func (b *Base) IsMoving(ctx context.Context) (bool, error)
- func (b *Base) MoveStraight(ctx context.Context, distanceMm int, mmPerSec float64, ...) error
- func (b *Base) SetPower(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
- func (b *Base) SetVelocity(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
- func (b *Base) Spin(ctx context.Context, angleDeg, degsPerSec float64, ...) error
- func (b *Base) Stop(ctx context.Context, extra map[string]interface{}) error
- func (b *Base) Width(ctx context.Context) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
Base is a fake base that returns what it was provided in each method.
func (*Base) MoveStraight ¶
func (b *Base) MoveStraight(ctx context.Context, distanceMm int, mmPerSec float64, extra map[string]interface{}) error
MoveStraight does nothing.
func (*Base) SetPower ¶
func (b *Base) SetPower(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
SetPower does nothing.
func (*Base) SetVelocity ¶
func (b *Base) SetVelocity(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
SetVelocity does nothing.
func (*Base) Spin ¶
func (b *Base) Spin(ctx context.Context, angleDeg, degsPerSec float64, extra map[string]interface{}) error
Spin does nothing.
Click to show internal directories.
Click to hide internal directories.