Documentation ¶
Index ¶
Constants ¶
const DefaultAddress = 0x6b
DefaultAddress is a default I2C address for this sensor.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gyro ¶
Gyro is a sensor driver implementation for L3GD20H Gyro. Documentation: http://goo.gl/Nb95rx Arduino code samples: https://github.com/pololu/l3g-arduino
func (*Gyro) Calibrate ¶
Calibrate measures gyro offset until stop channel is written to. Gyro offset is then saved to Offset field. NOTE: during calibration, the sensor has to be static (not moving).
func (*Gyro) Read ¶
Read reads angular speed data from the sensor, in degrees per second. Note: err might be a warning about data "freshness" if it's minimu9.DataAvailabilityError.
func (*Gyro) SetFrequency ¶
SetFrequency sets gyro output data rate, in Hz. Values: 12.5 .. 800.
func (*Gyro) SetFullScale ¶
SetFullScale sets gyro full scale, which affects sensitivity. Values: 245, 500, 2000 (degrees/s)