SBEC telem support
This commit is contained in:
@@ -181,6 +181,8 @@ enum FrSkyDataState {
|
||||
#define GASSUIT_MAX_FLOW_LAST_ID 0x0d6f
|
||||
#define GASSUIT_AVG_FLOW_FIRST_ID 0x0d70
|
||||
#define GASSUIT_AVG_FLOW_LAST_ID 0x0d7f
|
||||
#define SBEC_POWER_FIRST_ID 0x0e50
|
||||
#define SBEC_POWER_LAST_ID 0x0e5f
|
||||
#define DIY_FIRST_ID 0x5100
|
||||
#define DIY_LAST_ID 0x52ff
|
||||
#define DIY_STREAM_FIRST_ID 0x5000
|
||||
|
||||
@@ -77,6 +77,8 @@ const FrSkySportSensor sportSensors[] = {
|
||||
{ GASSUIT_FLOW_FIRST_ID, GASSUIT_FLOW_LAST_ID, 0, ZSTR_GASSUIT_FLOW, UNIT_MILLILITERS, 0 }, //TODO this needs to be changed to ml/min, but need eeprom conversion
|
||||
{ GASSUIT_MAX_FLOW_FIRST_ID, GASSUIT_MAX_FLOW_LAST_ID, 0, ZSTR_GASSUIT_MAX_FLOW, UNIT_MILLILITERS, 0 }, //TODO this needs to be changed to ml/min, but need eeprom conversion
|
||||
{ GASSUIT_AVG_FLOW_FIRST_ID, GASSUIT_AVG_FLOW_LAST_ID, 0, ZSTR_GASSUIT_AVG_FLOW, UNIT_MILLILITERS, 0 }, //TODO this needs to be changed to ml/min, but need eeprom conversion
|
||||
{ SBEC_POWER_FIRST_ID, SBEC_POWER_LAST_ID, 0, ZSTR_SBEC_VOLTAGE, UNIT_VOLTS, 2 },
|
||||
{ SBEC_POWER_FIRST_ID, SBEC_POWER_LAST_ID, 1, ZSTR_SBEC_CURRENT, UNIT_AMPS, 2 },
|
||||
{ 0, 0, 0, NULL, UNIT_RAW, 0 } // sentinel
|
||||
};
|
||||
|
||||
@@ -235,6 +237,10 @@ void sportProcessTelemetryPacket(const uint8_t * packet)
|
||||
else if (id >= ESC_TEMPERATURE_FIRST_ID && id <= ESC_TEMPERATURE_LAST_ID) {
|
||||
sportProcessTelemetryPacket(id, 0, instance, data & 0x00ff);
|
||||
}
|
||||
else if (id >= SBEC_POWER_FIRST_ID && id <= SBEC_POWER_LAST_ID) {
|
||||
sportProcessTelemetryPacket(id, 0, instance, data & 0xffff);
|
||||
sportProcessTelemetryPacket(id, 1, instance, data >> 16);
|
||||
}
|
||||
else if (id >= DIY_STREAM_FIRST_ID && id <= DIY_STREAM_LAST_ID) {
|
||||
#if defined(LUA)
|
||||
if (luaInputTelemetryFifo && luaInputTelemetryFifo->hasSpace(sizeof(SportTelemetryPacket))) {
|
||||
|
||||
@@ -1274,3 +1274,5 @@
|
||||
#define ZSTR_GASSUIT_RES_PERC "GRPc"
|
||||
#define ZSTR_GASSUIT_MAX_FLOW "GMFl"
|
||||
#define ZSTR_GASSUIT_AVG_FLOW "GAFl"
|
||||
#define ZSTR_SBEC_VOLTAGE "BecV"
|
||||
#define ZSTR_SBEC_CURRENT "BecA"
|
||||
|
||||
@@ -1272,3 +1272,5 @@
|
||||
#define ZSTR_GASSUIT_RES_PERC "GRPc"
|
||||
#define ZSTR_GASSUIT_MAX_FLOW "GMFl"
|
||||
#define ZSTR_GASSUIT_AVG_FLOW "GAFl"
|
||||
#define ZSTR_SBEC_VOLTAGE "BecV"
|
||||
#define ZSTR_SBEC_CURRENT "BecA"
|
||||
|
||||
@@ -1283,3 +1283,5 @@
|
||||
#define ZSTR_GASSUIT_RES_PERC "GRPc"
|
||||
#define ZSTR_GASSUIT_MAX_FLOW "GMFl"
|
||||
#define ZSTR_GASSUIT_AVG_FLOW "GAFl"
|
||||
#define ZSTR_SBEC_VOLTAGE "BecV"
|
||||
#define ZSTR_SBEC_CURRENT "BecA"
|
||||
|
||||
@@ -1278,3 +1278,5 @@
|
||||
#define ZSTR_GASSUIT_RES_PERC "GRPc"
|
||||
#define ZSTR_GASSUIT_MAX_FLOW "GMFl"
|
||||
#define ZSTR_GASSUIT_AVG_FLOW "GAFl"
|
||||
#define ZSTR_SBEC_VOLTAGE "BecV"
|
||||
#define ZSTR_SBEC_CURRENT "BecA"
|
||||
|
||||
@@ -1263,4 +1263,5 @@
|
||||
#define ZSTR_GASSUIT_RES_VOL "GRVl"
|
||||
#define ZSTR_GASSUIT_RES_PERC "GRPc"
|
||||
#define ZSTR_GASSUIT_MAX_FLOW "GMFl"
|
||||
#define ZSTR_GASSUIT_AVG_FLOW "GAFl"
|
||||
#define ZSTR_SBEC_VOLTAGE "BecV"
|
||||
#define ZSTR_SBEC_CURRENT "BecA"
|
||||
|
||||
@@ -1290,3 +1290,5 @@
|
||||
#define ZSTR_GASSUIT_RES_PERC "GRPc"
|
||||
#define ZSTR_GASSUIT_MAX_FLOW "GMFl"
|
||||
#define ZSTR_GASSUIT_AVG_FLOW "GAFl"
|
||||
#define ZSTR_SBEC_VOLTAGE "BecV"
|
||||
#define ZSTR_SBEC_CURRENT "BecA"
|
||||
|
||||
@@ -1273,3 +1273,5 @@
|
||||
#define ZSTR_GASSUIT_RES_PERC "GRPc"
|
||||
#define ZSTR_GASSUIT_MAX_FLOW "GMFl"
|
||||
#define ZSTR_GASSUIT_AVG_FLOW "GAFl"
|
||||
#define ZSTR_SBEC_VOLTAGE "BecV"
|
||||
#define ZSTR_SBEC_CURRENT "BecA"
|
||||
|
||||
@@ -1280,3 +1280,5 @@
|
||||
#define ZSTR_GASSUIT_RES_PERC "GRPc"
|
||||
#define ZSTR_GASSUIT_MAX_FLOW "GMFl"
|
||||
#define ZSTR_GASSUIT_AVG_FLOW "GAFl"
|
||||
#define ZSTR_SBEC_VOLTAGE "BecV"
|
||||
#define ZSTR_SBEC_CURRENT "BecA"
|
||||
|
||||
@@ -1274,3 +1274,5 @@
|
||||
#define ZSTR_GASSUIT_RES_PERC "GRPc"
|
||||
#define ZSTR_GASSUIT_MAX_FLOW "GMFl"
|
||||
#define ZSTR_GASSUIT_AVG_FLOW "GAFl"
|
||||
#define ZSTR_SBEC_VOLTAGE "BecV"
|
||||
#define ZSTR_SBEC_CURRENT "BecA"
|
||||
@@ -1277,3 +1277,5 @@
|
||||
#define ZSTR_GASSUIT_RES_PERC "GRPc"
|
||||
#define ZSTR_GASSUIT_MAX_FLOW "GMFl"
|
||||
#define ZSTR_GASSUIT_AVG_FLOW "GAFl"
|
||||
#define ZSTR_SBEC_VOLTAGE "BecV"
|
||||
#define ZSTR_SBEC_CURRENT "BecA"
|
||||
|
||||
@@ -1285,3 +1285,5 @@
|
||||
#define ZSTR_GASSUIT_RES_PERC "GRPc"
|
||||
#define ZSTR_GASSUIT_MAX_FLOW "GMFl"
|
||||
#define ZSTR_GASSUIT_AVG_FLOW "GAFl"
|
||||
#define ZSTR_SBEC_VOLTAGE "BecV"
|
||||
#define ZSTR_SBEC_CURRENT "BecA"
|
||||
|
||||
Reference in New Issue
Block a user