mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
SITL: Change the Kelvin value to a defined name
This commit is contained in:
parent
03b2473c61
commit
fd91cb03b4
@ -17,7 +17,7 @@ SITL::SIM_BattMonitor_SMBus::SIM_BattMonitor_SMBus() :
|
||||
add_block("Device Name", SMBusBattDevReg::DEVICE_NAME, O_RDONLY);
|
||||
add_register("Manufacture Data", SMBusBattDevReg::MANUFACTURE_DATA, O_RDONLY);
|
||||
|
||||
set_register(SMBusBattDevReg::TEMP, (int16_t)((15 + 273.15)*10));
|
||||
set_register(SMBusBattDevReg::TEMP, (int16_t)((15 + C_TO_KELVIN)*10));
|
||||
// see update for voltage
|
||||
// see update for current
|
||||
// TODO: remaining capacity
|
||||
|
Loading…
Reference in New Issue
Block a user