Returns an estimated percent of remaining battery based on pre-configured battery profiles
Namespace: Monnit.MineAssembly: MonnitMineAPI (in MonnitMineAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public static double BatteryPercentageHelper( eSensorBattery batteryType, double reportedVoltage ) |
| Visual Basic |
|---|
Public Shared Function BatteryPercentageHelper ( batteryType As eSensorBattery, reportedVoltage As Double ) As Double |
| Visual C++ |
|---|
public: static double BatteryPercentageHelper( eSensorBattery batteryType, double reportedVoltage ) |
| F# |
|---|
static member BatteryPercentageHelper : batteryType : eSensorBattery * reportedVoltage : float -> float |
Parameters
- batteryType
- Type: Monnit.Mine..::..eSensorBattery
[Missing <param name="batteryType"/> documentation for "M:Monnit.Mine.Sensor.BatteryPercentageHelper(Monnit.Mine.eSensorBattery,System.Double)"]
- reportedVoltage
- Type: System..::..Double
[Missing <param name="reportedVoltage"/> documentation for "M:Monnit.Mine.Sensor.BatteryPercentageHelper(Monnit.Mine.eSensorBattery,System.Double)"]
Return Value
Type: Double[Missing <returns> documentation for "M:Monnit.Mine.Sensor.BatteryPercentageHelper(Monnit.Mine.eSensorBattery,System.Double)"]