gobot: gobot.io/x/gobot/platforms/intel-iot/curie Index | Files

package curie

import "gobot.io/x/gobot/platforms/intel-iot/curie"

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

Package Files

doc.go imu_driver.go

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
)

type AccelerometerData Uses

type AccelerometerData struct {
    X   int16
    Y   int16
    Z   int16
}

AccelerometerData is what gets returned with the "Accelerometer" event.

type GyroscopeData Uses

type GyroscopeData struct {
    X   int16
    Y   int16
    Z   int16
}

GyroscopeData is what gets returned with the "Gyroscope" event.

type IMUDriver Uses

type IMUDriver struct {
    gobot.Eventer
    // contains filtered or unexported fields
}

IMUDriver represents the IMU that is built-in to the Curie

func NewIMUDriver Uses

func NewIMUDriver(a *firmata.Adaptor) *IMUDriver

NewIMUDriver returns a new IMUDriver

func (*IMUDriver) Connection Uses

func (imu *IMUDriver) Connection() gobot.Connection

Connection returns the IMUDriver's Connection

func (*IMUDriver) EnableShockDetection Uses

func (imu *IMUDriver) EnableShockDetection(detect bool) error

EnableShockDetection turns on/off the Curie's built-in shock detection. The result will be returned by the Sysex response message

func (*IMUDriver) EnableStepCounter Uses

func (imu *IMUDriver) EnableStepCounter(count bool) error

EnableStepCounter turns on/off the Curie's built-in step counter. The result will be returned by the Sysex response message

func (*IMUDriver) EnableTapDetection Uses

func (imu *IMUDriver) EnableTapDetection(detect bool) error

EnableTapDetection turns on/off the Curie's built-in tap detection. The result will be returned by the Sysex response message

func (*IMUDriver) Halt Uses

func (imu *IMUDriver) Halt() (err error)

Halt stops the IMUDriver

func (*IMUDriver) Name Uses

func (imu *IMUDriver) Name() string

Name returns the IMUDriver's name

func (*IMUDriver) ReadAccelerometer Uses

func (imu *IMUDriver) ReadAccelerometer() error

ReadAccelerometer calls the Curie's built-in accelerometer. The result will be returned by the Sysex response message

func (*IMUDriver) ReadGyroscope Uses

func (imu *IMUDriver) ReadGyroscope() error

ReadGyroscope calls the Curie's built-in gyroscope. The result will be returned by the Sysex response message

func (*IMUDriver) ReadMotion Uses

func (imu *IMUDriver) ReadMotion() error

ReadMotion calls the Curie's built-in accelerometer & gyroscope. The result will be returned by the Sysex response message

func (*IMUDriver) ReadTemperature Uses

func (imu *IMUDriver) ReadTemperature() error

ReadTemperature calls the Curie's built-in temperature sensor. The result will be returned by the Sysex response message

func (*IMUDriver) SetName Uses

func (imu *IMUDriver) SetName(n string)

SetName sets the IMUDriver'ss name

func (*IMUDriver) Start Uses

func (imu *IMUDriver) Start() (err error)

Start starts up the IMUDriver

type MotionData Uses

type MotionData struct {
    AX  int16
    AY  int16
    AZ  int16
    GX  int16
    GY  int16
    GZ  int16
}

MotionData is what gets returned with the "Motion" event.

type ShockData Uses

type ShockData struct {
    Axis      byte
    Direction byte
}

ShockData is what gets returned with the "Shock" event.

type TapData Uses

type TapData struct {
    Axis      byte
    Direction byte
}

TapData is what gets returned with the "Tap" event.

Package curie imports 3 packages (graph). Updated 2017-10-24. Refresh now. Tools for package owners.