/// <summary> /// Checks the state of charge. /// </summary> /// <param name="soc">The soc.</param> /// <returns></returns> static bool CheckStateOfCharge(float soc) { BatteryMeasureFactors measures = new BatteryMeasureFactors("State of Charge", soc, 80, 20); return(BatteryMeasure.CrossedMaximum(measures) && BatteryMeasure.CrossedMinimum(measures)); }
/// <summary> /// Checks the charge rate. /// </summary> /// <param name="chargeRate">The charge rate.</param> /// <returns></returns> static bool CheckChargeRate(float chargeRate) { BatteryMeasureFactors measures = new BatteryMeasureFactors("Charge Rate", chargeRate, 0.8f, 0.0f); return(BatteryMeasure.CrossedMaximum(measures) && BatteryMeasure.CrossedMinimum(measures)); }
/// <summary> /// Checks the temperature. /// </summary> /// <param name="temperature">The temperature.</param> /// <returns></returns> static bool CheckTemperature(float temperature) { BatteryMeasureFactors measures = new BatteryMeasureFactors("Temperature", temperature, 45, 0); return(BatteryMeasure.CrossedMaximum(measures) && BatteryMeasure.CrossedMinimum(measures)); }