Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
*internal.BaseModule
}
Controller is the robot's main controller interface. It is also responsibe for movement using the dual stick interface.
func New ¶
func New(ub unitybridge.UnityBridge, l *logger.Logger, cm *connection.Connection) (*Controller, error)
New creates a new Controller instance.
func (*Controller) Move ¶
func (c *Controller) Move(chassisStick *StickPosition, gimbalStick *StickPosition, m Mode) error
Move moves the robot using the given stick positions and control mode.
func (*Controller) SetMode ¶
func (c *Controller) SetMode(m Mode) error
SetMode sets the controller mode for the robot.
type StickPosition ¶
func (*StickPosition) InterpolatedX ¶
func (s *StickPosition) InterpolatedX() uint64
func (*StickPosition) InterpolatedY ¶
func (s *StickPosition) InterpolatedY() uint64
Click to show internal directories.
Click to hide internal directories.