Documentation ¶
Index ¶
- func CalibrateGyro() error
- func CalibrateMag() error
- func Cleanup() error
- func DisableMotors() error
- func ESCPulseNormalised(ch int, throttle float32) error
- func EnableMotors() error
- func EnableServoPowerRail() error
- func Exit()
- func Initialise() error
- func IsExiting() bool
- func MotorBrake(ch int, throttle float32) error
- func PowerOffIMU() error
- func ServoPulseNormalised(ch int, pos float32) error
- func SetModePressed(callback func()) error
- func SetModeReleased(callback func()) error
- func SetPausePressed(callback func()) error
- func SetPauseReleased(callback func()) error
- func WaitForExit()
- type AccelData
- type FusedQuatData
- type FusedTaitBryanData
- type GyroData
- type IMU
- type IMUDmp
- type MagData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ESCPulseNormalised ¶
ESCPulseNormalised send a pulse to the ESC
func EnableServoPowerRail ¶
func EnableServoPowerRail() error
EnableServoPowerRail enable the servo power rail
func MotorBrake ¶
MotorBrake send a speed to a given motor
func ServoPulseNormalised ¶
ServoPulseNormalised send a pulse to the servo
func SetModePressed ¶
func SetModePressed(callback func()) error
SetModePressed register function callback for mode pressed
func SetModeReleased ¶
func SetModeReleased(callback func()) error
SetModeReleased register function callback for mode released
func SetPausePressed ¶
func SetPausePressed(callback func()) error
SetPausePressed register function callback for pause pressed
func SetPauseReleased ¶
func SetPauseReleased(callback func()) error
SetPauseReleased register function callback for pause released
Types ¶
type FusedQuatData ¶
FusedQuatData data read from DMP
type FusedTaitBryanData ¶
FusedTaitBryanData data read from DMP
type IMU ¶
type IMU struct {
// contains filtered or unexported fields
}
IMU holds imu data
type IMUDmp ¶
type IMUDmp struct {
// contains filtered or unexported fields
}
IMUDmp holds imu data TODO: needs LOCKING
func InitialiseIMUDmp ¶
InitialiseIMUDmp setup the IMU with DMP
func (*IMUDmp) AssignDmpCallback ¶
func (i *IMUDmp) AssignDmpCallback(callback func(tbd *FusedTaitBryanData, qd *FusedQuatData))
AssignDmpCallback assign a callback function which is invoked for each interupt