Browse Source

SITL: Change the Kelvin value to a defined name

c415-sdk
murata 4 years ago committed by Andrew Tridgell
parent
commit
fd91cb03b4
  1. 2
      libraries/SITL/SIM_BattMonitor_SMBus.cpp

2
libraries/SITL/SIM_BattMonitor_SMBus.cpp

@ -17,7 +17,7 @@ SITL::SIM_BattMonitor_SMBus::SIM_BattMonitor_SMBus() : @@ -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…
Cancel
Save