diff --git a/radio/src/telemetry/frsky_sport.cpp b/radio/src/telemetry/frsky_sport.cpp index 08380b73d..a9d51ec75 100644 --- a/radio/src/telemetry/frsky_sport.cpp +++ b/radio/src/telemetry/frsky_sport.cpp @@ -90,6 +90,14 @@ const FrSkySportSensor sportSensors[] = { { POWERBOX_BATT2_FIRST_ID, POWERBOX_BATT2_LAST_ID, 1, ZSTR_PBOX2, UNIT_AMPS, 2 }, { POWERBOX_CNSP_FIRST_ID, POWERBOX_CNSP_LAST_ID, 0, ZSTR_PBOX1, UNIT_MAH, 0 }, { POWERBOX_CNSP_FIRST_ID, POWERBOX_CNSP_LAST_ID, 1, ZSTR_PBOX2, UNIT_MAH, 0 }, + { POWERBOX_STATE_FIRST_ID, POWERBOX_STATE_LAST_ID, 0, ZSTR_RX1_FAILSAFE, UNIT_RAW, 0 }, + { POWERBOX_STATE_FIRST_ID, POWERBOX_STATE_LAST_ID, 1, ZSTR_RX1_LOSTFRAME, UNIT_RAW, 0 }, + { POWERBOX_STATE_FIRST_ID, POWERBOX_STATE_LAST_ID, 2, ZSTR_RX2_FAILSAFE, UNIT_RAW, 0 }, + { POWERBOX_STATE_FIRST_ID, POWERBOX_STATE_LAST_ID, 3, ZSTR_RX2_LOSTFRAME, UNIT_RAW, 0 }, + { POWERBOX_STATE_FIRST_ID, POWERBOX_STATE_LAST_ID, 4, ZSTR_RX1_CONN_LOST, UNIT_RAW, 0 }, + { POWERBOX_STATE_FIRST_ID, POWERBOX_STATE_LAST_ID, 5, ZSTR_RX2_CONN_LOST, UNIT_RAW, 0 }, + { POWERBOX_STATE_FIRST_ID, POWERBOX_STATE_LAST_ID, 6, ZSTR_RX1_NO_SIGNAL, UNIT_RAW, 0 }, + { POWERBOX_STATE_FIRST_ID, POWERBOX_STATE_LAST_ID, 7, ZSTR_RX2_NO_SIGNAL, UNIT_RAW, 0 }, { 0, 0, 0, NULL, UNIT_RAW, 0 } // sentinel }; @@ -268,8 +276,14 @@ void processSportPacket(uint8_t * packet) processSportPacket(id, 1, instance, data >> 16); } else if (id >= POWERBOX_STATE_FIRST_ID && id <= POWERBOX_STATE_LAST_ID) { - // TODO - processSportPacket(id, 0, instance, data); + processSportPacket(id, 0, instance, bool(data & 0x0080000)); + processSportPacket(id, 1, instance, bool(data & 0x0100000)); + processSportPacket(id, 2, instance, bool(data & 0x0200000)); + processSportPacket(id, 3, instance, bool(data & 0x0400000)); + processSportPacket(id, 4, instance, bool(data & 0x0800000)); + processSportPacket(id, 5, instance, bool(data & 0x1000000)); + processSportPacket(id, 6, instance, bool(data & 0x2000000)); + processSportPacket(id, 7, instance, bool(data & 0x4000000)); } else { processSportPacket(id, 0, instance, data); diff --git a/radio/src/translations/cz.h.txt b/radio/src/translations/cz.h.txt index d8229b1f9..1ddf5721f 100644 --- a/radio/src/translations/cz.h.txt +++ b/radio/src/translations/cz.h.txt @@ -1135,3 +1135,13 @@ #define ZSTR_GPSALT "GAlt" #define ZSTR_GPSDATETIME "Date" #define ZSTR_GPS "GPS" +#define ZSTR_PBOX1 "PBx1" +#define ZSTR_PBOX2 "PBx2" +#define ZSTR_RX1_FAILSAFE "Rx1F" +#define ZSTR_RX1_LOSTFRAME "Rx1L" +#define ZSTR_RX1_CONN_LOST "Rx1C" +#define ZSTR_RX1_NO_SIGNAL "Rx1S" +#define ZSTR_RX2_FAILSAFE "Rx2F" +#define ZSTR_RX2_LOSTFRAME "Rx2L" +#define ZSTR_RX2_CONN_LOST "Rx2C" +#define ZSTR_RX2_NO_SIGNAL "Rx2S" diff --git a/radio/src/translations/de.h.txt b/radio/src/translations/de.h.txt index c120c8e87..c0fea63c0 100644 --- a/radio/src/translations/de.h.txt +++ b/radio/src/translations/de.h.txt @@ -1138,3 +1138,13 @@ #define ZSTR_GPSALT "GAlt" #define ZSTR_GPSDATETIME "Date" #define ZSTR_GPS "GPS" +#define ZSTR_PBOX1 "PBx1" +#define ZSTR_PBOX2 "PBx2" +#define ZSTR_RX1_FAILSAFE "Rx1F" +#define ZSTR_RX1_LOSTFRAME "Rx1L" +#define ZSTR_RX1_CONN_LOST "Rx1C" +#define ZSTR_RX1_NO_SIGNAL "Rx1S" +#define ZSTR_RX2_FAILSAFE "Rx2F" +#define ZSTR_RX2_LOSTFRAME "Rx2L" +#define ZSTR_RX2_CONN_LOST "Rx2C" +#define ZSTR_RX2_NO_SIGNAL "Rx2S" diff --git a/radio/src/translations/en.h.txt b/radio/src/translations/en.h.txt index f74a00ca1..6e278b77c 100644 --- a/radio/src/translations/en.h.txt +++ b/radio/src/translations/en.h.txt @@ -1167,3 +1167,11 @@ #define ZSTR_GPS "GPS" #define ZSTR_PBOX1 "PBx1" #define ZSTR_PBOX2 "PBx2" +#define ZSTR_RX1_FAILSAFE "Rx1F" +#define ZSTR_RX1_LOSTFRAME "Rx1L" +#define ZSTR_RX1_CONN_LOST "Rx1C" +#define ZSTR_RX1_NO_SIGNAL "Rx1S" +#define ZSTR_RX2_FAILSAFE "Rx2F" +#define ZSTR_RX2_LOSTFRAME "Rx2L" +#define ZSTR_RX2_CONN_LOST "Rx2C" +#define ZSTR_RX2_NO_SIGNAL "Rx2S" diff --git a/radio/src/translations/es.h.txt b/radio/src/translations/es.h.txt index 7d76c27fb..4ca4fd74f 100644 --- a/radio/src/translations/es.h.txt +++ b/radio/src/translations/es.h.txt @@ -1088,3 +1088,13 @@ #define ZSTR_GPSALT "GAlt" #define ZSTR_GPSDATETIME "Date" #define ZSTR_GPS "GPS" +#define ZSTR_PBOX1 "PBx1" +#define ZSTR_PBOX2 "PBx2" +#define ZSTR_RX1_FAILSAFE "Rx1F" +#define ZSTR_RX1_LOSTFRAME "Rx1L" +#define ZSTR_RX1_CONN_LOST "Rx1C" +#define ZSTR_RX1_NO_SIGNAL "Rx1S" +#define ZSTR_RX2_FAILSAFE "Rx2F" +#define ZSTR_RX2_LOSTFRAME "Rx2L" +#define ZSTR_RX2_CONN_LOST "Rx2C" +#define ZSTR_RX2_NO_SIGNAL "Rx2S" diff --git a/radio/src/translations/fi.h.txt b/radio/src/translations/fi.h.txt index 4959975fa..2a02f4897 100644 --- a/radio/src/translations/fi.h.txt +++ b/radio/src/translations/fi.h.txt @@ -1088,3 +1088,13 @@ #define ZSTR_GPSALT "GAlt" #define ZSTR_GPSDATETIME "Date" #define ZSTR_GPS "GPS" +#define ZSTR_PBOX1 "PBx1" +#define ZSTR_PBOX2 "PBx2" +#define ZSTR_RX1_FAILSAFE "Rx1F" +#define ZSTR_RX1_LOSTFRAME "Rx1L" +#define ZSTR_RX1_CONN_LOST "Rx1C" +#define ZSTR_RX1_NO_SIGNAL "Rx1S" +#define ZSTR_RX2_FAILSAFE "Rx2F" +#define ZSTR_RX2_LOSTFRAME "Rx2L" +#define ZSTR_RX2_CONN_LOST "Rx2C" +#define ZSTR_RX2_NO_SIGNAL "Rx2S" diff --git a/radio/src/translations/fr.h.txt b/radio/src/translations/fr.h.txt index c30ff817c..4800613b7 100644 --- a/radio/src/translations/fr.h.txt +++ b/radio/src/translations/fr.h.txt @@ -1125,3 +1125,13 @@ #define ZSTR_GPSALT "GAlt" #define ZSTR_GPSDATETIME "Date" #define ZSTR_GPS "GPS" +#define ZSTR_PBOX1 "PBx1" +#define ZSTR_PBOX2 "PBx2" +#define ZSTR_RX1_FAILSAFE "Rx1F" +#define ZSTR_RX1_LOSTFRAME "Rx1L" +#define ZSTR_RX1_CONN_LOST "Rx1C" +#define ZSTR_RX1_NO_SIGNAL "Rx1S" +#define ZSTR_RX2_FAILSAFE "Rx2F" +#define ZSTR_RX2_LOSTFRAME "Rx2L" +#define ZSTR_RX2_CONN_LOST "Rx2C" +#define ZSTR_RX2_NO_SIGNAL "Rx2S" diff --git a/radio/src/translations/it.h.txt b/radio/src/translations/it.h.txt index 3241c2ed0..96bcf6341 100644 --- a/radio/src/translations/it.h.txt +++ b/radio/src/translations/it.h.txt @@ -1137,3 +1137,13 @@ #define ZSTR_GPSALT "GAlt" #define ZSTR_GPSDATETIME "Data" #define ZSTR_GPS "GPS" +#define ZSTR_PBOX1 "PBx1" +#define ZSTR_PBOX2 "PBx2" +#define ZSTR_RX1_FAILSAFE "Rx1F" +#define ZSTR_RX1_LOSTFRAME "Rx1L" +#define ZSTR_RX1_CONN_LOST "Rx1C" +#define ZSTR_RX1_NO_SIGNAL "Rx1S" +#define ZSTR_RX2_FAILSAFE "Rx2F" +#define ZSTR_RX2_LOSTFRAME "Rx2L" +#define ZSTR_RX2_CONN_LOST "Rx2C" +#define ZSTR_RX2_NO_SIGNAL "Rx2S" diff --git a/radio/src/translations/nl.h.txt b/radio/src/translations/nl.h.txt index 66b4c8f3c..64ed993c5 100644 --- a/radio/src/translations/nl.h.txt +++ b/radio/src/translations/nl.h.txt @@ -1157,3 +1157,13 @@ #define ZSTR_GPSALT "GAlt" #define ZSTR_GPSDATETIME "Date" #define ZSTR_GPS "GPS" +#define ZSTR_PBOX1 "PBx1" +#define ZSTR_PBOX2 "PBx2" +#define ZSTR_RX1_FAILSAFE "Rx1F" +#define ZSTR_RX1_LOSTFRAME "Rx1L" +#define ZSTR_RX1_CONN_LOST "Rx1C" +#define ZSTR_RX1_NO_SIGNAL "Rx1S" +#define ZSTR_RX2_FAILSAFE "Rx2F" +#define ZSTR_RX2_LOSTFRAME "Rx2L" +#define ZSTR_RX2_CONN_LOST "Rx2C" +#define ZSTR_RX2_NO_SIGNAL "Rx2S" diff --git a/radio/src/translations/pl.h.txt b/radio/src/translations/pl.h.txt index bb3af7e69..b5f5aca62 100644 --- a/radio/src/translations/pl.h.txt +++ b/radio/src/translations/pl.h.txt @@ -1138,3 +1138,13 @@ #define ZSTR_GPSALT "GAlt" #define ZSTR_GPSDATETIME "Date" #define ZSTR_GPS "GPS" +#define ZSTR_PBOX1 "PBx1" +#define ZSTR_PBOX2 "PBx2" +#define ZSTR_RX1_FAILSAFE "Rx1F" +#define ZSTR_RX1_LOSTFRAME "Rx1L" +#define ZSTR_RX1_CONN_LOST "Rx1C" +#define ZSTR_RX1_NO_SIGNAL "Rx1S" +#define ZSTR_RX2_FAILSAFE "Rx2F" +#define ZSTR_RX2_LOSTFRAME "Rx2L" +#define ZSTR_RX2_CONN_LOST "Rx2C" +#define ZSTR_RX2_NO_SIGNAL "Rx2S" diff --git a/radio/src/translations/pt.h.txt b/radio/src/translations/pt.h.txt index 398717b20..72ea56539 100644 --- a/radio/src/translations/pt.h.txt +++ b/radio/src/translations/pt.h.txt @@ -1088,3 +1088,13 @@ #define ZSTR_GPSALT "GAlt" #define ZSTR_GPSDATETIME "Date" #define ZSTR_GPS "GPS" +#define ZSTR_PBOX1 "PBx1" +#define ZSTR_PBOX2 "PBx2" +#define ZSTR_RX1_FAILSAFE "Rx1F" +#define ZSTR_RX1_LOSTFRAME "Rx1L" +#define ZSTR_RX1_CONN_LOST "Rx1C" +#define ZSTR_RX1_NO_SIGNAL "Rx1S" +#define ZSTR_RX2_FAILSAFE "Rx2F" +#define ZSTR_RX2_LOSTFRAME "Rx2L" +#define ZSTR_RX2_CONN_LOST "Rx2C" +#define ZSTR_RX2_NO_SIGNAL "Rx2S" diff --git a/radio/src/translations/se.h.txt b/radio/src/translations/se.h.txt index 81802dcf1..6398d5d3a 100644 --- a/radio/src/translations/se.h.txt +++ b/radio/src/translations/se.h.txt @@ -1165,3 +1165,13 @@ #define ZSTR_GPSALT "GAlt" #define ZSTR_GPSDATETIME "Date" #define ZSTR_GPS "GPS" +#define ZSTR_PBOX1 "PBx1" +#define ZSTR_PBOX2 "PBx2" +#define ZSTR_RX1_FAILSAFE "Rx1F" +#define ZSTR_RX1_LOSTFRAME "Rx1L" +#define ZSTR_RX1_CONN_LOST "Rx1C" +#define ZSTR_RX1_NO_SIGNAL "Rx1S" +#define ZSTR_RX2_FAILSAFE "Rx2F" +#define ZSTR_RX2_LOSTFRAME "Rx2L" +#define ZSTR_RX2_CONN_LOST "Rx2C" +#define ZSTR_RX2_NO_SIGNAL "Rx2S"