File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
examples/SimpleAccelerometer Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ void setup() {
3030 Serial.print (IMU.accelerationSampleRate ());
3131 Serial.println (" Hz" );
3232 Serial.println ();
33- Serial.println (" Acceleration in G 's" );
33+ Serial.println (" Acceleration in g 's" );
3434 Serial.println (" X\t Y\t Z" );
3535}
3636
Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ gyroscopeSampleRate KEYWORD2
2424
2525#######################################
2626# Constants
27- #######################################
27+ #######################################
Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ int LSM6DS3Class::begin()
8484 // set the gyroscope control register to work at 104 Hz, 2000 dps and in bypass mode
8585 writeRegister (LSM6DS3_CTRL2_G, 0x4C );
8686
87- // Set the Accelerometer control register to work at 104 Hz, 4G ,and in bypass mode and enable ODR/4
88- // low pass filter(check figure9 of LSM6DS3's datasheet)
87+ // Set the Accelerometer control register to work at 104 Hz, 4 g ,and in bypass mode and enable ODR/4
88+ // low pass filter (check figure9 of LSM6DS3's datasheet)
8989 writeRegister (LSM6DS3_CTRL1_XL, 0x4A );
9090
9191 // set gyroscope power mode to high performance and bandwidth to 16 MHz
Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ class LSM6DS3Class {
3232 void end ();
3333
3434 // Accelerometer
35- virtual int readAcceleration (float & x, float & y, float & z); // Results are in G (earth gravity).
35+ virtual int readAcceleration (float & x, float & y, float & z); // Results are in g (earth gravity).
3636 virtual float accelerationSampleRate (); // Sampling rate of the sensor.
37- virtual int accelerationAvailable (); // Check for available data from accerometer
37+ virtual int accelerationAvailable (); // Check for available data from accelerometer
3838
3939 // Gyroscope
4040 virtual int readGyroscope (float & x, float & y, float & z); // Results are in degrees/second.
4141 virtual float gyroscopeSampleRate (); // Sampling rate of the sensor.
42- virtual int gyroscopeAvailable (); // Check for available data from gyroscopeAvailable
42+ virtual int gyroscopeAvailable (); // Check for available data from gyroscope
4343
4444
4545 private:
You can’t perform that action at this time.
0 commit comments