I2C LSM9DS1 RaspberryPI C++ Library
GyroSettings Struct Reference

Gyroscope settings with default values. More...

#include <LSM9DS1.h>

Public Types

enum  Scale { G_SCALE_245DPS = 245, G_SCALE_500DPS = 500, G_SCALE_2000DPS = 2000 }
 Gyro_scale defines the possible full-scale ranges of the gyroscope. More...
 
enum  SampleRate {
  G_ODR_14_9 = 1, G_ODR_59_5 = 2, G_ODR_119 = 3, G_ODR_238 = 4,
  G_ODR_476 = 5, G_ODR_952 = 6
}
 Gyro & Acc sampling rates. More...
 

Public Attributes

Scale scale = G_SCALE_245DPS
 gyro scale can be 245, 500, or 2000
 
SampleRate sampleRate = G_ODR_14_9
 Gyro & Accelerometer sample rate.
 
uint8_t enableX = true
 X axis enabled.
 
uint8_t enableY = true
 Y axis enabled.
 
uint8_t enableZ = true
 Z axis enabled.
 
uint8_t bandwidth = 0
 
uint8_t lowPowerEnable = false
 
uint8_t HPFEnable = false
 
uint8_t HPFCutoff = 0
 
uint8_t flipX = false
 
uint8_t flipY = false
 
uint8_t flipZ = false
 
uint8_t orientation = 0
 
uint8_t latchInterrupt = true
 

Detailed Description

Gyroscope settings with default values.

Member Enumeration Documentation

◆ SampleRate

Gyro & Acc sampling rates.

Enumerator
G_ODR_14_9 

14.9 Hz (1)

G_ODR_59_5 

59.5 Hz (2)

G_ODR_119 

119 Hz (3)

G_ODR_238 

238 Hz (4)

G_ODR_476 

476 Hz (5)

G_ODR_952 

952 Hz (6)

◆ Scale

Gyro_scale defines the possible full-scale ranges of the gyroscope.

Enumerator
G_SCALE_245DPS 

245 degrees per second

G_SCALE_500DPS 

500 dps

G_SCALE_2000DPS 

2000 dps


The documentation for this struct was generated from the following file: