Fix imu_range bug

This commit is contained in:
kalman 2018-11-27 15:04:16 +08:00
parent c7f1cb718e
commit ce76b16c07

View File

@ -26,9 +26,9 @@ int main(int argc, char *argv[]) {
if (!api) if (!api)
return 1; return 1;
// ACCELEROMETER_RANGE values: 4, 8, 16, 32 // ACCELEROMETER_RANGE values: 6, 12, 24, 32
api->SetOptionValue(Option::ACCELEROMETER_RANGE, 8); api->SetOptionValue(Option::ACCELEROMETER_RANGE, 6);
// GYROSCOPE_RANGE values: 500, 1000, 2000, 4000 // GYROSCOPE_RANGE values: 250, 500, 1000, 2000, 4000
api->SetOptionValue(Option::GYROSCOPE_RANGE, 1000); api->SetOptionValue(Option::GYROSCOPE_RANGE, 1000);
LOG(INFO) << "Set ACCELEROMETER_RANGE to " LOG(INFO) << "Set ACCELEROMETER_RANGE to "