chore: more OTX to ETX housekeeping (#5396)
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "crossfire.h"
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
// clang-format off
|
||||
#define CS(id,subId,name,unit,precision) {id,subId,unit,precision,name}
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _CROSSFIRE_H_
|
||||
#define _CROSSFIRE_H_
|
||||
#pragma once
|
||||
|
||||
#include <inttypes.h>
|
||||
#include "dataconstants.h"
|
||||
@@ -183,5 +182,3 @@ const uint8_t CROSSFIRE_FRAME_PERIODS[] = {
|
||||
#endif
|
||||
|
||||
#define CROSSFIRE_TELEM_MIRROR_BAUDRATE 115200
|
||||
|
||||
#endif // _CROSSFIRE_H_
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
/*
|
||||
* TXID + RXID are already skipped in MULTI module to save memory+transmission time, format from Multi is:
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _FLYSKY_IBUS_H
|
||||
#define _FLYSKY_IBUS_H
|
||||
#pragma once
|
||||
|
||||
void processFlySkySensor(const uint8_t *packet, uint8_t type);
|
||||
|
||||
@@ -32,6 +31,3 @@ void flySkySetDefault(int index, uint16_t id, uint8_t subId, uint8_t instance);
|
||||
void processFlySkyPacket(const uint8_t * packet);
|
||||
|
||||
void processFlySkyPacketAC(const uint8_t * packet);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "flysky_nv14.h"
|
||||
#include "flysky_ibus.h"
|
||||
#include "pulses/afhds2.h"
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef __FLYSKY_NV14_H__
|
||||
#define __FLYSKY_NV14_H__
|
||||
#pragma once
|
||||
|
||||
enum FlySkySensorType_E {
|
||||
FLYSKY_SENSOR_RX_VOLTAGE,
|
||||
@@ -67,5 +66,3 @@ void processInternalFlySkyTelemetryData(uint8_t byte);
|
||||
uint8_t intmoduleGetByte(uint8_t * byte);
|
||||
|
||||
extern bool syncAfhds2Module;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
static inline bool pushFrskyTelemetryData(bool is_sport, uint8_t data,
|
||||
uint8_t* buffer, uint8_t& len)
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _FRSKY_H_
|
||||
#define _FRSKY_H_
|
||||
#pragma once
|
||||
|
||||
#include "../../definitions.h"
|
||||
#include "telemetry_holders.h"
|
||||
@@ -139,5 +138,3 @@ inline bool isRasValueValid()
|
||||
#endif
|
||||
|
||||
constexpr uint8_t FRSKY_BAD_ANTENNA_THRESHOLD = 0x33;
|
||||
|
||||
#endif // _FRSKY_H_
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
void parseTelemHubByte(uint8_t byte)
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
#if defined(PXX2)
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
struct FrSkySportSensor {
|
||||
const uint16_t firstId;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "ghost.h"
|
||||
#include "ghost_menu.h"
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
const char * const ghstRfProfileValue[GHST_RF_PROFILE_COUNT] = { "Auto", "Norm", "Race", "Pure", "Long", "Unused", "Race2", "Pure2" };
|
||||
const char * const ghstVtxBandName[GHST_VTX_BAND_COUNT] = { "- - -" , "IRC", "Race", "BandE", "BandB", "BandA" };
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
/* Full telemetry
|
||||
packet[0] = TX RSSI value
|
||||
|
||||
@@ -19,13 +19,10 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _HITEC_H
|
||||
#define _HITEC_H
|
||||
#pragma once
|
||||
|
||||
void processHitecTelemetryData(uint8_t data, uint8_t* rxBuffer, uint8_t& rxBufferCount);
|
||||
void hitecSetDefault(int index, uint16_t id, uint8_t subId, uint8_t instance);
|
||||
|
||||
// Used by multi protocol
|
||||
void processHitecPacket(const uint8_t *packet);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
/* HoTT Telemetry
|
||||
|
||||
|
||||
@@ -19,12 +19,9 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _HOTT_H
|
||||
#define _HOTT_H
|
||||
#pragma once
|
||||
|
||||
void hottSetDefault(int index, uint16_t id, uint8_t subId, uint8_t instance);
|
||||
|
||||
// Used by multi protocol
|
||||
void processHottPacket(const uint8_t * packet);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "mlink.h"
|
||||
|
||||
struct MLinkSensor
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "hal/module_port.h"
|
||||
|
||||
#include "telemetry.h"
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef OPENTX_MULTI_H
|
||||
#define OPENTX_MULTI_H
|
||||
#pragma once
|
||||
|
||||
#include "timers_driver.h"
|
||||
|
||||
@@ -155,5 +154,3 @@ bool isMultiModeScanning(uint8_t module);
|
||||
bool isMultiTelemReceiving(uint8_t module);
|
||||
|
||||
void checkFailsafeMulti();
|
||||
|
||||
#endif //OPENTX_MULTI_H
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "spektrum.h"
|
||||
#include "hal/module_port.h"
|
||||
#include "tasks/mixer_task.h"
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _SPEKTRUM_H
|
||||
#define _SPEKTRUM_H
|
||||
#pragma once
|
||||
|
||||
void processSpektrumTelemetryData(uint8_t module, uint8_t data, uint8_t* rxBuffer, uint8_t& rxBufferCount);
|
||||
void spektrumSetDefault(int index, uint16_t id, uint8_t subId, uint8_t instance);
|
||||
@@ -28,4 +27,3 @@ void spektrumSetDefault(int index, uint16_t id, uint8_t subId, uint8_t instance)
|
||||
// Used directly by multi telemetry protocol
|
||||
void processSpektrumPacket(const uint8_t *packet);
|
||||
void processDSMBindPacket(uint8_t module, const uint8_t *packet);
|
||||
#endif
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "multi.h"
|
||||
#include "pulses/afhds3.h"
|
||||
#include "pulses/flysky.h"
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _TELEMETRY_H_
|
||||
#define _TELEMETRY_H_
|
||||
#pragma once
|
||||
|
||||
#include "dataconstants.h"
|
||||
#include "myeeprom.h"
|
||||
@@ -274,5 +273,3 @@ struct ModuleSyncStatus
|
||||
};
|
||||
|
||||
ModuleSyncStatus& getModuleSyncStatus(uint8_t moduleIdx);
|
||||
|
||||
#endif // _TELEMETRY_H_
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _TELEMETRY_HOLDERS_H_
|
||||
#define _TELEMETRY_HOLDERS_H_
|
||||
#pragma once
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
@@ -131,5 +130,3 @@ class TelemetryMinDecorator: public T {
|
||||
protected:
|
||||
uint8_t _min;
|
||||
};
|
||||
|
||||
#endif // _TELEMETRY_HOLDERS_H_
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#define _USE_MATH_DEFINES
|
||||
#include <math.h>
|
||||
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _TELEMETRY_SENSORS_H_
|
||||
#define _TELEMETRY_SENSORS_H_
|
||||
#pragma once
|
||||
|
||||
#include "telemetry.h"
|
||||
|
||||
@@ -133,5 +132,3 @@ class TelemetryItem
|
||||
extern TelemetryItem telemetryItems[MAX_TELEMETRY_SENSORS];
|
||||
extern uint8_t allowNewSensors;
|
||||
bool isFaiForbidden(source_t idx);
|
||||
|
||||
#endif // _TELEMETRY_SENSORS_H_
|
||||
|
||||
Reference in New Issue
Block a user