32 lines
645 B
C#
32 lines
645 B
C#
namespace RobotApp.Interfaces;
|
|
|
|
public enum BatteryStatus
|
|
{
|
|
Unknown,
|
|
Charging,
|
|
Discharging,
|
|
Full,
|
|
NotCharging,
|
|
Fault,
|
|
Standby
|
|
}
|
|
|
|
public interface IBattery
|
|
{
|
|
bool IsReady { get; }
|
|
double Voltage { get; }
|
|
double Current { get; }
|
|
double SOC { get; }
|
|
double SOH { get; }
|
|
BatteryStatus Status { get; }
|
|
int ChargeTime { get; }
|
|
int DischargeTime { get; }
|
|
double Temperature { get; }
|
|
double RemainingCapacity { get; }
|
|
double RemainingEnergy { get; }
|
|
int DischargeCycles { get; }
|
|
int ChargeCycles { get; }
|
|
bool IsCharging { get; }
|
|
string[] ErrorStatus { get; }
|
|
}
|