Convert units to base units
This commit is contained in:
parent
fbef2e2c88
commit
76e5ac8816
2 changed files with 16 additions and 16 deletions
|
@ -354,15 +354,15 @@ namespace create {
|
|||
bool isSpotButtonPressed() const;
|
||||
|
||||
/* Get battery voltage.
|
||||
* \return value in millivolts
|
||||
* \return value in volts
|
||||
*/
|
||||
uint16_t getVoltage() const;
|
||||
float getVoltage() const;
|
||||
|
||||
/* Get current flowing in/out of battery.
|
||||
* A positive current implies Create is charging.
|
||||
* \return value in milliamps
|
||||
* \return value in amps
|
||||
*/
|
||||
int16_t getCurrent() const;
|
||||
float getCurrent() const;
|
||||
|
||||
/* Get the temperature of battery.
|
||||
* \return value in Celsius
|
||||
|
@ -370,14 +370,14 @@ namespace create {
|
|||
int8_t getTemperature() const;
|
||||
|
||||
/* Get battery's remaining charge.
|
||||
* \return value in milliamp-hours
|
||||
* \return value in amp-hours
|
||||
*/
|
||||
uint16_t getBatteryCharge() const;
|
||||
float getBatteryCharge() const;
|
||||
|
||||
/* Get estimated battery charge capacity.
|
||||
* \return in milliamp-hours
|
||||
* \return in amp-hours
|
||||
*/
|
||||
uint16_t getBatteryCapacity() const;
|
||||
float getBatteryCapacity() const;
|
||||
|
||||
/* Return true if farthest left light sensor detects an obstacle, false otherwise.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue