diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-03 15:37:24 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-03 15:37:24 +0100 |
commit | c600a7fbd27c298e855d1f3e6f00f590141f995e (patch) | |
tree | 4b666c4c453fce7973df48af90cfb6cde671cec2 /src/drivers/l3gd20 | |
parent | 06df0f23a32c87486815a9794c1425fe4534ac13 (diff) | |
download | px4-firmware-c600a7fbd27c298e855d1f3e6f00f590141f995e.tar.gz px4-firmware-c600a7fbd27c298e855d1f3e6f00f590141f995e.tar.bz2 px4-firmware-c600a7fbd27c298e855d1f3e6f00f590141f995e.zip |
L3GD20: Fix typo
Diffstat (limited to 'src/drivers/l3gd20')
-rw-r--r-- | src/drivers/l3gd20/l3gd20.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/l3gd20/l3gd20.cpp b/src/drivers/l3gd20/l3gd20.cpp index ff2871354..82fa5cc6e 100644 --- a/src/drivers/l3gd20/l3gd20.cpp +++ b/src/drivers/l3gd20/l3gd20.cpp @@ -176,7 +176,7 @@ static const int ERROR = -1; #define L3G4200D_DEFAULT_RATE 800 #define L3GD20_DEFAULT_RANGE_DPS 2000 #define L3GD20_DEFAULT_FILTER_FREQ 30 -#define L3GD20_TEMP_OFFSET_CELCIUS 40 +#define L3GD20_TEMP_OFFSET_CELSIUS 40 #ifndef SENSOR_BOARD_ROTATION_DEFAULT #define SENSOR_BOARD_ROTATION_DEFAULT SENSOR_BOARD_ROTATION_270_DEG @@ -941,7 +941,7 @@ L3GD20::measure() report.y = _gyro_filter_y.apply(report.y); report.z = _gyro_filter_z.apply(report.z); - report.temperature = L3GD20_TEMP_OFFSET_CELCIUS - raw_report.temp; + report.temperature = L3GD20_TEMP_OFFSET_CELSIUS - raw_report.temp; // apply user specified rotation rotate_3f(_rotation, report.x, report.y, report.z); |