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