From 7753a5415b0f27a1a7346d0c6c83fa0aae416107 Mon Sep 17 00:00:00 2001 From: DoinLakeFlyer Date: Fri, 7 Feb 2020 09:28:46 -0800 Subject: [PATCH] Change all internal values to double to NaN can be used from unavailable values --- src/Vehicle/BatteryFact.json | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/Vehicle/BatteryFact.json b/src/Vehicle/BatteryFact.json index d2a8d4777..97b798c3c 100644 --- a/src/Vehicle/BatteryFact.json +++ b/src/Vehicle/BatteryFact.json @@ -9,21 +9,21 @@ { "name": "percentRemaining", "shortDescription": "Percent", - "type": "int32", + "type": "double", "decimalPlaces": 0, "units": "%" }, { "name": "mahConsumed", "shortDescription": "Consumed", - "type": "int32", - "decimalPlaces": 0, - "units": "mAh" + "type": "double", + "decimalPlaces": 0, + "units": "mAh" }, { "name": "current", "shortDescription": "Current", - "type": "float", + "type": "double", "decimalPlaces": 2, "units": "A" }, @@ -37,27 +37,29 @@ { "name": "cellCount", "shortDescription": "Cell Count", - "type": "int32", + "type": "double", + "decimalPlaces": 0, "decimalPlaces": 0 }, { "name": "instantPower", "shortDescription": "Watts", - "type": "float", + "type": "double", "decimalPlaces": 2, "units": "W" }, { "name": "timeRemaining", "shortDescription": "Time Remaining", - "type": "int32", + "type": "double", + "decimalPlaces": 0, "units": "s" }, { "name": "chargeState", "shortDescription": "Charge State", "type": "uint8", - "enumStrings": "Low Battery State Not Provided,Normal Operation,Low Battery State,Critical Battery State,Emergency Battery State,Battery Failed,Battery Unhealthy", + "enumStrings": "N/A,Normal Operation,Low Battery State,Critical Battery State,Emergency Battery State,Battery Failed,Battery Unhealthy", "enumValues": "0,1,2,3,4,5,6", "decimalPlaces": 0 } -- 2.22.0