Skip to content
Snippets Groups Projects
Commit fe6cacf0 authored by Mike McCauley's avatar Mike McCauley
Browse files

AP_InertialSensor: Minor correction to comments in AP_InertialSensor_Flymaple.cpp

parent 0920d9ac
No related branches found
No related tags found
No related merge requests found
......@@ -254,7 +254,7 @@ void AP_InertialSensor_Flymaple::_accumulate(void)
// ADXL345 is in the default FIFO bypass mode, so the FIFO is not used
uint8_t buffer[6];
uint64_t now = hal.scheduler->micros();
// This takes about 500us at 200kHz I2C speed
// This takes about 250us at 400kHz I2C speed
if ((now - _last_accel_timestamp) >= raw_sample_interval_us
&& hal.i2c->readRegisters(FLYMAPLE_ACCELEROMETER_ADDRESS, FLYMAPLE_ACCELEROMETER_ADXLREG_DATAX0, 6, buffer) == 0)
{
......@@ -274,7 +274,7 @@ void AP_InertialSensor_Flymaple::_accumulate(void)
// Read gyro
now = hal.scheduler->micros();
// This takes about 500us at 200kHz I2C speed
// This takes about 250us at 400kHz I2C speed
if ((now - _last_gyro_timestamp) >= raw_sample_interval_us
&& hal.i2c->readRegisters(FLYMAPLE_GYRO_ADDRESS, FLYMAPLE_GYRO_GYROX_H, 6, buffer) == 0)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment