Documentation ¶
Overview ¶
Package l3gd20 allows interacting with L3GD20 gyroscoping sensor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( R250DPS = &Range{sensitivity: 0.00875, value: 0x00} R500DPS = &Range{sensitivity: 0.0175, value: 0x10} R2000DPS = &Range{sensitivity: 0.070, value: 0x20} )
The three range settings supported by L3GD20.
Functions ¶
This section is empty.
Types ¶
type L3GD20 ¶
L3GD20 represents a L3GD20 3-axis gyroscope.
func New ¶
New creates a new L3GD20 interface. The bus variable controls the I2C bus used to communicate with the device.
func (*L3GD20) OrientationDelta ¶
Orientation returns the current orientation reading.
func (*L3GD20) Orientations ¶
func (d *L3GD20) Orientations() (<-chan Orientation, error)
Orientations returns a channel which will have the current temperature reading.
func (*L3GD20) Temperature ¶
Temperature returns the current temperature reading.
type Orientation ¶
type Orientation struct {
X, Y, Z float64
}
Click to show internal directories.
Click to hide internal directories.