BatteryFact.json 2.22 KB
Newer Older
1 2 3 4
{
    "version":      1,
    "fileType":     "FactMetaData",
    "QGC.MetaData.Facts":
5
[
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
{
    "name":             "id",
    "shortDesc":        "Battery Id",
    "type":             "uint8"
},
{
    "name":             "batteryFunction",
    "shortDesc":        "Battery Function",
    "type":             "uint8",
    "enumStrings":      "n/a,All Flight Systems,Propulsion,Avionics,Payload",
    "enumValues":       "0,1,2,3,4",
    "decimalPlaces":    0
},
{
    "name":             "batteryType",
    "shortDesc":        "Battery Type",
    "type":             "uint8",
    "enumStrings":      "n/a,LIPO,LIFE,LION,NIMH",
    "enumValues":       "0,1,2,3,4",
    "decimalPlaces":    0
},
Don Gagne's avatar
Don Gagne committed
27
{
28
    "name":             "voltage",
29
    "shortDesc":        "Voltage",
30 31 32 33 34 35
    "type":             "double",
    "decimalPlaces":    2,
    "units":            "v"
},
{
    "name":             "percentRemaining",
36 37
    "shortDesc":        "Percent",
    "type":             "double",
38 39 40 41 42
    "decimalPlaces":    0,
    "units":            "%"
},
{
    "name":             "mahConsumed",
43 44 45 46
    "shortDesc":        "Consumed",
    "type":             "double",
    "decimalPlaces":    0,
    "units":            "mAh"
47 48 49
},
{
    "name":             "current",
50 51
    "shortDesc":        "Current",
    "type":             "double",
52
    "decimalPlaces":    2,
53
    "units":            "A"
54 55 56
},
{
    "name":             "temperature",
57
    "shortDesc":        "Temperature",
58 59
    "type":             "double",
    "decimalPlaces":    0,
60 61
    "units":            "C"
},
62 63
{
    "name":             "instantPower",
64 65
    "shortDesc":        "Watts",
    "type":             "double",
66 67
    "decimalPlaces":    2,
    "units":            "W"
68 69 70
},
{
    "name":             "timeRemaining",
71 72 73
    "shortDesc":        "Time Remaining",
    "type":             "double",
    "decimalPlaces":    0,
74 75
    "units":            "s"
},
76 77 78 79 80
{
    "name":             "timeRemainingStr",
    "shortDesc":        "Time Remaining",
    "type":             "string"
},
81 82
{
    "name":             "chargeState",
83
    "shortDesc":        "Charge State",
84
    "type":             "uint8",
85 86
    "enumStrings":      "n/a,Ok,Low,Critical,Emergency,Failed,Unhealthy,Charging",
    "enumValues":       "0,1,2,3,4,5,6,7",
87
    "decimalPlaces":    0
Don Gagne's avatar
Don Gagne committed
88
}
89
]
90
}