Add "hardware_defs" target to dump hardware defines from hal.h per target Fixed hal.h definitions for switches & ADC inputs Tools to generate hardware definitions from current hal.h generator: add support for EXTx and analog switches WiP Add generated header to hardware_defs target Add support for ADC input direction and index per GPIO port Incredible: it compiles Removed StdPeriph ADC driver Works on QX7 Works on TX16S (VBat missing) Switch driver using generated switches for stm32 targets Switch driver with generated switches for simu Use switch names from switch driver Fixed single conversion handling Fixed horus VBat reading Added switch name Fix warnings about bitfield offsets and GCC 4.4 This is caused by bitfields that cross type boundaries. In this particular case, it happens as the bitfield is not defined the same in `rtc_backup.cpp`. Switches has already been moved to generic driver Jitter measurement for each sample, not just for oversampled values Moved periph clock init to the ADC driver ADC & GPIOs. Add switchInit() to init pins Fix NV14 CMake Fix taranis target Fix NV14 (again) Model audio files: use new interface for switch index Fix X9-lite Fix simu headers Fix getSwitchName() Add support for ADC switches Fix switch warning YAML Test only switches which are defined Conversions tests for QX7 only on QX7 Fix X12S Fix function switch names Enable ADC periph clock before initialising channels NV14: offset inputs for the sticks & fix switches WiP: get rid of VSRCRAW and some more Simu shall use normal ADC driver fix x7 fix nv14 Fix 9x nav fix 212x64 fix xlite fix x9e fix simu lib fix unit tests fix x7 tests PWM stick values should be written directly into adcValues ... just like FlySky sticks. fix x12s fix nv14 Add some support for SPI ADC (only unit tests) Remove `jq` usage fix generate_yaml.py for newer libclang fix pot config fix stick names Some YAML generator improvements Max 16 Pots on COLORLCD Fix some source names Use 10 bits for switches to prevent overflow Removed horus constants for switches & ADC inputs Fix unit tests Fix curve edit Fix libsimulator Fix function switches (tpro) Refine ADC & analog API Moved hardware definitions scripts and templates into own dir cleanup API refine Fix unit tests Mixer: apply calibration only on required inputs Place ADC switches after all other ADC inputs Fix X12S Remove useless TR_POTS_VSRCRAW, TR_SW_VSRCRAW, and TR_VSRCRAW Cleanup redundant generated YAML parsers Fixes Boxer rebase Add boxer to generate-hw-defs.sh Obsolete LUA exports Add boxer ADC_DIRECTION Split generate_hw_defs.py into multiple files Some cleanup (+ LUA switches) Fix AXIS definitions Fixed translation strings declarations Some rebase fixes Remove some useless StdPeriph drivers fix: set pin mode to reset state on usart deinit fix: use canonical names for calibration data fix: ADC driver does not care about unconfigured inputs fix X12S ADC Add support for ADC conversion chaining Better X12S ADC implem Moved X12S ADC driver to HAL/LL Improve ADC driver separation Fixed taranis & nv14 Moved PWM gimbals to HAL/LL Removed useless TR_EXTRA_VSRCRAW Fixed include guards Small fixes Renamed control inputs Moved internal and external module pulse driver def to boards Move more things to the generic_stm32 board Remove STR_VMIXTRIMS Added analog labels Generate main control names Misuse labels / short labels for main controls Backward compatibility: sliders and legacy names New keys driver Let's get rid of StdPeriph headers in simu Add jinja2 to CI workflows Use `grep` instead of `sed` chore: add python jinja2 oto msys setup script Removed more static definitions and use dynamic ones instead Fixes X9E Fix x7 nav too 212 switch display Fix default sliders Removed NUM_STICKS 212 switch display working nicely Surface radio 'stick' replacements fix: switch, trim & rotary pin init Remove old key drivers Removed VKEYS Removed ETX_FOURCC Fixed SURFACE_NAME Removed TR_VSWITCHES & TR_TRIMS_SWITCHES Fix xpot switches Store calibrated analogs in physical order Use getSourceString in drawSource Implement missing YAML read/write Fix isSourceAvailableInInputs() Fix isSourceAvailable() Some surface fixes Fix CLI debug Ported colour UI of analog diagnostics to new ADC API Small fixes Better input mapping Minor tpro fixes Fix trims available Remove TX mode choice on surface radio Rename surface controls Channel order alignement Fix throttle warning Fix checkTrims() Fix pot config casting issue Fix IS_SWITCH_FS() Fixed input mapping Fix fswitch auto-switch Fixed storing / reading function switches in YAML Fix enableVBatBridge() / disableVBatBridge() Fix interesting mode conversion Fix sources issues Fix special funnction list Proper function switch handling 128 GUI improvements Fix compilation Boxer cosmetics 128 hardware screen cosmetic Fix TX12 switches More switches fixes Simplify CPU type handling Fix flash size Fixed page-up / page-down in libopenui
404 lines
17 KiB
C
404 lines
17 KiB
C
/*
|
|
* Copyright (C) EdgeTX
|
|
*
|
|
* Based on code named
|
|
* opentx - https://github.com/opentx/opentx
|
|
* th9x - http://code.google.com/p/th9x
|
|
* er9x - http://code.google.com/p/er9x
|
|
* gruvin9x - http://code.google.com/p/gruvin9x
|
|
*
|
|
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
/*
|
|
* Formatting octal codes available in TR_ strings:
|
|
* \037\x -sets LCD x-coord (x value in octal)
|
|
* \036 -newline
|
|
* \035 -horizontal tab (ARM only)
|
|
* \001 to \034 -extended spacing (value * FW/2)
|
|
* \0 -ends current string
|
|
*/
|
|
|
|
#include "MultiProtoDefs.h"
|
|
|
|
#define TR_FUNC_SW "SW"
|
|
|
|
#define TR_VTRAINERMODES \
|
|
TR_VTRAINER_MASTER_OFF, TR_VTRAINER_MASTER_JACK, TR_VTRAINER_SLAVE_JACK, \
|
|
TR_VTRAINER_MASTER_SBUS_MODULE, TR_VTRAINER_MASTER_CPPM_MODULE, \
|
|
TR_VTRAINER_MASTER_BATTERY, TR_VTRAINER_BLUETOOTH, TR_VTRAINER_MULTI
|
|
|
|
#if defined(PCBHORUS)
|
|
#define TR_SM_VSRCRAW "smA","smB","smC","smD","smE","smF",
|
|
#else
|
|
#define TR_SM_VSRCRAW
|
|
#endif
|
|
|
|
#define TR_EMPTY "---"
|
|
|
|
#define TR_CRSF_BAUDRATE "115k","400k","921k","1.87M","3.75M","5.25M"
|
|
|
|
#define TR_MODULE_R9M_LITE "R9MLite"
|
|
|
|
#define TR_MODULE_PROTOCOLS \
|
|
TR_OFF, \
|
|
"PPM", \
|
|
"XJT", \
|
|
"ISRM", \
|
|
"DSM2", \
|
|
"CRSF", \
|
|
"MULTI", \
|
|
"R9M", \
|
|
"R9M ACCESS", \
|
|
TR_MODULE_R9M_LITE, \
|
|
"R9ML ACCESS", \
|
|
"GHST", \
|
|
"R9MLP ACCESS", \
|
|
"SBUS", \
|
|
"XJT Lite", \
|
|
"FLYSKY", \
|
|
TR("Lemon DSMP","LemonRx DSMP")
|
|
|
|
#define TR_FLYSKY_PROTOCOLS "AFHDS3","AFHDS2A"
|
|
#define TR_XJT_ACCST_RF_PROTOCOLS "D16","D8","LR12"
|
|
#define TR_ISRM_RF_PROTOCOLS "ACCESS","D16","LR12"
|
|
|
|
#define TR_SPORT_MODES "S.PORT","F.PORT","FBUS(FPORT2)"
|
|
#define TR_R9M_PXX2_RF_PROTOCOLS "ACCESS","FCC","EU","Flex"
|
|
#define TR_R9M_REGION "FCC","EU","868MHz","915MHz"
|
|
#define TR_R9M_LITE_FCC_POWER_VALUES "(100mW)"
|
|
#define TR_R9M_LITE_LBT_POWER_VALUES "25mW 8CH","25mW 16CH","100mW NoTele"
|
|
#define TR_R9M_FCC_POWER_VALUES "10mW","100mW","500mW","1W (auto)"
|
|
#define TR_R9M_LBT_POWER_VALUES "25mW 8CH","25mW 16CH","200mW NoTele","500mW NoTele"
|
|
|
|
#define TR_PPM_PROTOCOLS TR("No Telem", "No Telemetry"),"MLink"
|
|
#define TR_DSM_PROTOCOLS "LP45","DSM2","DSMX"
|
|
|
|
#define TR_MULTI_PROTOCOLS PROTO_NAMES
|
|
#define TR_MULTI_BAYANG_OPTIONS BAYANG_OPTION_TELEMETRY_NAMES
|
|
#define TR_MULTI_DSM_OPTIONS DSM2_OPTION_SERVOFREQ_NAMES
|
|
|
|
#define TR_MULTI_POWER "1.6mW","2.0mW","2.5mW","3.2mW","4.0mW","5.0mW","6.3mW","7.9mW","10mW","13mW","16mW","20mW","25mW","32mW","40mW","50mW"
|
|
#define TR_MULTI_WBUS_MODE "WBUS","PPM"
|
|
|
|
#define TR_AFHDS3_PROTOCOLS "PWM/IBUS","PWM/SBUS","PPM/IBUS","PPM/SBUS"
|
|
#define TR_AFHDS3_POWERS "25mW","50mW","100mW","250mW","500mW","1W","2W"
|
|
#define TR_FLYSKY_PULSE_PROTO "PWM","PPM"
|
|
#define TR_FLYSKY_SERIAL_PROTO "iBUS","SBUS"
|
|
#define TR_PPM_POL "-","+"
|
|
#define TR_PWR_OFF_DELAYS "0s","1s","2s","4s"
|
|
|
|
// Telemetry sensor name definitions
|
|
#define STR_SENSOR_RSSI "RSSI"
|
|
#define STR_SENSOR_R9PW "R9PW"
|
|
#define STR_SENSOR_RAS "SWR"
|
|
#define STR_SENSOR_A1 "A1"
|
|
#define STR_SENSOR_A2 "A2"
|
|
#define STR_SENSOR_A3 "A3"
|
|
#define STR_SENSOR_A4 "A4"
|
|
#define STR_SENSOR_BATT "RxBt"
|
|
#define STR_SENSOR_ALT "Alt"
|
|
#define STR_SENSOR_TEMP1 "Tmp1"
|
|
#define STR_SENSOR_TEMP2 "Tmp2"
|
|
#define STR_SENSOR_TEMP3 "Tmp3"
|
|
#define STR_SENSOR_TEMP4 "Tmp4"
|
|
#define STR_SENSOR_RPM2 "RPM2"
|
|
#define STR_SENSOR_PRES "Pres"
|
|
#define STR_SENSOR_ODO1 "Odo1"
|
|
#define STR_SENSOR_ODO2 "Odo2"
|
|
#define STR_SENSOR_TXV "TX_V"
|
|
#define STR_SENSOR_CURR_SERVO1 "CSv1"
|
|
#define STR_SENSOR_CURR_SERVO2 "CSv2"
|
|
#define STR_SENSOR_CURR_SERVO3 "CSv3"
|
|
#define STR_SENSOR_CURR_SERVO4 "CSv4"
|
|
#define STR_SENSOR_DIST "Dist"
|
|
#define STR_SENSOR_ARM "Arm"
|
|
#define STR_SENSOR_C50 "C50"
|
|
#define STR_SENSOR_C200 "C200"
|
|
#define STR_SENSOR_RPM "RPM"
|
|
#define STR_SENSOR_FUEL "Fuel"
|
|
#define STR_SENSOR_VSPD "VSpd"
|
|
#define STR_SENSOR_ACCX "AccX"
|
|
#define STR_SENSOR_ACCY "AccY"
|
|
#define STR_SENSOR_ACCZ "AccZ"
|
|
#define STR_SENSOR_ACC "Acc"
|
|
#define STR_SENSOR_GYROX "GYRX"
|
|
#define STR_SENSOR_GYROY "GYRY"
|
|
#define STR_SENSOR_GYROZ "GYRZ"
|
|
#define STR_SENSOR_CURR "Curr"
|
|
#define STR_SENSOR_CAPACITY "Capa"
|
|
#define STR_SENSOR_VFAS "VFAS"
|
|
#define STR_SENSOR_ASPD "ASpd"
|
|
#define STR_SENSOR_GSPD "GSpd"
|
|
#define STR_SENSOR_HDG "Hdg"
|
|
#define STR_SENSOR_SATELLITES "Sats"
|
|
#define STR_SENSOR_CELLS "Cels"
|
|
#define STR_SENSOR_GPSALT "GAlt"
|
|
#define STR_SENSOR_GPSDATETIME "Date"
|
|
#define STR_SENSOR_GPS "GPS"
|
|
#define STR_SENSOR_BATT1_VOLTAGE "RB1V"
|
|
#define STR_SENSOR_BATT2_VOLTAGE "RB2V"
|
|
#define STR_SENSOR_BATT1_CURRENT "RB1A"
|
|
#define STR_SENSOR_BATT2_CURRENT "RB2A"
|
|
#define STR_SENSOR_BATT1_CONSUMPTION "RB1C"
|
|
#define STR_SENSOR_BATT2_CONSUMPTION "RB2C"
|
|
#define STR_SENSOR_BATT1_TEMP "RB1T"
|
|
#define STR_SENSOR_BATT2_TEMP "RB2T"
|
|
#define STR_SENSOR_RB_STATE "RBS"
|
|
#define STR_SENSOR_CHANS_STATE "RBCS"
|
|
#define STR_SENSOR_RX_RSSI1 "1RSS"
|
|
#define STR_SENSOR_RX_RSSI2 "2RSS"
|
|
#define STR_SENSOR_RX_QUALITY "RQly"
|
|
#define STR_SENSOR_RX_SNR "RSNR"
|
|
#define STR_SENSOR_RX_SIGNAL "Sgnl"
|
|
#define STR_SENSOR_RX_NOISE "RNse"
|
|
#define STR_SENSOR_ANTENNA "ANT"
|
|
#define STR_SENSOR_RF_MODE "RFMD"
|
|
#define STR_SENSOR_TX_POWER "TPWR"
|
|
#define STR_SENSOR_TX_RSSI "TRSS"
|
|
#define STR_SENSOR_TX_QUALITY "TQly"
|
|
#define STR_SENSOR_RX_RSSI_PERC "RRSP"
|
|
#define STR_SENSOR_RX_RF_POWER "RPWR"
|
|
#define STR_SENSOR_TX_RSSI_PERC "TRSP"
|
|
#define STR_SENSOR_TX_FPS "TFPS"
|
|
#define STR_SENSOR_TX_SNR "TSNR"
|
|
#define STR_SENSOR_TX_NOISE "TNse"
|
|
#define STR_SENSOR_PITCH "Ptch"
|
|
#define STR_SENSOR_ROLL "Roll"
|
|
#define STR_SENSOR_YAW "Yaw"
|
|
#define STR_SENSOR_FLIGHT_MODE "FM"
|
|
#define STR_SENSOR_THROTTLE "Thr"
|
|
#define STR_SENSOR_QOS_A "FdeA"
|
|
#define STR_SENSOR_QOS_B "FdeB"
|
|
#define STR_SENSOR_QOS_L "FdeL"
|
|
#define STR_SENSOR_QOS_R "FdeR"
|
|
#define STR_SENSOR_QOS_F "FLss"
|
|
#define STR_SENSOR_QOS_H "Hold"
|
|
#define STR_SENSOR_BIND "BIND"
|
|
#define STR_SENSOR_LAP_NUMBER "Lap "
|
|
#define STR_SENSOR_GATE_NUMBER "Gate"
|
|
#define STR_SENSOR_LAP_TIME "LapT"
|
|
#define STR_SENSOR_GATE_TIME "GteT"
|
|
#define STR_SENSOR_ESC_VOLTAGE "EscV"
|
|
#define STR_SENSOR_ESC_CURRENT "EscA"
|
|
#define STR_SENSOR_ESC_RPM "EscR" //FrSky name
|
|
#define STR_SENSOR_ESC_RPM2 "Erpm" //Spektrum name
|
|
#define STR_SENSOR_ESC_CONSUMPTION "EscC"
|
|
#define STR_SENSOR_ESC_TEMP "EscT"
|
|
#define STR_SENSOR_SD1_CHANNEL "Chan"
|
|
#define STR_SENSOR_GASSUIT_TEMP1 "GTp1"
|
|
#define STR_SENSOR_GASSUIT_TEMP2 "GTp2"
|
|
#define STR_SENSOR_GASSUIT_RPM "GRPM"
|
|
#define STR_SENSOR_GASSUIT_FLOW "GFlo"
|
|
#define STR_SENSOR_GASSUIT_CONS "GFue"
|
|
#define STR_SENSOR_GASSUIT_RES_VOL "GRVl"
|
|
#define STR_SENSOR_GASSUIT_RES_PERC "GRPc"
|
|
#define STR_SENSOR_GASSUIT_MAX_FLOW "GMFl"
|
|
#define STR_SENSOR_GASSUIT_AVG_FLOW "GAFl"
|
|
#define STR_SENSOR_SBEC_VOLTAGE "BecV"
|
|
#define STR_SENSOR_SBEC_CURRENT "BecA"
|
|
#define STR_SENSOR_LOSS "Loss"
|
|
#define STR_SENSOR_FLOW "Flow"
|
|
#define STR_SENSOR_SPEED "Spd"
|
|
#define STR_SENSOR_FRAME_RATE "FRat"
|
|
#define STR_SENSOR_TOTAL_LATENCY "TLat"
|
|
#define STR_SENSOR_VTX_FREQ "VFrq"
|
|
#define STR_SENSOR_VTX_PWR "VPwr"
|
|
#define STR_SENSOR_VTX_CHAN "VChn"
|
|
#define STR_SENSOR_VTX_BAND "VBan"
|
|
#define STR_SENSOR_BATT_PERCENT "Bat%"
|
|
#define STR_SENSOR_ESC_VIN "EVIN"
|
|
#define STR_SENSOR_ESC_TFET "TFET"
|
|
#define STR_SENSOR_ESC_CUR "ECUR"
|
|
#define STR_SENSOR_ESC_TBEC "TBEC"
|
|
#define STR_SENSOR_ESC_BCUR "CBEC"
|
|
#define STR_SENSOR_ESC_VBEC "VBEC"
|
|
#define STR_SENSOR_ESC_THR "ETHR"
|
|
#define STR_SENSOR_ESC_POUT "EOUT"
|
|
#define STR_SENSOR_SMART_BAT_BTMP "BTmp"
|
|
#define STR_SENSOR_SMART_BAT_BCUR "BCur"
|
|
#define STR_SENSOR_SMART_BAT_BCAP "BUse"
|
|
#define STR_SENSOR_SMART_BAT_MIN_CEL "CLMi"
|
|
#define STR_SENSOR_SMART_BAT_MAX_CEL "CLMa"
|
|
#define STR_SENSOR_SMART_BAT_CYCLES "Cycl"
|
|
#define STR_SENSOR_SMART_BAT_CAPACITY "BCpT"
|
|
#define STR_SENSOR_CL01 "Cel1"
|
|
#define STR_SENSOR_CL02 "Cel2"
|
|
#define STR_SENSOR_CL03 "Cel3"
|
|
#define STR_SENSOR_CL04 "Cel4"
|
|
#define STR_SENSOR_CL05 "Cel5"
|
|
#define STR_SENSOR_CL06 "Cel6"
|
|
#define STR_SENSOR_CL07 "Cel7"
|
|
#define STR_SENSOR_CL08 "Cel8"
|
|
#define STR_SENSOR_CL09 "Cel9"
|
|
#define STR_SENSOR_CL10 "Cl10"
|
|
#define STR_SENSOR_CL11 "Cl11"
|
|
#define STR_SENSOR_CL12 "Cl12"
|
|
#define STR_SENSOR_CL13 "Cl13"
|
|
#define STR_SENSOR_CL14 "Cl14"
|
|
#define STR_SENSOR_CL15 "Cl15"
|
|
#define STR_SENSOR_CL16 "Cl16"
|
|
#define STR_SENSOR_CL17 "Cl17"
|
|
#define STR_SENSOR_CL18 "Cl18"
|
|
#define STR_SENSOR_VFR "VFR"
|
|
#define STR_SENSOR_RB3040_EXTRA_STATE "RBES"
|
|
#define STR_SENSOR_RB3040_CHANNEL1 "CH1A"
|
|
#define STR_SENSOR_RB3040_CHANNEL2 "CH2A"
|
|
#define STR_SENSOR_RB3040_CHANNEL3 "CH3A"
|
|
#define STR_SENSOR_RB3040_CHANNEL4 "CH4A"
|
|
#define STR_SENSOR_RB3040_CHANNEL5 "CH5A"
|
|
#define STR_SENSOR_RB3040_CHANNEL6 "CH6A"
|
|
#define STR_SENSOR_RB3040_CHANNEL7 "CH7A"
|
|
#define STR_SENSOR_RB3040_CHANNEL8 "CH8A"
|
|
#define STR_SENSOR_SERVO_CURRENT "SrvA"
|
|
#define STR_SENSOR_SERVO_VOLTAGE "SrvV"
|
|
#define STR_SENSOR_SERVO_TEMPERATURE "SrvT"
|
|
#define STR_SENSOR_SERVO_STATUS "SrvS"
|
|
#define STR_SENSOR_SPECIAL "Spcl"
|
|
|
|
// RX stat labeling for settings/telemetry, range
|
|
// check and internal/external module setup screens
|
|
#define STR_RXSTAT_LABEL_RSSI "RSSI "
|
|
#define STR_RXSTAT_LABEL_RQLY "Rqly "
|
|
#define STR_RXSTAT_LABEL_SIGNAL "Sgnl "
|
|
#define STR_RXSTAT_UNIT_PERCENT " %"
|
|
#define STR_RXSTAT_UNIT_DBM " db"
|
|
#define STR_RXSTAT_UNIT_NOUNIT ""
|
|
|
|
#define STR_CHAR_RIGHT "\302\200"
|
|
#define STR_CHAR_LEFT "\302\201"
|
|
#define STR_CHAR_UP "\302\202"
|
|
#define STR_CHAR_DOWN "\302\203"
|
|
|
|
#define STR_CHAR_DELTA "\302\210"
|
|
#define STR_CHAR_STICK "\302\211"
|
|
#define STR_CHAR_POT "\302\212"
|
|
#define STR_CHAR_SLIDER "\302\213"
|
|
#define STR_CHAR_SWITCH "\302\214"
|
|
#define STR_CHAR_TRIM "\302\215"
|
|
#define STR_CHAR_INPUT "\302\216"
|
|
#define STR_CHAR_FUNCTION "\302\217"
|
|
#define STR_CHAR_CYC "\302\220"
|
|
#define STR_CHAR_TRAINER "\302\221"
|
|
#define STR_CHAR_CHANNEL "\302\222"
|
|
#define STR_CHAR_TELEMETRY "\302\223"
|
|
#define STR_CHAR_LUA "\302\224"
|
|
|
|
#if !defined(COLORLCD)
|
|
// '~' is remapped to 0x7B in B&W font
|
|
#define STR_CHAR_TILDE "{"
|
|
#else
|
|
#define STR_CHAR_TILDE "~"
|
|
#endif
|
|
|
|
#define STR_CHAR_BW_GREATEREQUAL '}'
|
|
#define STR_CHAR_BW_DEGREE '@'
|
|
|
|
#define TR_FSGROUPS "-","1","2","3"
|
|
|
|
//
|
|
// HoTT Telemetry sensor names by Hott device
|
|
//
|
|
// naming convention: Name of device in capital letters (1 or 2) followed by sensor name in lower case letters
|
|
//
|
|
// example: GPal = GPS altitude, GAal = GAM altitude, Valt = Vario altitude, GAt2 = GAM temperature sensor 2
|
|
//
|
|
// T = transmitter
|
|
// R = receiver
|
|
// V = Vario
|
|
// G = GPS
|
|
// ES = ESC
|
|
// EA = EAM
|
|
//
|
|
// ssi = signal strength indicator
|
|
// qly = quality
|
|
// bt = battery
|
|
// evt = HoTT warnings
|
|
// btm = battery lowest voltage
|
|
// vpk = VPack
|
|
// al or alt = altitude
|
|
// vv = vertical velocity (climb rate)
|
|
// hd = heading
|
|
// sp = speed
|
|
// PS = GPS coordinates
|
|
// di = direction
|
|
// ns = number of satellites
|
|
// cp = capacity
|
|
// u = voltage (may be followed by numner if device offers more voltage sensors
|
|
// i = current (may be followed by numner if device offers more current sensors
|
|
// tmp or t = temperature (single t may be followed by numner if device offers more temperature sensors
|
|
// rp or r = temperature (single r may be followed by numner if device offers more temperature sensors
|
|
// fl = fuel
|
|
//
|
|
// TX
|
|
#define STR_SENSOR_HOTT_ID_TX_RSSI_DL "Tssi"
|
|
#define STR_SENSOR_HOTT_ID_TX_LQI_DL "Tqly"
|
|
// RX
|
|
#define STR_SENSOR_HOTT_ID_RX_RSSI_UL "Rssi"
|
|
#define STR_SENSOR_HOTT_ID_RX_LQI_UL "Rqly"
|
|
#define STR_SENSOR_HOTT_ID_RX_VLT "Rbt"
|
|
#define STR_SENSOR_HOTT_ID_RX_TMP "Rtmp"
|
|
#define STR_SENSOR_HOTT_ID_RX_BAT_MIN "Rbtm"
|
|
#define STR_SENSOR_HOTT_ID_RX_VPCK "Rvpk"
|
|
#define STR_SENSOR_HOTT_ID_RX_EVENT "Revt"
|
|
// Vario
|
|
#define STR_SENSOR_HOTT_ID_VARIO_ALT "Valt"
|
|
#define STR_SENSOR_HOTT_ID_VARIO_VV "Vvv"
|
|
#define STR_SENSOR_HOTT_ID_VARIO_HDG "Vhdg"
|
|
// GPS
|
|
#define STR_SENSOR_HOTT_ID_GPS_HDG "GPhd"
|
|
#define STR_SENSOR_HOTT_ID_GPS_SPEED "GPsp"
|
|
#define STR_SENSOR_HOTT_ID_GPS_LL "GPS"
|
|
#define STR_SENSOR_HOTT_ID_GPS_DST "GPdi"
|
|
#define STR_SENSOR_HOTT_ID_GPS_ALT "GPal"
|
|
#define STR_SENSOR_HOTT_ID_GPS_VV "GPvv"
|
|
#define STR_SENSOR_HOTT_ID_GPS_NSATS "GPns"
|
|
// ESC
|
|
#define STR_SENSOR_HOTT_ID_ESC_VLT "ESu1"
|
|
#define STR_SENSOR_HOTT_ID_ESC_CAP "EScp"
|
|
#define STR_SENSOR_HOTT_ID_ESC_TMP "ESt1"
|
|
#define STR_SENSOR_HOTT_ID_ESC_CUR "ESi1"
|
|
#define STR_SENSOR_HOTT_ID_ESC_RPM "ESrp"
|
|
#define STR_SENSOR_HOTT_ID_ESC_BEC_VLT "ESu2"
|
|
#define STR_SENSOR_HOTT_ID_ESC_BEC_CUR "ESi2"
|
|
#define STR_SENSOR_HOTT_ID_ESC_BEC_TMP "ESt2"
|
|
#define STR_SENSOR_HOTT_ID_ESC_MOT_TMP "ESt3"
|
|
// GAM
|
|
#define STR_SENSOR_HOTT_ID_GAM_CELS "GAcl"
|
|
#define STR_SENSOR_HOTT_ID_GAM_VLT1 "GAu1"
|
|
#define STR_SENSOR_HOTT_ID_GAM_VLT2 "GAu2"
|
|
#define STR_SENSOR_HOTT_ID_GAM_TMP1 "GAt1"
|
|
#define STR_SENSOR_HOTT_ID_GAM_TMP2 "GAt2"
|
|
#define STR_SENSOR_HOTT_ID_GAM_FUEL "GAfl"
|
|
#define STR_SENSOR_HOTT_ID_GAM_RPM1 "GAr1"
|
|
#define STR_SENSOR_HOTT_ID_GAM_ALT "GAal"
|
|
#define STR_SENSOR_HOTT_ID_GAM_VV "GAvv"
|
|
#define STR_SENSOR_HOTT_ID_GAM_CUR "GAi"
|
|
#define STR_SENSOR_HOTT_ID_GAM_VLT3 "GAu3"
|
|
#define STR_SENSOR_HOTT_ID_GAM_CAP "GAcp"
|
|
#define STR_SENSOR_HOTT_ID_GAM_SPEED "GAsp"
|
|
#define STR_SENSOR_HOTT_ID_GAM_RPM2 "GAr2"
|
|
// EAM
|
|
#define STR_SENSOR_HOTT_ID_EAM_CELS_L "EAc1"
|
|
#define STR_SENSOR_HOTT_ID_EAM_CELS_H "EAc2"
|
|
#define STR_SENSOR_HOTT_ID_EAM_VLT1 "EAu1"
|
|
#define STR_SENSOR_HOTT_ID_EAM_VLT2 "EAu2"
|
|
#define STR_SENSOR_HOTT_ID_EAM_TMP1 "EAt1"
|
|
#define STR_SENSOR_HOTT_ID_EAM_TMP2 "EAt2"
|
|
#define STR_SENSOR_HOTT_ID_EAM_ALT "EAal"
|
|
#define STR_SENSOR_HOTT_ID_EAM_CUR "EAi"
|
|
#define STR_SENSOR_HOTT_ID_EAM_VLT3 "EAu3"
|
|
#define STR_SENSOR_HOTT_ID_EAM_CAP "EAcp"
|
|
#define STR_SENSOR_HOTT_ID_EAM_VV "EAvv"
|
|
#define STR_SENSOR_HOTT_ID_EAM_RPM "EArp"
|
|
#define STR_SENSOR_HOTT_ID_EAM_SPEED "EAsp"
|