BasicBattery *battery = BatteryAccess()getIfExists();
if(battery)
{
double residual = battery->GetEnergy();
}
However, BasicBattery has been removed because it is an obsolete class. How could I do this calc using the new classes?
Thank you in advance for your help.