mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
spelling: correct many misspellings of celsius
Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
@ -33,7 +33,7 @@
|
||||
using namespace upm;
|
||||
using namespace std;
|
||||
|
||||
// conversion from fahrenheit to celcius and back
|
||||
// conversion from fahrenheit to celsius and back
|
||||
|
||||
static float f2c(float f)
|
||||
{
|
||||
@ -245,20 +245,20 @@ void BNO055::setTemperatureSource(TEMP_SOURCES_T src)
|
||||
writeReg(REG_TEMP_SOURCE, src);
|
||||
}
|
||||
|
||||
void BNO055::setTemperatureUnits(bool celcius)
|
||||
void BNO055::setTemperatureUnits(bool celsius)
|
||||
{
|
||||
setPage(0);
|
||||
|
||||
uint8_t reg = readReg(REG_UNIT_SEL);
|
||||
|
||||
if (celcius)
|
||||
if (celsius)
|
||||
reg &= ~UNIT_SEL_TEMP_UNIT;
|
||||
else
|
||||
reg |= UNIT_SEL_TEMP_UNIT;
|
||||
|
||||
writeReg(REG_UNIT_SEL, reg);
|
||||
|
||||
m_tempIsC = celcius;
|
||||
m_tempIsC = celsius;
|
||||
}
|
||||
|
||||
void BNO055::setAccelerometerUnits(bool mg)
|
||||
|
@ -896,7 +896,7 @@ namespace upm {
|
||||
*
|
||||
* By default, the constructor sets the acceleration units to
|
||||
* m/s^2, gyro and Euler units to degrees, and temperature to
|
||||
* celcius. It then enters the NDOF fusion mode.
|
||||
* celsius. It then enters the NDOF fusion mode.
|
||||
*
|
||||
* In addition, the internal clock is used so that compatibility
|
||||
* with other implementations is assured. If you are using a
|
||||
@ -980,11 +980,11 @@ namespace upm {
|
||||
|
||||
/**
|
||||
* Select the temperature units. This can be the Fahrenheit or
|
||||
* Celcius.
|
||||
* Celsius.
|
||||
*
|
||||
* @param celcius true for Celius, false for Fahrenheit.
|
||||
* @param celsius true for Celius, false for Fahrenheit.
|
||||
*/
|
||||
void setTemperatureUnits(bool celcius);
|
||||
void setTemperatureUnits(bool celsius);
|
||||
|
||||
/**
|
||||
* Set the operating mode for the device. This places the device
|
||||
@ -1060,8 +1060,8 @@ namespace upm {
|
||||
* calling this method.
|
||||
*
|
||||
* @param fahrenheit true to return data in Fahrenheit, false for
|
||||
* Celicus. Celcius is the default.
|
||||
* @return The temperature in degrees Celcius or Fahrenheit.
|
||||
* Celicus. Celsius is the default.
|
||||
* @return The temperature in degrees Celsius or Fahrenheit.
|
||||
*/
|
||||
float getTemperature(bool fahrenheit=false);
|
||||
|
||||
|
Reference in New Issue
Block a user