From d5a2c57c5edb0b89df633edf7c7ce99f23064cae Mon Sep 17 00:00:00 2001 From: Ricardo de Almeida Gonzaga Date: Thu, 12 May 2016 13:55:53 -0300 Subject: [PATCH] AP_InertialSensor: Fix typos --- libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.cpp | 4 ++-- libraries/AP_InertialSensor/AuxiliaryBus.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.cpp b/libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.cpp index de9037f2e6..36ca3a52ae 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.cpp +++ b/libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.cpp @@ -115,7 +115,7 @@ bool AP_InertialSensor_Flymaple::_init_sensor(void) // Power up default is FIFO bypass mode. FIFO is not used by the chip // Init the Gyro - // Expect to read the same as the Gyro I2C adress: + // Expect to read the same as the Gyro I2C address: hal.i2c->readRegister(FLYMAPLE_GYRO_ADDRESS, FLYMAPLE_GYRO_WHO_AM_I, &data); if (data != FLYMAPLE_GYRO_ADDRESS) AP_HAL::panic("AP_InertialSensor_Flymaple: could not find ITG-3200 accelerometer sensor"); @@ -181,7 +181,7 @@ void AP_InertialSensor_Flymaple::accumulate(void) if ((now - _last_accel_timestamp) >= raw_sample_interval_us && hal.i2c->readRegisters(FLYMAPLE_ACCELEROMETER_ADDRESS, FLYMAPLE_ACCELEROMETER_ADXLREG_DATAX0, 6, buffer) == 0) { - // The order is a bit wierd here since the standard we have adopted for Flymaple + // The order is a bit weird here since the standard we have adopted for Flymaple // sensor orientation is different to what the board designers intended // Caution, to support alternative chip orientations on other bords, may // need to add a chip orientation rotate diff --git a/libraries/AP_InertialSensor/AuxiliaryBus.h b/libraries/AP_InertialSensor/AuxiliaryBus.h index 2e25fe486a..d67779e657 100644 --- a/libraries/AP_InertialSensor/AuxiliaryBus.h +++ b/libraries/AP_InertialSensor/AuxiliaryBus.h @@ -70,7 +70,7 @@ public: * time a periodic read occurred. * * This method must be called after the periodic read is configured and - * the buffer must be large enough to accomodate the size configured. + * the buffer must be large enough to accommodate the size configured. * * @buf: buffer in which to write the values read *