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

Namespace: Monnit.Mine
Assembly: MonnitMineAPI (in MonnitMineAPI.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static double BatteryPercentageHelper(
	double zero,
	double ten,
	double twentyFive,
	double fifty,
	double seventyFive,
	double oneHundred,
	double reportedVoltage
)
Visual Basic
Public Shared Function BatteryPercentageHelper ( 
	zero As Double,
	ten As Double,
	twentyFive As Double,
	fifty As Double,
	seventyFive As Double,
	oneHundred As Double,
	reportedVoltage As Double
) As Double
Visual C++
public:
static double BatteryPercentageHelper(
	double zero, 
	double ten, 
	double twentyFive, 
	double fifty, 
	double seventyFive, 
	double oneHundred, 
	double reportedVoltage
)
F#
static member BatteryPercentageHelper : 
        zero : float * 
        ten : float * 
        twentyFive : float * 
        fifty : float * 
        seventyFive : float * 
        oneHundred : float * 
        reportedVoltage : float -> float 

Parameters

zero
Type: System..::..Double

[Missing <param name="zero"/> documentation for "M:Monnit.Mine.Gateway.BatteryPercentageHelper(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)"]

ten
Type: System..::..Double

[Missing <param name="ten"/> documentation for "M:Monnit.Mine.Gateway.BatteryPercentageHelper(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)"]

twentyFive
Type: System..::..Double

[Missing <param name="twentyFive"/> documentation for "M:Monnit.Mine.Gateway.BatteryPercentageHelper(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)"]

fifty
Type: System..::..Double

[Missing <param name="fifty"/> documentation for "M:Monnit.Mine.Gateway.BatteryPercentageHelper(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)"]

seventyFive
Type: System..::..Double

[Missing <param name="seventyFive"/> documentation for "M:Monnit.Mine.Gateway.BatteryPercentageHelper(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)"]

oneHundred
Type: System..::..Double

[Missing <param name="oneHundred"/> documentation for "M:Monnit.Mine.Gateway.BatteryPercentageHelper(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)"]

reportedVoltage
Type: System..::..Double

[Missing <param name="reportedVoltage"/> documentation for "M:Monnit.Mine.Gateway.BatteryPercentageHelper(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)"]

Return Value

Type: Double

[Missing <returns> documentation for "M:Monnit.Mine.Gateway.BatteryPercentageHelper(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)"]

See Also