Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "0.1-pre-alpha"
Version is the global version of the software
Functions ¶
Types ¶
type Motor ¶
type Motor struct { Name string Pins [2]embd.DigitalPin }
Motor represents the motor for controller wheels on the pibot
func NewMotor ¶
func NewMotor(name string, motorSetting settings.MotorSetting) *Motor
NewMotor builds a motor struct and sets up the GPIO for control.
func (*Motor) Forward ¶
func (m *Motor) Forward()
Forward sets the GPIO to high/low for forward rotation
type ProximitySensor ¶
type ProximitySensor struct { Name string Pin embd.DigitalPin Trigger chan bool }
ProximitySensor represents one IR sensor for navigation
func NewProximitySensor ¶
func NewProximitySensor(name string, pin int) *ProximitySensor
NewProximitySensor creates a proximity sensor for monitoring for objects
Click to show internal directories.
Click to hide internal directories.