Java Mine
ContentsIndexHome
PreviousUpNext
Sensor.BatteryPercentageHelper Method (double, double, double, double, double, double, double)
Syntax
Java
public static double BatteryPercentageHelper(double zero, double ten, double twentyFive, double fifty, double seventyFive, double oneHundred, double reportedVoltage);
Parameters 
Description 
double zero 
 
double ten 
 
double twentyFive 
 
double fifty 
 
double seventyFive 
 
double oneHundred 
 
double reportedVoltage 
 

double Returns an estimated percent of remaining battery based on linear interpolation between defined percentage points

@2015 all rights reserved
What do you think about this topic? Send feedback!