RobotNet/RobotNet.RobotShares/VDA5050/State/BatteryState.cs
2025-10-15 15:15:53 +07:00

16 lines
461 B
C#

using System.ComponentModel.DataAnnotations;
namespace RobotNet.RobotShares.VDA5050.State;
public class BatteryState
{
[Required]
public double BatteryCharge { get; set; }
public double BatteryVoltage { get; set; }
[Range(0, 100, ErrorMessage = "Value for BatteryHealth must be between 0 and 100.")]
public double BatteryHealth { get; set; }
[Required]
public bool Charging { get; set; }
public double Reach { get; set; }
}