diff --git a/devicehandlers/GyroL3GD20Handler.cpp b/devicehandlers/GyroL3GD20Handler.cpp index 297b0d1..4ab4724 100644 --- a/devicehandlers/GyroL3GD20Handler.cpp +++ b/devicehandlers/GyroL3GD20Handler.cpp @@ -207,9 +207,9 @@ ReturnValue_t GyroHandlerL3GD20H::interpretDeviceReply(DeviceCommandId_t id, sif::info << "Z: " << angVelocZ << " \xC2\xB0" << std::endl; #else sif::printInfo("GyroHandlerL3GD20H: Angular velocities in degrees per second:\n"); - sif::printInfo("X: %f \xC2\xB0\n", angVelocX); - sif::printInfo("Y: %f \xC2\xB0\n", angVelocY); - sif::printInfo("Z: %f \xC2\xB0\n", angVelocZ); + sif::printInfo("X: %f\n", angVelocX); + sif::printInfo("Y: %f\n", angVelocY); + sif::printInfo("Z: %f\n", angVelocZ); #endif } #endif diff --git a/devicehandlers/devicedefinitions/GyroL3GD20Definitions.h b/devicehandlers/devicedefinitions/GyroL3GD20Definitions.h index 489a45d..56a2468 100644 --- a/devicehandlers/devicedefinitions/GyroL3GD20Definitions.h +++ b/devicehandlers/devicedefinitions/GyroL3GD20Definitions.h @@ -75,11 +75,11 @@ static constexpr uint8_t CTRL_REG_5_VAL = 0b00000000; /* Possible range values in degrees per second (DPS). */ static constexpr uint16_t RANGE_DPS_00 = 245; -static constexpr float SENSITIVITY_00 = 8.75; +static constexpr float SENSITIVITY_00 = 8.75 * 0.001; static constexpr uint16_t RANGE_DPS_01 = 500; -static constexpr float SENSITIVITY_01 = 17.5; +static constexpr float SENSITIVITY_01 = 17.5 * 0.001; static constexpr uint16_t RANGE_DPS_11 = 2000; -static constexpr float SENSITIVITY_11 = 70.0; +static constexpr float SENSITIVITY_11 = 70.0 * 0.001; static constexpr uint8_t READ_START = CTRL_REG_1; static constexpr size_t READ_LEN = 14;