Documentation ¶
Overview ¶
Package curie contains the Gobot driver for the Intel Curie IMU.
For further information refer to intel-iot README: https://github.com/hybridgroup/gobot/blob/master/platforms/intel-iot/curie/README.md
Index ¶
- Constants
- type AccelerometerData
- type GyroscopeData
- type IMUDriver
- func (imu *IMUDriver) Connection() gobot.Connection
- func (imu *IMUDriver) EnableShockDetection(detect bool) error
- func (imu *IMUDriver) EnableStepCounter(count bool) error
- func (imu *IMUDriver) EnableTapDetection(detect bool) error
- func (imu *IMUDriver) Halt() (err error)
- func (imu *IMUDriver) Name() string
- func (imu *IMUDriver) ReadAccelerometer() error
- func (imu *IMUDriver) ReadGyroscope() error
- func (imu *IMUDriver) ReadMotion() error
- func (imu *IMUDriver) ReadTemperature() error
- func (imu *IMUDriver) SetName(n string)
- func (imu *IMUDriver) Start() (err error)
- type MotionData
- type ShockData
- type TapData
Constants ¶
const ( CURIE_IMU = 0x11 CURIE_IMU_READ_ACCEL = 0x00 CURIE_IMU_READ_GYRO = 0x01 CURIE_IMU_READ_TEMP = 0x02 CURIE_IMU_SHOCK_DETECT = 0x03 CURIE_IMU_STEP_COUNTER = 0x04 CURIE_IMU_TAP_DETECT = 0x05 CURIE_IMU_READ_MOTION = 0x06 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccelerometerData ¶
type GyroscopeData ¶
type IMUDriver ¶
IMUDriver represents the IMU that is built-in to the Curie
func NewIMUDriver ¶
func NewIMUDriver(a firmata.FirmataAdaptor) *IMUDriver
NewIMUDriver returns a new IMUDriver
func (*IMUDriver) Connection ¶
func (imu *IMUDriver) Connection() gobot.Connection
Connection returns the IMUDriver's Connection
func (*IMUDriver) EnableShockDetection ¶
EnableShockDetection turns on/off the Curie's built-in shock detection. The result will be returned by the Sysex response message
func (*IMUDriver) EnableStepCounter ¶
EnableStepCounter turns on/off the Curie's built-in step counter. The result will be returned by the Sysex response message
func (*IMUDriver) EnableTapDetection ¶
EnableTapDetection turns on/off the Curie's built-in tap detection. The result will be returned by the Sysex response message
func (*IMUDriver) ReadAccelerometer ¶
ReadAccelerometer calls the Curie's built-in accelerometer. The result will be returned by the Sysex response message
func (*IMUDriver) ReadGyroscope ¶
ReadGyroscope calls the Curie's built-in gyroscope. The result will be returned by the Sysex response message
func (*IMUDriver) ReadMotion ¶
ReadMotion calls the Curie's built-in accelerometer & gyroscope. The result will be returned by the Sysex response message
func (*IMUDriver) ReadTemperature ¶
ReadTemperature calls the Curie's built-in temperature sensor. The result will be returned by the Sysex response message