BatteryFact.json 1.49 KB
Newer Older
1
[
Don Gagne's avatar
Don Gagne committed
2
{
3 4 5 6 7 8 9 10 11
    "name":             "voltage",
    "shortDescription": "Voltage",
    "type":             "double",
    "decimalPlaces":    2,
    "units":            "v"
},
{
    "name":             "percentRemaining",
    "shortDescription": "Percent",
12
    "type":             "double",
13 14 15 16 17 18
    "decimalPlaces":    0,
    "units":            "%"
},
{
    "name":             "mahConsumed",
    "shortDescription": "Consumed",
19 20 21
    "type":             "double",
    "decimalPlaces":    0,
    "units":            "mAh"
22 23 24 25
},
{
    "name":             "current",
    "shortDescription": "Current",
26
    "type":             "double",
27
    "decimalPlaces":    2,
28
    "units":            "A"
29 30 31 32
},
{
    "name":             "temperature",
    "shortDescription": "Temperature",
33 34
    "type":             "double",
    "decimalPlaces":    0,
35 36
    "units":            "C"
},
37 38 39
{
    "name":             "instantPower",
    "shortDescription": "Watts",
40
    "type":             "double",
41 42
    "decimalPlaces":    2,
    "units":            "W"
43 44 45 46
},
{
    "name":             "timeRemaining",
    "shortDescription": "Time Remaining",
47 48
    "type":             "double",
    "decimalPlaces":    0,
49 50 51 52 53 54
    "units":            "s"
},
{
    "name":             "chargeState",
    "shortDescription": "Charge State",
    "type":             "uint8",
55
    "enumStrings":      "n/a,Normal Operation,Low Battery State,Critical Battery State,Emergency Battery State,Battery Failed,Battery Unhealthy",
56 57
    "enumValues":       "0,1,2,3,4,5,6",
    "decimalPlaces":    0
Don Gagne's avatar
Don Gagne committed
58
}
59
]