Skip to content

Commit

Permalink
Revert "Fix # 12991 Change LSM6DSO gyro scaling to 70 mdps/LSB (#13014)"
Browse files Browse the repository at this point in the history
This reverts commit 8c5cb52.
  • Loading branch information
haslinghuis committed Dec 5, 2023
1 parent 8c5cb52 commit 28e9de1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/drivers/accgyro/accgyro_spi_lsm6dso_init.c
Expand Up @@ -40,9 +40,6 @@

#define LSM6DSO_CHIP_ID 0x6C

// equivalent to 70 mdps/LSB, as specified in LSM6DSO datasheet section 4.1, symbol G_So
#define LSM6DSO_GYRO_SCALE_2000DPS 0.070f

// LSM6DSO register configuration values
typedef enum {
LSM6DSO_VAL_INT1_CTRL = 0x02, // enable gyro data ready interrupt pin 1
Expand Down Expand Up @@ -201,7 +198,7 @@ bool lsm6dsoSpiGyroDetect(gyroDev_t *gyro)

gyro->initFn = lsm6dsoSpiGyroInit;
gyro->readFn = lsm6dsoGyroRead;
gyro->scale = LSM6DSO_GYRO_SCALE_2000DPS;
gyro->scale = GYRO_SCALE_2000DPS;

return true;
}
Expand Down

0 comments on commit 28e9de1

Please sign in to comment.