Documentation ¶
Index ¶
Constants ¶
View Source
const ( EncoderLeftFront = C.RegisterEncoderLeftFront EncoderLeftBack = C.RegisterEncoderLeftBack EncoderRightFront = C.RegisterEncoderRightFront EncoderRightBack = C.RegisterEncoderRightBack )
Encoder registers for ReadEncoder function
View Source
const Address = C.I2CAddress
Address of BotBoarduino on i2c bus
View Source
const MaxSpeed = 90
MaxSpeed is a max speed (positive or negative) for motors
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MC ¶
type MC struct {
// contains filtered or unexported fields
}
MC is a control interface for Motor Controller part of the project
func (*MC) Brake ¶
Brake enables or disables an algorithm which tries to keep motor encoder deltas to zero. It basically means that whenever an encoder detects wheel movement, power is applied to the motors to revert to the previous encoder position. This is a somewhat similar to a car brake.
func (*MC) ReadEncoder ¶
ReadEncoder reads encoder value, in absolute steps, Encoder{Left,Right}{Front,Back}
Click to show internal directories.
Click to hide internal directories.