Versions in this module Expand all Collapse all v1 v1.2.1 Feb 16, 2017 v1.2.0 Feb 16, 2017 v1.1.0 Jan 9, 2017 v1.0.0 Dec 21, 2016 Changes in this version + type Adaptor struct + func NewAdaptor(port string) *Adaptor + func (a *Adaptor) Connect() (err error) + func (a *Adaptor) Disconnect() error + func (a *Adaptor) Finalize() error + func (a *Adaptor) Name() string + func (a *Adaptor) Port() string + func (a *Adaptor) Reconnect() (err error) + func (a *Adaptor) SetName(n string) + func (a *Adaptor) SetPort(p string) type SpheroDriver + func (s *SpheroDriver) SetName(n string) v0 v0.13.0 Oct 10, 2016 v0.12.1 Jul 13, 2016 v0.12.0 Jul 13, 2016 v0.11.0 Feb 17, 2016 Changes in this version + const Collision + const Error + const SensorData + type CollisionConfig struct + Dead uint8 + Method uint8 + Xs uint8 + Xt uint8 + Ys uint8 + Yt uint8 + func DefaultCollisionConfig() CollisionConfig + type CollisionPacket struct + Axis byte + Speed uint8 + Timestamp uint32 + X int16 + XMagnitude int16 + Y int16 + YMagnitude int16 + Z int16 + type DataStreamingConfig struct + M uint16 + Mask uint32 + Mask2 uint32 + N uint16 + Pcnt uint8 + func DefaultDataStreamingConfig() DataStreamingConfig + type DataStreamingPacket struct + AccelOne int16 + FiltAccX int16 + FiltAccY int16 + FiltAccZ int16 + FiltGyroX int16 + FiltGyroY int16 + FiltGyroZ int16 + FiltLMotorBack int16 + FiltPitch int16 + FiltRMotorBack int16 + FiltRoll int16 + FiltYaw int16 + OdomX int16 + OdomY int16 + Quat0 int16 + Quat1 int16 + Quat2 int16 + Quat3 int16 + RawAccX int16 + RawAccY int16 + RawAccZ int16 + RawGyroX int16 + RawGyroY int16 + RawGyroZ int16 + RawLMotor int16 + RawLMotorBack int16 + RawRMotor int16 + RawRMotorBack int16 + Rsrv1 int16 + Rsrv10 int16 + Rsrv11 int16 + Rsrv2 int16 + Rsrv3 int16 + Rsrv4 int16 + Rsrv5 int16 + Rsrv6 int16 + Rsrv7 int16 + Rsrv8 int16 + Rsrv9 int16 + VeloX int16 + VeloY int16 + type LocatorConfig struct + Flags uint8 + X int16 + Y int16 + YawTare int16 + func DefaultLocatorConfig() LocatorConfig + type SpheroAdaptor struct + func NewSpheroAdaptor(name string, port string) *SpheroAdaptor + func (a *SpheroAdaptor) Connect() (errs []error) + func (a *SpheroAdaptor) Disconnect() (errs []error) + func (a *SpheroAdaptor) Finalize() (errs []error) + func (a *SpheroAdaptor) Name() string + func (a *SpheroAdaptor) Port() string + func (a *SpheroAdaptor) Reconnect() (errs []error) + type SpheroDriver struct + func NewSpheroDriver(a *SpheroAdaptor, name string) *SpheroDriver + func (s *SpheroDriver) ConfigureCollisionDetection(cc CollisionConfig) + func (s *SpheroDriver) ConfigureLocator(d LocatorConfig) + func (s *SpheroDriver) Connection() gobot.Connection + func (s *SpheroDriver) GetRGB() []uint8 + func (s *SpheroDriver) Halt() (errs []error) + func (s *SpheroDriver) Name() string + func (s *SpheroDriver) ReadLocator() []int16 + func (s *SpheroDriver) Roll(speed uint8, heading uint16) + func (s *SpheroDriver) SetBackLED(level uint8) + func (s *SpheroDriver) SetDataStreaming(d DataStreamingConfig) + func (s *SpheroDriver) SetHeading(heading uint16) + func (s *SpheroDriver) SetRGB(r uint8, g uint8, b uint8) + func (s *SpheroDriver) SetRotationRate(level uint8) + func (s *SpheroDriver) SetStabilization(on bool) + func (s *SpheroDriver) Start() (errs []error) + func (s *SpheroDriver) Stop()