You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uint8_t FS = 0;
[...]
writeByte(MPU9250_ADDRESS, GYRO_CONFIG, 1<<FS); // Set full scale range for the gyro to 250 dps
[...]
writeByte(MPU9250_ADDRESS, ACCEL_CONFIG, 1<<FS); // Set full scale range for the accelerometer to 2 g
The first sets Fchoice_b to 1 which results in the gyro bandwidth being 8800 Hz. GYRO_FS_SEL is [4:3], so I think it should set to FS<<3.
The second sets a reserved bit; ACCEL_FS_SEL is also [4:3], so, again, FS<<3.
The text was updated successfully, but these errors were encountered:
Yeah, this is messed up. It should read just 0x00, or FS<<3 with FS = 0x01.
-----Original Message-----
From: Simon Wright [mailto:notifications@github.com]
Sent: September 27, 2016 4:16 AM
To: kriswiner/MPU-9250
Subject: [kriswiner/MPU-9250] MPU9250SelfTest() FS configurations (#78)
Starting at line 924 there is
uint8_t FS = 0;
[...]
writeByte(MPU9250_ADDRESS, GYRO_CONFIG, 1<<FS); // Set full scale range
for the gyro to 250 dps
[...]
writeByte(MPU9250_ADDRESS, ACCEL_CONFIG, 1<<FS); // Set full scale range
for the accelerometer to 2 g
The first sets Fchoice_b to 1 which results in the gyro bandwidth being 8800
Hz. GYRO_FS_SEL is [4:3], so I think it should set to FS<<3.
The second sets a reserved bit; ACCEL_FS_SEL is also [4:3], so, again,
FS<<3.
Starting at line 924 there is
The first sets
Fchoice_b
to 1 which results in the gyro bandwidth being 8800 Hz.GYRO_FS_SEL
is [4:3], so I think it should set toFS<<3
.The second sets a reserved bit;
ACCEL_FS_SEL
is also [4:3], so, again,FS<<3
.The text was updated successfully, but these errors were encountered: