Merge with latest 2.3

This commit is contained in:
Bertrand Songis
2019-11-07 15:04:45 +01:00
286 changed files with 9956 additions and 10363 deletions
+2
View File
@@ -347,6 +347,8 @@ elseif(PCB STREQUAL X9D+ AND PCBREV STREQUAL 2019)
set(FLAVOUR x9d+2019)
elseif(PCB STREQUAL X10 AND PCBREV STREQUAL EXPRESS)
set(FLAVOUR x10express)
elseif(PCB STREQUAL X10 AND PCBREV STREQUAL T16)
set(FLAVOUR t16)
else()
string(TOLOWER ${PCB} FLAVOUR)
endif()
+19
View File
@@ -136,6 +136,14 @@
<file>images/simulator/X9E/right.png</file>
<file>images/simulator/X9E/right_enter.png</file>
<file>images/simulator/X9E/top.png</file>
<file>images/simulator/X9D2019/bottom.png</file>
<file>images/simulator/X9D2019/left.png</file>
<file>images/simulator/X9D2019/left_exit.png</file>
<file>images/simulator/X9D2019/left_menu.png</file>
<file>images/simulator/X9D2019/left_page.png</file>
<file>images/simulator/X9D2019/right.png</file>
<file>images/simulator/X9D2019/right_enter.png</file>
<file>images/simulator/X9D2019/top.png</file>
<file>images/simulator/X9LITE/bottom.png</file>
<file>images/simulator/X9LITE/left.png</file>
<file>images/simulator/X9LITE/left_exit.png</file>
@@ -170,6 +178,17 @@
<file>images/simulator/JumperT12/JumperT12-x.png</file>
<file>images/simulator/JumperT12/JumperT12-center.png</file>
<file>images/simulator/JumperT12/JumperT12-top.png</file>
<file>images/simulator/JumperT16/left.png</file>
<file>images/simulator/JumperT16/right.png</file>
<file>images/simulator/JumperT16/top.png</file>
<file>images/simulator/JumperT16/bottom.png</file>
<file>images/simulator/JumperT16/left_mdl.png</file>
<file>images/simulator/JumperT16/left_page.png</file>
<file>images/simulator/JumperT16/left_scrnsht.png</file>
<file>images/simulator/JumperT16/left_sys.png</file>
<file>images/simulator/JumperT16/left_tele.png</file>
<file>images/simulator/JumperT16/right_ent.png</file>
<file>images/simulator/JumperT16/right_rtn.png</file>
<file>images/wizard/ailerons.png</file>
<file>images/wizard/airbrakes.png</file>
<file>images/wizard/elevons.png</file>
@@ -85,6 +85,7 @@ RawSwitchItemModel::RawSwitchItemModel(const GeneralSettings * const generalSett
Firmware * fw = getCurrentFirmware();
// Descending switch direction: NOT (!) switches
addItems(SWITCH_TYPE_ACT, -1);
addItems(SWITCH_TYPE_SENSOR, -CPN_MAX_SENSORS);
addItems(SWITCH_TYPE_TELEMETRY, -1);
addItems(SWITCH_TYPE_FLIGHT_MODE, -fw->getCapability(FlightModes));
@@ -107,6 +108,7 @@ RawSwitchItemModel::RawSwitchItemModel(const GeneralSettings * const generalSett
addItems(SWITCH_TYPE_SENSOR, CPN_MAX_SENSORS);
addItems(SWITCH_TYPE_ON, 1);
addItems(SWITCH_TYPE_ONE, 1);
addItems(SWITCH_TYPE_ACT, 1);
}
void RawSwitchItemModel::setDynamicItemData(QStandardItem * item, const RawSwitch & rsw) const
+16 -4
View File
@@ -75,6 +75,8 @@ uint32_t Boards::getFourCC(Type board)
return 0x3378746F;
case BOARD_TARANIS_X9LITE:
return 0x3C78746F;
case BOARD_TARANIS_X9LITES:
return 0x3E78746F;
case BOARD_SKY9X:
case BOARD_AR9X:
case BOARD_9XRPRO:
@@ -87,6 +89,8 @@ uint32_t Boards::getFourCC(Type board)
return 0;
case BOARD_JUMPER_T12:
return 0x3D78746F;
case BOARD_JUMPER_T16:
return 0x3F78746F;
case BOARD_UNKNOWN:
break;
}
@@ -113,6 +117,7 @@ int Boards::getEEpromSize(Board::Type board)
case BOARD_TARANIS_XLITE:
case BOARD_TARANIS_X7:
case BOARD_TARANIS_X9LITE:
case BOARD_TARANIS_X9LITES:
case BOARD_TARANIS_X9D:
case BOARD_TARANIS_X9DP:
case BOARD_TARANIS_X9DP_2019:
@@ -124,6 +129,7 @@ int Boards::getEEpromSize(Board::Type board)
case BOARD_HORUS_X12S:
case BOARD_X10:
case BOARD_X10_EXPRESS:
case BOARD_JUMPER_T16:
return 0;
}
@@ -149,6 +155,7 @@ int Boards::getFlashSize(Type board)
case BOARD_TARANIS_XLITE:
case BOARD_TARANIS_X7:
case BOARD_TARANIS_X9LITE:
case BOARD_TARANIS_X9LITES:
case BOARD_TARANIS_X9D:
case BOARD_TARANIS_X9DP:
case BOARD_TARANIS_X9DP_2019:
@@ -158,6 +165,7 @@ int Boards::getFlashSize(Type board)
case BOARD_HORUS_X12S:
case BOARD_X10:
case BOARD_X10_EXPRESS:
case BOARD_JUMPER_T16:
return FSIZE_HORUS;
case BOARD_UNKNOWN:
return FSIZE_MAX;
@@ -273,7 +281,7 @@ int Boards::getCapability(Board::Type board, Board::Capability capability)
return 2;
else if (IS_TARANIS_X9E(board))
return 4;
else if (IS_HORUS_X10(board))
else if (IS_HORUS_X10(board) || IS_JUMPER_T16(board))
return 5;
else if (IS_HORUS_X12S(board))
return 3;
@@ -289,7 +297,7 @@ int Boards::getCapability(Board::Type board, Board::Capability capability)
case Sliders:
if (IS_HORUS_X12S(board) || IS_TARANIS_X9E(board))
return 4;
else if (IS_TARANIS_X9D(board) || IS_HORUS_X10(board))
else if (IS_TARANIS_X9D(board) || IS_HORUS_X10(board) || IS_JUMPER_T16(board))
return 2;
else
return 0;
@@ -454,7 +462,7 @@ QString Boards::getAnalogInputName(Board::Type board, int index)
if (index < DIM(pots))
return pots[index];
}
else if (IS_HORUS_X10(board)) {
else if (IS_HORUS_X10(board) || IS_JUMPER_T16(board)) {
const QString pots[] = {
"S1",
"6P",
@@ -505,6 +513,8 @@ QString Boards::getBoardName(Board::Type board)
return "Taranis X9E";
case BOARD_TARANIS_X9LITE:
return "Taranis X9-Lite";
case BOARD_TARANIS_X9LITES:
return "Taranis X9-Lite S";
case BOARD_SKY9X:
return "Sky9x";
case BOARD_9XRPRO:
@@ -516,7 +526,9 @@ QString Boards::getBoardName(Board::Type board)
case BOARD_X10:
return "Horus X10/X10S";
case BOARD_X10_EXPRESS:
return "Horus X10 Express";
return "Horus X10/X10S Express";
case BOARD_JUMPER_T16:
return "Jumper T16";
default:
return tr("Unknown");
}
+17 -4
View File
@@ -50,10 +50,12 @@ namespace Board {
BOARD_TARANIS_XLITE,
BOARD_TARANIS_XLITES,
BOARD_TARANIS_X9LITE,
BOARD_TARANIS_X9LITES,
BOARD_JUMPER_T12,
BOARD_JUMPER_T16,
};
constexpr int BOARD_TYPE_MAX = BOARD_JUMPER_T12 ;
constexpr int BOARD_TYPE_MAX = BOARD_JUMPER_T16 ;
enum PotType
{
@@ -222,6 +224,11 @@ inline bool IS_JUMPER_T12(Board::Type board)
return board == Board::BOARD_JUMPER_T12;
}
inline bool IS_JUMPER_T16(Board::Type board)
{
return board == Board::BOARD_JUMPER_T16;
}
inline bool IS_TARANIS_XLITE(Board::Type board)
{
return board == Board::BOARD_TARANIS_XLITE || board == Board::BOARD_TARANIS_XLITES;
@@ -239,7 +246,7 @@ inline bool IS_TARANIS_X7(Board::Type board)
inline bool IS_TARANIS_X9LITE(Board::Type board)
{
return board == Board::BOARD_TARANIS_X9LITE;
return board == Board::BOARD_TARANIS_X9LITE || board == Board::BOARD_TARANIS_X9LITES;
}
inline bool IS_TARANIS_X9(Board::Type board)
@@ -284,7 +291,7 @@ inline bool IS_HORUS_X12S(Board::Type board)
inline bool IS_HORUS(Board::Type board)
{
return IS_HORUS_X12S(board) || IS_HORUS_X10(board);
return IS_HORUS_X12S(board) || IS_HORUS_X10(board) || IS_JUMPER_T16(board);
}
inline bool IS_HORUS_OR_TARANIS(Board::Type board)
@@ -309,7 +316,13 @@ inline bool HAS_LARGE_LCD(Board::Type board)
inline bool HAS_EXTERNAL_ANTENNA(Board::Type board)
{
return (IS_HORUS(board) && board != Board::BOARD_X10_EXPRESS) || (IS_TARANIS_XLITE(board) && !IS_TARANIS_XLITES(board));
return (board == Board::BOARD_X10 || board == Board::BOARD_HORUS_X12S || (IS_TARANIS_XLITE(board) && !IS_TARANIS_XLITES(board)));
}
inline bool IS_ACCESS_RADIO(Board::Type board, QString &id)
{
return (IS_TARANIS_XLITES(board) || IS_TARANIS_X9LITE(board) || board == Board::BOARD_TARANIS_X9DP_2019 || board == Board::BOARD_X10_EXPRESS ||
(IS_HORUS(board) && id.contains("internalaccess")));
}
#endif // _BOARDS_H_
+2 -2
View File
@@ -88,7 +88,7 @@ GeneralSettings::GeneralSettings()
vBatMin = -5; //8,5V
vBatMax = -5; //11,5V
}
else if (IS_TARANIS_XLITE(board) || IS_HORUS_X10(board)) {
else if (IS_TARANIS_XLITE(board) || IS_HORUS_X10(board) || IS_JUMPER_T16(board)) {
// Lipo 2S
vBatWarn = 66;
vBatMin = -23; // 6.7V
@@ -267,7 +267,7 @@ void GeneralSettings::setDefaultControlTypes(Board::Type board)
sliderConfig[2] = Board::SLIDER_WITH_DETENT;
sliderConfig[3] = Board::SLIDER_WITH_DETENT;
}
else if (IS_TARANIS_X9(board) || IS_HORUS_X10(board)) {
else if (IS_TARANIS_X9(board) || IS_HORUS_X10(board) || IS_JUMPER_T16(board)) {
sliderConfig[0] = Board::SLIDER_WITH_DETENT;
sliderConfig[1] = Board::SLIDER_WITH_DETENT;
}
@@ -109,6 +109,7 @@ class GeneralSettings {
bool adjustRTC;
bool optrexDisplay;
unsigned int inactivityTimer;
unsigned int telemetryBaudrate;
bool minuteBeep;
bool preBeep;
bool flashBeep;
@@ -140,6 +141,7 @@ class GeneralSettings {
unsigned int rotarySteps;
unsigned int countryCode;
bool jitterFilter;
bool rtcCheckDisable;
unsigned int imperial;
char ttsLanguage[2+1];
int beepVolume;
+28 -4
View File
@@ -57,6 +57,30 @@ bool ModuleData::isPxx1Module() const
}
}
bool ModuleData::supportRxNum() const
{
switch (protocol) {
case PULSES_PXX_XJT_X16:
case PULSES_PXX_R9M:
case PULSES_PXX_R9M_LITE:
case PULSES_PXX_R9M_LITE_PRO:
case PULSES_MULTIMODULE:
case PULSES_ACCESS_ISRM:
case PULSES_ACCST_ISRM_D16:
case PULSES_ACCESS_R9M:
case PULSES_ACCESS_R9M_LITE:
case PULSES_ACCESS_R9M_LITE_PRO:
case PULSES_XJT_LITE_X16:
case PULSES_XJT_LITE_LR12:
case PULSES_PXX_XJT_LR12:
case PULSES_LP45:
case PULSES_DSM2:
case PULSES_DSMX:
return true;
default:
return false;
}
}
QString ModuleData::rfProtocolToString() const
{
@@ -127,12 +151,12 @@ QString ModuleData::protocolToString(unsigned protocol)
"FrSky XJT (D16)", "FrSky XJT (D8)", "FrSky XJT (LR12)", "FrSky DJT",
"TBS Crossfire",
"DIY Multiprotocol Module",
"FrSky PXX R9M",
"FrSky PXX R9M Lite",
"FrSky PXX R9M Lite Pro",
"FrSky R9M",
"FrSky R9M Lite",
"FrSky R9M Lite Pro",
"SBUS output at VBat",
"FrSky ACCESS ISRM", "FrSky ACCST ISRM D16",
"FrSky ACCESS R9M",
"FrSky ACCESS R9M 2019",
"FrSky ACCESS R9M Lite",
"FrSky ACCESS R9M Lite Pro",
"FrSky XJT lite (D16)", "FrSky XJT lite (D8)", "FrSky XJT lite (LR12)"
+5 -1
View File
@@ -114,7 +114,10 @@ enum MultiModuleRFProtocols {
MODULE_SUBTYPE_MULTI_POTENSIC,
MODULE_SUBTYPE_MULTI_ZSX,
MODULE_SUBTYPE_MULTI_FLYZONE,
MODULE_SUBTYPE_MULTI_LAST = MODULE_SUBTYPE_MULTI_FLYZONE
MODULE_SUBTYPE_MULTI_SCANNER,
MODULE_SUBTYPE_MULTI_FRSKYX_RX,
MODULE_SUBTYPE_MULTI_AFHDS2A_RX,
MODULE_SUBTYPE_MULTI_LAST = MODULE_SUBTYPE_MULTI_AFHDS2A_RX
};
enum TrainerProtocol {
@@ -183,6 +186,7 @@ class ModuleData {
void convert(RadioDataConversionState & cstate);
bool isPxx2Module() const;
bool isPxx1Module() const;
bool supportRxNum() const;
QString polarityToString() const { return ppm.pulsePol ? tr("Positive") : tr("Negative"); }
QString rfProtocolToString() const;
QString subTypeToString(int type = -1) const;
+4 -2
View File
@@ -71,6 +71,7 @@ static const QStringList STR_SUBTYPE_REDPINE {"Fast", "Slow"};
static const QStringList STR_SUBTYPE_POTENSIC {"A20 Firefly"};
static const QStringList STR_SUBTYPE_ZSX {"JJRC ZSX-280"};
static const QStringList STR_SUBTYPE_FLYZONE {"FZ-410 TX"};
static const QStringList STR_SUBTYPE_FRSKYX_RX {"D16 FCC", "D16 LBT"};
static const QStringList NO_SUBTYPE {STR_MULTI_DEFAULT};
@@ -108,7 +109,7 @@ const Multiprotocols multiProtocols {
{MODULE_SUBTYPE_MULTI_HITEC, 2, false, STR_SUBTYPE_HITEC, STR_MULTI_RFTUNE},
{MODULE_SUBTYPE_MULTI_BUGS_MINI, 1, false, STR_SUBTYPE_BUGS_MINI, nullptr},
{MODULE_SUBTYPE_MULTI_TRAXXAS, 0, false, STR_SUBTYPE_TRAXXAS, nullptr},
{MODULE_SUBTYPE_MULTI_E01X, 2, false, STR_SUBTYPE_E01X, nullptr},
{MODULE_SUBTYPE_MULTI_E01X, 2, false, STR_SUBTYPE_E01X, STR_MULTI_OPTION},
{MODULE_SUBTYPE_MULTI_V911S, 0, false, NO_SUBTYPE, STR_MULTI_RFTUNE},
{MODULE_SUBTYPE_MULTI_GD00X, 1, false, STR_SUBTYPE_GD00X, nullptr},
{MODULE_SUBTYPE_MULTI_KF606, 0, false, NO_SUBTYPE, STR_MULTI_RFTUNE},
@@ -116,6 +117,7 @@ const Multiprotocols multiProtocols {
{MODULE_SUBTYPE_MULTI_POTENSIC, 0, false, STR_SUBTYPE_POTENSIC, nullptr},
{MODULE_SUBTYPE_MULTI_ZSX, 0, false, STR_SUBTYPE_ZSX, nullptr},
{MODULE_SUBTYPE_MULTI_FLYZONE, 0, false, STR_SUBTYPE_FLYZONE, nullptr},
{MODULE_SUBTYPE_MULTI_FRSKYX_RX, 1, false, STR_SUBTYPE_FRSKYX_RX, STR_MULTI_RFTUNE},
{MM_RF_CUSTOM_SELECTED, 7, true, STR_SUBTYPE_CUSTOM, STR_MULTI_OPTION},
// Sentinel and default for protocols not listed above (MM_RF_CUSTOM is 0xff)
@@ -158,7 +160,7 @@ QString Multiprotocols::protocolToString(int protocol, bool custom)
"Bayang", "ESky", "MT99XX", "MJXQ", "Shenqi", "FY326", "SFHSS", "J6 PRO","FQ777","Assan","Hontai","Open LRS",
"FlySky AFHDS2A", "Q2x2", "Walkera", "Q303", "GW008", "DM002", "Cabell", "ESky 150", "H8 3D", "Corona", "CFlie",
"Hitec", "Wfly", "Bugs", "Bugs Mini", "Traxxas", "NCC-1701-A", "E01X", "WL Heli V911S", "GD00X", "Volantex V761",
"KFPlan KF606", "Redpine", "Potensic", "ZXS", "FlyZone"
"KFPlan KF606", "Redpine", "Potensic", "ZXS", "FlyZone", "Scanner", "FrSky RX", "FlySky AFHDS2A RX"
});
if (protocol == MM_RF_CUSTOM_SELECTED || custom)
+22 -15
View File
@@ -217,6 +217,10 @@ class SwitchesConversionTable: public ConversionTable {
addConversion(RawSwitch(SWITCH_TYPE_SENSOR, i), val++);
}
}
if (version >= 219) {
addConversion(RawSwitch(SWITCH_TYPE_ACT, -1), -val+offset);
addConversion(RawSwitch(SWITCH_TYPE_ACT, 1), val++);
}
}
@@ -1914,7 +1918,7 @@ class SensorField: public TransformedField {
if (sensor.type == SensorData::TELEM_TYPE_CUSTOM) {
_id = sensor.id;
_subid = sensor.subid;
_instance = (sensor.instance & 0x1F) | (sensor.rxIdx << 5) | (sensor.moduleIdx << 7);
_instance = sensor.instance == 0 ? 0 : ((sensor.instance - 1) & 0x1F) | (sensor.rxIdx << 5) | (sensor.moduleIdx << 7);
_ratio = sensor.ratio;
_offset = sensor.offset;
}
@@ -1942,12 +1946,12 @@ class SensorField: public TransformedField {
sensor.id = _id;
sensor.subid = _subid;
if (model.moduleData[0].isPxx1Module() || model.moduleData[1].isPxx1Module()) {
sensor.instance = (_instance & 0x1F) + (version <= 218 ? -1 : 0); // 5 bits instance
sensor.instance = (_instance & 0x1F) + (version <= 218 ? 0 : 1); // 5 bits instance
sensor.rxIdx = 0x03; // 2 bits Rx idx
sensor.moduleIdx = 0x01; // 1 bit module idx
}
else {
sensor.instance = _instance & 0x1F;
sensor.instance = (_instance & 0x1F) + 1;
sensor.rxIdx = (_instance >> 5) & 0x03; // 2 bits Rx idx
sensor.moduleIdx = (_instance >> 7) & 0x1; // 1 bit module idx
}
@@ -2048,7 +2052,6 @@ class ModuleUnionField: public UnionField<unsigned int> {
void beforeExport() override
{
module.rfProtocol = module.multi.rfProtocol & 0xf;
rfProtExtra = (module.multi.rfProtocol >> 4) & 0x03;
}
@@ -2089,9 +2092,6 @@ class ModuleUnionField: public UnionField<unsigned int> {
void beforeExport() override
{
if (module.protocol >= PULSES_PXX_XJT_X16 && module.protocol <= PULSES_PXX_XJT_LR12) {
module.subType = module.protocol - PULSES_PXX_XJT_X16;
}
}
void afterImport() override
@@ -2132,9 +2132,6 @@ class ModuleUnionField: public UnionField<unsigned int> {
void beforeExport() override
{
if (module.protocol == PULSES_ACCST_ISRM_D16 || module.protocol == PULSES_ACCESS_ISRM) {
module.subType = module.protocol - PULSES_ACCESS_ISRM;
}
for (int i=0; i<PXX2_MAX_RECEIVERS_PER_MODULE; i++) {
for (int pos=0; pos<PXX2_LEN_RX_NAME+1; pos++) {
@@ -2211,6 +2208,15 @@ class ModuleField: public TransformedField {
if (module.protocol >= PULSES_LP45 && module.protocol <= PULSES_DSMX) {
module.rfProtocol = module.protocol - PULSES_LP45;
}
else if (module.protocol == PULSES_ACCST_ISRM_D16 || module.protocol == PULSES_ACCESS_ISRM) {
module.subType = module.protocol - PULSES_ACCESS_ISRM;
}
else if (module.protocol >= PULSES_PXX_XJT_X16 && module.protocol <= PULSES_PXX_XJT_LR12) {
module.subType = module.protocol - PULSES_PXX_XJT_X16;
}
else if (module.protocol == PULSES_MULTIMODULE) {
module.rfProtocol = module.multi.rfProtocol & 0xf;
}
}
void afterImport() override
@@ -2361,8 +2367,8 @@ OpenTxModelData::OpenTxModelData(ModelData & modelData, Board::Type board, unsig
internalField.Append(new UnsignedField<8>(this, modelData.rssiSource));
if (IS_TARANIS_X9(board)) {
// TODO TOPBAR
internalField.Append(new SpareBitsField<16>(this));
internalField.Append(new UnsignedField<8>(this, modelData.frsky.voltsSource));
internalField.Append(new UnsignedField<8>(this, modelData.frsky.altitudeSource));
}
internalField.Append(new BoolField<1>(this, modelData.rssiAlarms.disabled));
@@ -2395,7 +2401,7 @@ OpenTxModelData::OpenTxModelData(ModelData & modelData, Board::Type board, unsig
if (version >= 219) {
// Trainer PPM settings
internalField.Append(new SpareBitsField<3>(this)); // TODO mode
internalField.Append(new UnsignedField<3>(this, modelData.trainerMode));
internalField.Append(new SpareBitsField<5>(this));
internalField.Append(new UnsignedField<8>(this, modelData.moduleData[2].channelsStart));
internalField.Append(new ConversionField<SignedField<8> >(this, modelData.moduleData[2].channelsCount, -8));
@@ -2571,7 +2577,8 @@ OpenTxGeneralData::OpenTxGeneralData(GeneralSettings & generalData, Board::Type
internalField.Append(new SignedField<2>(this, generalData.antennaMode));
else
internalField.Append(new SpareBitsField<2>(this));
internalField.Append(new SpareBitsField<3>(this));
internalField.Append(new BoolField<1>(this, generalData.rtcCheckDisable));
internalField.Append(new SpareBitsField<2>(this));
for (int i=0; i<4; i++) {
internalField.Append(new SignedField<16>(this, generalData.trainer.calib[i]));
@@ -2602,7 +2609,7 @@ OpenTxGeneralData::OpenTxGeneralData(GeneralSettings & generalData, Board::Type
}
internalField.Append(new UnsignedField<8>(this, generalData.inactivityTimer));
internalField.Append(new SpareBitsField<3>(this)); // telemetryBaudrate
internalField.Append(new UnsignedField<3>(this, generalData.telemetryBaudrate));
if (IS_HORUS(board))
internalField.Append(new SpareBitsField<3>(this));
else if (IS_TARANIS(board))
@@ -68,6 +68,8 @@ const char * OpenTxEepromInterface::getName()
return "OpenTX for Gruvin9x board / 9X";
case BOARD_JUMPER_T12:
return "OpenTX for Jumper T12";
case BOARD_JUMPER_T16:
return "OpenTX for Jumper T16";
case BOARD_TARANIS_X9D:
return "OpenTX for FrSky Taranis X9D";
case BOARD_TARANIS_X9DP:
@@ -78,6 +80,8 @@ const char * OpenTxEepromInterface::getName()
return "OpenTX for FrSky Taranis X9E";
case BOARD_TARANIS_X7:
return "OpenTX for FrSky Taranis X7";
case BOARD_TARANIS_X9LITES:
return "OpenTX for FrSky Taranis X9-Lite S";
case BOARD_TARANIS_X9LITE:
return "OpenTX for FrSky Taranis X9-Lite";
case BOARD_TARANIS_XLITE:
@@ -445,7 +449,7 @@ int OpenTxFirmware::getCapability(::Capability capability)
else
return id.contains("imperial") ? 1 : 0;
case ModelImage:
return (board == BOARD_TARANIS_X9D || IS_TARANIS_PLUS(board) || IS_HORUS(board));
return (board == BOARD_TARANIS_X9D || IS_TARANIS_PLUS(board) || board == BOARD_TARANIS_X9DP_2019 || IS_HORUS(board));
case HasBeeper:
return (!IS_ARM(board));
case HasPxxCountry:
@@ -768,18 +772,20 @@ bool OpenTxFirmware::isAvailable(PulsesProtocol proto, int port)
return true;
case PULSES_PXX_XJT_X16:
case PULSES_PXX_XJT_LR12:
return !(IS_TARANIS_XLITES(board) || IS_TARANIS_X9LITE(board));
return !IS_ACCESS_RADIO(board, id) && board != BOARD_JUMPER_T16;
case PULSES_PXX_XJT_D8:
return !(IS_TARANIS_XLITES(board) || IS_TARANIS_X9LITE(board) || id.contains("eu"));
return !(IS_ACCESS_RADIO(board, id) || id.contains("eu")) && board != BOARD_JUMPER_T16;
case PULSES_PPM:
return id.contains("internalppm");
case PULSES_ACCESS_ISRM:
case PULSES_ACCST_ISRM_D16:
return IS_TARANIS_XLITES(board) || IS_TARANIS_X9LITE(board) || board == BOARD_TARANIS_X9DP_2019 || board == BOARD_X10_EXPRESS || (IS_HORUS(board) && id.contains("internalaccess"));
return IS_ACCESS_RADIO(board, id);
case PULSES_MULTIMODULE:
return id.contains("internalmulti");
default:
return false;
}
case 1:
switch (proto) {
case PULSES_OFF:
@@ -797,13 +803,15 @@ bool OpenTxFirmware::isAvailable(PulsesProtocol proto, int port)
case PULSES_MULTIMODULE:
case PULSES_CROSSFIRE:
return true;
case PULSES_ACCESS_R9M:
return IS_TARANIS_XLITE(board) || IS_TARANIS_X9LITE(board) || board == BOARD_TARANIS_X9DP_2019 || board == BOARD_X10_EXPRESS || (IS_HORUS(board) && id.contains("internalaccess"));
case PULSES_PXX_R9M_LITE:
case PULSES_ACCESS_R9M_LITE:
case PULSES_ACCESS_R9M_LITE_PRO:
return (IS_TARANIS_XLITES(board) || IS_TARANIS_X9LITE(board));
case PULSES_XJT_LITE_X16:
case PULSES_XJT_LITE_D8:
case PULSES_XJT_LITE_LR12:
return (IS_TARANIS_XLITES(board) || IS_TARANIS_X9LITE(board));
return (IS_TARANIS_XLITE(board) || IS_TARANIS_X9LITE(board));
default:
return false;
}
@@ -1214,7 +1222,7 @@ void registerOpenTxFirmwares()
/* FrSky Taranis X9D+ 2019 board */
firmware = new OpenTxFirmware("opentx-x9d+2019", Firmware::tr("FrSky Taranis X9D+ 2019"), BOARD_TARANIS_X9DP_2019);
addOpenTxTaranisOptions(firmware);
addPPMInternalModuleHack(firmware);
firmware->addOption("autoupdate", Firmware::tr("Support for auto update on boot"));
registerOpenTxFirmware(firmware);
/* FrSky Taranis X9D board */
@@ -1238,6 +1246,12 @@ void registerOpenTxFirmwares()
firmware->addOption("autoupdate", Firmware::tr("Support for auto update on boot"));
registerOpenTxFirmware(firmware);
/* FrSky X9-LiteS board */
firmware = new OpenTxFirmware("opentx-x9lites", Firmware::tr("FrSky Taranis X9-Lite S"), BOARD_TARANIS_X9LITES);
addOpenTxTaranisOptions(firmware);
firmware->addOption("autoupdate", Firmware::tr("Support for auto update on boot"));
registerOpenTxFirmware(firmware);
/* FrSky X7 board */
firmware = new OpenTxFirmware("opentx-x7", Firmware::tr("FrSky Taranis X7 / X7S"), BOARD_TARANIS_X7);
addOpenTxTaranisOptions(firmware);
@@ -1262,8 +1276,9 @@ void registerOpenTxFirmwares()
registerOpenTxFirmware(firmware);
/* FrSky X10 Express board */
firmware = new OpenTxFirmware("opentx-x10express", Firmware::tr("FrSky Horus X10 Express"), BOARD_X10_EXPRESS);
firmware = new OpenTxFirmware("opentx-x10express", Firmware::tr("FrSky Horus X10 / X10S Express"), BOARD_X10_EXPRESS);
addOpenTxFrskyOptions(firmware);
firmware->addOption("autoupdate", Firmware::tr("Support for auto update on boot"));
registerOpenTxFirmware(firmware);
/* FrSky X12 (Horus) board */
@@ -1283,6 +1298,13 @@ void registerOpenTxFirmwares()
addOpenTxFontOptions(firmware);
registerOpenTxFirmware(firmware);
/* Jumper T16 board */
firmware = new OpenTxFirmware("opentx-t16", Firmware::tr("Jumper T16 / T16+"), BOARD_JUMPER_T16);
addOpenTxFrskyOptions(firmware);
firmware->addOption("internalmulti", Firmware::tr("Support for MULTI internal module"));
firmware->addOption("bluetooth", Firmware::tr("Support for bluetooth module"));
registerOpenTxFirmware(firmware);
/* 9XR-Pro */
firmware = new OpenTxFirmware("opentx-9xrpro", Firmware::tr("Turnigy 9XR-PRO"), BOARD_9XRPRO);
addOpenTxArm9xOptions(firmware, false);
+3
View File
@@ -115,6 +115,9 @@ QString RawSwitch::toString(Board::Type board, const GeneralSettings * const gen
case SWITCH_TYPE_ONE:
return tr("One");
case SWITCH_TYPE_ACT:
return tr("Act");
case SWITCH_TYPE_FLIGHT_MODE:
if (modelData)
return modelData->flightModeData[index-1].nameToString(index - 1);
+1
View File
@@ -45,6 +45,7 @@ enum RawSwitchType {
SWITCH_TYPE_TIMER_MODE,
SWITCH_TYPE_TELEMETRY,
SWITCH_TYPE_SENSOR,
SWITCH_TYPE_ACT,
MAX_SWITCH_TYPE
};
+7 -15
View File
@@ -92,24 +92,16 @@ QString SensorData::nameToString(int index) const
return RadioData::getElementName(tr("TELE"), index + 1, label);
}
QString SensorData::getRxOrModName(const ModelData* model) const
QString SensorData::getOrigin(const ModelData * model) const
{
if ((type != TELEM_TYPE_CUSTOM) || (!id && !instance))
if (type != TELEM_TYPE_CUSTOM || !id)
return QString();
const ModuleData& module = model->moduleData[moduleIdx];
if (module.isPxx2Module()) {
if (module.access.receivers & (1 << rxIdx)) {
return QString(module.access.receiverName[rxIdx]);
}
// receiver does not seem to be active
const ModuleData & module = model->moduleData[moduleIdx];
if (module.isPxx2Module() && rxIdx <= 2 && module.access.receivers & (1 << rxIdx)) {
return QString(module.access.receiverName[rxIdx]);
}
else {
return QString();
}
if (moduleIdx)
return tr("Internal");
return tr("External");
}
+1 -1
View File
@@ -148,7 +148,7 @@ class SensorData {
void updateUnit();
QString unitString() const;
QString nameToString(int index) const;
QString getRxOrModName(const ModelData* model) const;
QString getOrigin(const ModelData* model) const;
void clear() { memset(this, 0, sizeof(SensorData)); }
};
+14
View File
@@ -200,6 +200,15 @@ HardwarePanel::HardwarePanel(QWidget * parent, GeneralSettings & generalSettings
}
else {
ui->filterEnable->hide();
ui->filterLabel->hide();
}
if (IS_STM32(board)) {
ui->rtcCheckDisable->setChecked(!generalSettings.rtcCheckDisable);
}
else {
ui->rtcCheckDisable->hide();
ui->rtcCheckLabel->hide();
}
disableMouseScrolling();
@@ -217,6 +226,11 @@ void HardwarePanel::on_filterEnable_stateChanged()
generalSettings.jitterFilter = !ui->filterEnable->isChecked();
}
void HardwarePanel::on_rtcCheckDisable_stateChanged()
{
generalSettings.rtcCheckDisable = !ui->rtcCheckDisable->isChecked();
}
void HardwarePanel::on_PPM_MultiplierDSB_editingFinished()
{
int val = (int)(ui->PPM_MultiplierDSB->value()*10)-10;
+1
View File
@@ -49,6 +49,7 @@ class HardwarePanel : public GeneralPanel
void on_txCurrentCalibration_editingFinished();
void on_txVoltageCalibration_editingFinished();
void on_filterEnable_stateChanged();
void on_rtcCheckDisable_stateChanged();
void on_serialPortMode_currentIndexChanged(int index);
+149 -135
View File
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>470</width>
<height>1585</height>
<height>1618</height>
</rect>
</property>
<property name="sizePolicy">
@@ -57,7 +57,7 @@
</property>
</widget>
</item>
<item row="43" column="1">
<item row="44" column="1">
<widget class="QSpinBox" name="PPM2">
<property name="toolTip">
<string/>
@@ -169,7 +169,7 @@
</property>
</widget>
</item>
<item row="39" column="1">
<item row="40" column="1">
<widget class="QSpinBox" name="txCurrentCalibration">
<property name="minimum">
<number>-49</number>
@@ -192,27 +192,7 @@
</property>
</widget>
</item>
<item row="12" column="0">
<widget class="QLabel" name="rs2Label">
<property name="text">
<string>RS2</string>
</property>
</widget>
</item>
<item row="40" column="0" colspan="3">
<widget class="Line" name="ppmSeparator">
<property name="minimumSize">
<size>
<width>0</width>
<height>10</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="44" column="1">
<item row="45" column="1">
<widget class="QSpinBox" name="PPM3">
<property name="toolTip">
<string/>
@@ -231,6 +211,26 @@
</property>
</widget>
</item>
<item row="41" column="0" colspan="3">
<widget class="Line" name="ppmSeparator">
<property name="minimumSize">
<size>
<width>0</width>
<height>10</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="12" column="0">
<widget class="QLabel" name="rs2Label">
<property name="text">
<string>RS2</string>
</property>
</widget>
</item>
<item row="13" column="0" colspan="3">
<widget class="Line" name="potsTypeSeparator_1">
<property name="minimumSize">
@@ -267,7 +267,7 @@
</property>
</widget>
</item>
<item row="39" column="0">
<item row="40" column="0">
<widget class="QLabel" name="txCurrentCalibrationLabel">
<property name="text">
<string>Current Offset</string>
@@ -284,7 +284,7 @@
</property>
</widget>
</item>
<item row="43" column="0">
<item row="44" column="0">
<widget class="QLabel" name="label_33">
<property name="text">
<string>PPM 2</string>
@@ -312,6 +312,9 @@
</property>
</widget>
</item>
<item row="34" column="1">
<widget class="AutoComboBox" name="antennaMode"/>
</item>
<item row="19" column="1">
<widget class="AutoLineEdit" name="sfName">
<property name="maxLength">
@@ -322,6 +325,19 @@
<item row="8" column="2">
<widget class="AutoComboBox" name="pot5Type"/>
</item>
<item row="20" column="2">
<widget class="AutoComboBox" name="sgType">
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string/>
</property>
<property name="whatsThis">
<string/>
</property>
</widget>
</item>
<item row="21" column="2">
<widget class="AutoComboBox" name="shType">
<property name="toolTip">
@@ -342,17 +358,14 @@
</property>
</widget>
</item>
<item row="20" column="2">
<widget class="AutoComboBox" name="sgType">
<item row="14" column="2">
<widget class="AutoComboBox" name="saType">
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string/>
</property>
<property name="whatsThis">
<string/>
</property>
</widget>
</item>
<item row="18" column="2">
@@ -375,16 +388,6 @@
</property>
</widget>
</item>
<item row="14" column="2">
<widget class="AutoComboBox" name="saType">
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string/>
</property>
</widget>
</item>
<item row="14" column="0">
<widget class="QLabel" name="saLabel">
<property name="text">
@@ -434,6 +437,16 @@
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="AutoComboBox" name="pot2Type">
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string/>
</property>
</widget>
</item>
<item row="29" column="2">
<widget class="AutoComboBox" name="spType">
<property name="toolTip">
@@ -447,23 +460,6 @@
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="AutoLineEdit" name="rsName">
<property name="maxLength">
<number>3</number>
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="AutoComboBox" name="pot2Type">
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string/>
</property>
</widget>
</item>
<item row="35" column="1">
<widget class="QCheckBox" name="filterEnable">
<property name="text">
@@ -471,6 +467,13 @@
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="AutoLineEdit" name="rsName">
<property name="maxLength">
<number>3</number>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="AutoLineEdit" name="rudName">
<property name="maxLength">
@@ -512,7 +515,7 @@
</property>
</widget>
</item>
<item row="46" column="1">
<item row="47" column="1">
<widget class="QDoubleSpinBox" name="PPM_MultiplierDSB">
<property name="decimals">
<number>1</number>
@@ -545,6 +548,19 @@
</property>
</widget>
</item>
<item row="31" column="2">
<widget class="AutoComboBox" name="srType">
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string/>
</property>
<property name="whatsThis">
<string/>
</property>
</widget>
</item>
<item row="38" column="0">
<widget class="QLabel" name="txVoltageCalibrationLabel">
<property name="text">
@@ -562,19 +578,6 @@
</property>
</widget>
</item>
<item row="31" column="2">
<widget class="AutoComboBox" name="srType">
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string/>
</property>
<property name="whatsThis">
<string/>
</property>
</widget>
</item>
<item row="20" column="0">
<widget class="QLabel" name="sgLabel">
<property name="text">
@@ -589,9 +592,6 @@
</property>
</widget>
</item>
<item row="34" column="1">
<widget class="AutoComboBox" name="antennaMode"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="eleLabel">
<property name="text">
@@ -599,6 +599,13 @@
</property>
</widget>
</item>
<item row="22" column="0">
<widget class="QLabel" name="siLabel">
<property name="text">
<string>SI</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="AutoLineEdit" name="pot4Name">
<property name="maxLength">
@@ -613,10 +620,10 @@
</property>
</widget>
</item>
<item row="22" column="0">
<widget class="QLabel" name="siLabel">
<item row="25" column="0">
<widget class="QLabel" name="slLabel">
<property name="text">
<string>SI</string>
<string>SL</string>
</property>
</widget>
</item>
@@ -627,13 +634,6 @@
</property>
</widget>
</item>
<item row="25" column="0">
<widget class="QLabel" name="slLabel">
<property name="text">
<string>SL</string>
</property>
</widget>
</item>
<item row="27" column="1">
<widget class="AutoLineEdit" name="snName">
<property name="maxLength">
@@ -688,7 +688,7 @@
</property>
</widget>
</item>
<item row="45" column="1">
<item row="46" column="1">
<widget class="QSpinBox" name="PPM4">
<property name="toolTip">
<string/>
@@ -707,7 +707,7 @@
</property>
</widget>
</item>
<item row="41" column="0">
<item row="42" column="0">
<widget class="QLabel" name="label_23">
<property name="text">
<string>PPM 1</string>
@@ -727,14 +727,14 @@
</property>
</widget>
</item>
<item row="45" column="0">
<item row="46" column="0">
<widget class="QLabel" name="label_35">
<property name="text">
<string>PPM 4</string>
</property>
</widget>
</item>
<item row="41" column="1">
<item row="42" column="1">
<widget class="QSpinBox" name="PPM1">
<property name="toolTip">
<string/>
@@ -766,6 +766,20 @@
</property>
</widget>
</item>
<item row="15" column="0">
<widget class="QLabel" name="sbLabel">
<property name="text">
<string>SB</string>
</property>
</widget>
</item>
<item row="31" column="1">
<widget class="AutoLineEdit" name="srName">
<property name="maxLength">
<number>3</number>
</property>
</widget>
</item>
<item row="38" column="1">
<widget class="QDoubleSpinBox" name="txVoltageCalibration">
<property name="statusTip">
@@ -788,21 +802,7 @@
</property>
</widget>
</item>
<item row="15" column="0">
<widget class="QLabel" name="sbLabel">
<property name="text">
<string>SB</string>
</property>
</widget>
</item>
<item row="31" column="1">
<widget class="AutoLineEdit" name="srName">
<property name="maxLength">
<number>3</number>
</property>
</widget>
</item>
<item row="46" column="0">
<item row="47" column="0">
<widget class="QLabel" name="label_30">
<property name="text">
<string>PPM Multiplier</string>
@@ -903,16 +903,6 @@
</property>
</widget>
</item>
<item row="34" column="0">
<widget class="QLabel" name="antennaLabel">
<property name="text">
<string>Antenna</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="27" column="2">
<widget class="AutoComboBox" name="snType">
<property name="toolTip">
@@ -933,7 +923,17 @@
</property>
</widget>
</item>
<item row="44" column="0">
<item row="34" column="0">
<widget class="QLabel" name="antennaLabel">
<property name="text">
<string>Antenna</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="45" column="0">
<widget class="QLabel" name="label_34">
<property name="text">
<string>PPM 3</string>
@@ -1029,6 +1029,26 @@
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="AutoLineEdit" name="eleName">
<property name="maxLength">
<number>3</number>
</property>
</widget>
</item>
<item row="26" column="2">
<widget class="AutoComboBox" name="smType">
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string/>
</property>
<property name="whatsThis">
<string/>
</property>
</widget>
</item>
<item row="36" column="1">
<widget class="QComboBox" name="serialPortMode">
<item>
@@ -1058,26 +1078,6 @@
</item>
</widget>
</item>
<item row="1" column="1">
<widget class="AutoLineEdit" name="eleName">
<property name="maxLength">
<number>3</number>
</property>
</widget>
</item>
<item row="26" column="2">
<widget class="AutoComboBox" name="smType">
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string/>
</property>
<property name="whatsThis">
<string/>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="rsLabel">
<property name="text">
@@ -1113,6 +1113,20 @@
</property>
</widget>
</item>
<item row="39" column="1">
<widget class="QCheckBox" name="rtcCheckDisable">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="39" column="0">
<widget class="QLabel" name="rtcCheckLabel">
<property name="text">
<string>RTC Batt Check</string>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
+17
View File
@@ -435,6 +435,23 @@ static bool caseInsensitiveLessThan(const QString &s1, const QString &s2)
return s1.toLower() < s2.toLower();
}
bool displayT16ImportWarning()
{
QMessageBox msgBox;
msgBox.setWindowTitle(QObject::tr("WARNING"));
msgBox.setText(QObject::tr("<p>Importing JumperTX data into OpenTX 2.3 is <b>not supported and dangerous.</b></p> \
<p>It is unfortunately not possible for us to differentiate JumperTX data from legitimate FrSky X10 data, but <b>You should only continue here if the file you opened comes from a real FrSky X10.</b></p> \
<p>Do you really want to continue?</p>"));
msgBox.setIcon(QMessageBox::Warning);
msgBox.addButton(QMessageBox::No);
msgBox.addButton(QMessageBox::Yes);
msgBox.setDefaultButton(QMessageBox::No);
if (msgBox.exec() == QMessageBox::No)
return false;
return true;
}
void Helpers::populateFileComboBox(QComboBox * b, const QSet<QString> & set, const QString & current)
{
b->clear();
+2
View File
@@ -52,6 +52,8 @@ extern const QColor colors[CPN_MAX_CURVES];
#define TRIM_MODE_NONE 0x1F // 0b11111
bool displayT16ImportWarning();
class CompanionIcon: public QIcon {
public:
CompanionIcon(const QString &baseimage);
File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B

@@ -0,0 +1,28 @@
# "Taranis X9D+ 2019" dark blue skin for the Companion simulator
![X9D+ 2019 Image for Companion](X9DP2019_Companion_image.png "Taranis X9D+ 2019")
## The different parts of the image
The image is divided into 4 pieces: top, bottom, left and right.
For the images concerned, there is the version with the activated element and the version without the activated element (such as a button, a rotary encoder, clicking on the rotary encoder).
| File name | What is this image ? |
|:---------------------|:----------------------------------------------|
| `bottom.png` | central lower band |
| `center_LCD.png` | central LCD 424x128px (useless for simulator) |
| `left.png` | left part with inactive elements |
| `left_exit.png` | left part with the EXIT button activated |
| `left_menu.png` | left part with the MENU button activated |
| `left_page.png` | left part with the PAGE button activated |
| `bottom_scrnshot.png`| central lower band with the SCREENSHOT button activated|
| `right_ent.png` | right part with the ENTER button activated |
| `right.png` | right part with inactive elements |
| `top.png` | central upper band |
`X9DP2019_Companion_image.png` is the image displayed here.
## Software used :
- **Inkscape** : vector drawing software (http://www.inkscape.org/)
- **Gimp** : image editor (http://www.gimp.org/)
Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

@@ -0,0 +1,29 @@
# X9-Lite skin for the Companion simulator
![X9-Lite Image for Companion](X9-Lite_Companion_image.png "X9-Lite")
## The different parts of the image
The image is divided into 4 pieces: top, bottom, left and right.
For the images concerned, there is the version with the activated element and the version without the activated element (such as a button, a rotary encoder, clicking on the rotary encoder).
| File name | What is this image ? |
|:---------------------|:----------------------------------------------|
| `bottom.png` | central lower band |
| `center_LCD.png` | central LCD 256x128px (useless for simulator) |
| `left.png` | left part with inactive elements |
| `left_exit.png` | left part with the EXIT button activated |
| `left_menu.png` | left part with the MENU button activated |
| `left_page.png` | left part with the PAGE button activated |
| `left_scrnshot.png `| left part with the SCREENSHOT button activated|
| `right_ent.png` | right part with the ENT button activated |
| `right_rotcoder.png` | right part with the Rotary Encoder actuated |
| `right.png` | right part with inactive elements |
| `top.png` | central upper band |
`X9-Lite_Companion_image.png` is the image displayed here.
When turning the rotary encoder, it is possible to make a motion effect by displaying `right_rotcoder.png` and `right.png`.
## Software used :
- **Inkscape** : vector drawing software (http://www.inkscape.org/)
- **Gimp** : image editor (http://www.gimp.org/)
Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

+6
View File
@@ -1457,6 +1457,12 @@ bool MdiChild::convertStorage(Board::Type from, Board::Type to, bool newFile)
{
QMessageBox::StandardButtons btns;
QMessageBox::StandardButton dfltBtn;
if (from == Board::BOARD_X10 && to == Board::BOARD_JUMPER_T16) {
if (displayT16ImportWarning() == false)
return false;
}
QString q = tr("<p><b>Currently selected radio type (%1) is not compatible with file %3 (from %2), models and settings need to be converted.</b></p>").arg(Boards::getBoardName(to)).arg(Boards::getBoardName(from)).arg(userFriendlyCurrentFile());
if (newFile) {
q.append(tr("Do you wish to continue with the conversion?"));
+1 -1
View File
@@ -688,7 +688,7 @@ void CustomFunctionsPanel::populateFuncCB(QComboBox *b, unsigned int value)
((i==FuncLogs) && !firmware->getCapability(HasSDLogs)) ||
((i==FuncSetTimer1 || i==FuncSetTimer2) && !IS_ARM(firmware->getBoard())) ||
((i==FuncSetTimer3) && firmware->getCapability(Timers) < 3) ||
((i==FuncScreenshot) && !IS_TARANIS(firmware->getBoard())) ||
((i==FuncScreenshot) && !IS_HORUS_OR_TARANIS(firmware->getBoard())) ||
((i>=FuncRangeCheckInternalModule && i<=FuncBindExternalModule) && (!model || !firmware->getCapability(DangerousFunctions))) ||
((i>=FuncAdjustGV1 && i<=FuncAdjustGVLast) && (!model || !firmware->getCapability(Gvars)))
) {
+57 -14
View File
@@ -217,15 +217,14 @@ ModulePanel::ModulePanel(QWidget * parent, ModelData & model, ModuleData & modul
// The protocols available on this board
for (unsigned int i=0; i<PULSES_PROTOCOL_LAST; i++) {
if (firmware->isAvailable((PulsesProtocol) i, moduleIdx)) {
if (IS_TARANIS_XLITE(firmware->getBoard()) && i == PULSES_PXX_R9M) //TODO remove when mini are handled as a different module type
ui->protocol->addItem("FrSky R9M Mini", (QVariant) i);
else
ui->protocol->addItem(ModuleData::protocolToString(i), i);
ui->protocol->addItem(ModuleData::protocolToString(i), i);
if (i == module.protocol)
ui->protocol->setCurrentIndex(ui->protocol->count()-1);
}
}
for (int i=0; i<=MODULE_SUBTYPE_MULTI_LAST; i++) {
if (i == MODULE_SUBTYPE_MULTI_SCANNER)
continue;
ui->multiProtocol->addItem(Multiprotocols::protocolToString(i), i);
}
@@ -299,8 +298,10 @@ void ModulePanel::setupFailsafes()
}
}
if (!hasFailsafe)
if (!hasFailsafe) {
lock = false;
return;
}
int row = 0;
int col = 0;
@@ -365,6 +366,48 @@ void ModulePanel::setupFailsafes()
lock = false;
}
int ModulePanel::getMaxChannelCount()
{
const PulsesProtocol protocol = (PulsesProtocol)module.protocol;
switch (protocol) {
case PULSES_ACCESS_ISRM:
return 24;
case PULSES_PXX_R9M:
case PULSES_ACCESS_R9M:
case PULSES_ACCESS_R9M_LITE:
case PULSES_ACCESS_R9M_LITE_PRO:
case PULSES_ACCST_ISRM_D16:
case PULSES_XJT_LITE_X16:
case PULSES_PXX_XJT_X16:
case PULSES_CROSSFIRE:
case PULSES_SBUS:
return 16;
case PULSES_XJT_LITE_LR12:
case PULSES_PXX_XJT_LR12:
return 12;
case PULSES_PXX_DJT:
case PULSES_XJT_LITE_D8:
case PULSES_PXX_XJT_D8:
case PULSES_PPM:
return 8;
case PULSES_LP45:
case PULSES_DSM2:
case PULSES_DSMX:
return 6;
case PULSES_MULTIMODULE:
if (module.multi.rfProtocol == MODULE_SUBTYPE_MULTI_DSM2)
return 12;
else
return 16;
break;
case PULSES_OFF:
break;
default:
break;
}
return 8;
}
void ModulePanel::update()
{
const PulsesProtocol protocol = (PulsesProtocol)module.protocol;
@@ -463,10 +506,12 @@ void ModulePanel::update()
ui->rxNumber->setValue(module.modelId);
ui->label_channelsStart->setVisible(mask & MASK_CHANNELS_RANGE);
ui->channelsStart->setVisible(mask & MASK_CHANNELS_RANGE);
ui->channelsStart->setMaximum(33 - module.channelsCount);
ui->channelsStart->setValue(module.channelsStart+1);
ui->label_channelsCount->setVisible(mask & MASK_CHANNELS_RANGE);
ui->channelsCount->setVisible(mask & MASK_CHANNELS_RANGE);
ui->channelsCount->setEnabled(mask & MASK_CHANNELS_COUNT);
ui->channelsCount->setMaximum(getMaxChannelCount());
ui->channelsCount->setValue(module.channelsCount);
ui->channelsCount->setSingleStep(firmware->getCapability(HasPPMStart) ? 1 : 2);
@@ -482,7 +527,7 @@ void ModulePanel::update()
ui->ppmDelay->setValue(module.ppm.delay);
ui->label_ppmFrameLength->setVisible(mask & MASK_SBUSPPM_FIELDS);
ui->ppmFrameLength->setVisible(mask & MASK_SBUSPPM_FIELDS);
ui->ppmFrameLength->setMinimum(module.channelsCount*(model->extendedLimits ? 2.250 : 2)+3.5);
ui->ppmFrameLength->setMinimum(module.channelsCount * (model->extendedLimits ? 2.250 : 2)+3.5);
ui->ppmFrameLength->setMaximum(firmware->getCapability(PPMFrameLength));
ui->ppmFrameLength->setValue(22.5+((double)module.ppm.frameLength)*0.5);
@@ -546,7 +591,7 @@ void ModulePanel::update()
ui->lowPower->setVisible(mask & MASK_MULTIMODULE);
if (mask & MASK_MULTIMODULE) {
ui->multiProtocol->setCurrentIndex(module.multi.rfProtocol);
ui->multiProtocol->setCurrentIndex(ui->multiProtocol->findData(module.multi.rfProtocol));
ui->autoBind->setChecked(module.multi.autoBindMode);
ui->lowPower->setChecked(module.multi.lowPowerMode);
}
@@ -611,11 +656,6 @@ void ModulePanel::update()
}
}
}
if (mask & MASK_CHANNELS_RANGE) {
ui->channelsStart->setMaximum(33 - ui->channelsCount->value());
ui->channelsCount->setMaximum(qMin(24, 33-ui->channelsStart->value()));
}
}
void ModulePanel::on_trainerMode_currentIndexChanged(int index)
@@ -631,6 +671,7 @@ void ModulePanel::onProtocolChanged(int index)
{
if (!lock && module.protocol != ui->protocol->itemData(index).toUInt()) {
module.protocol = ui->protocol->itemData(index).toInt();
module.channelsCount = getMaxChannelCount();
update();
emit modified();
}
@@ -717,13 +758,15 @@ void ModulePanel::on_failsafeMode_currentIndexChanged(int value)
void ModulePanel::onMultiProtocolChanged(int index)
{
if (!lock && module.multi.rfProtocol != (unsigned)index) {
int rfProtocol = ui->multiProtocol->itemData(index).toInt();
if (!lock && module.multi.rfProtocol != (unsigned)rfProtocol) {
lock=true;
module.multi.rfProtocol = (unsigned int) index;
module.multi.rfProtocol = (unsigned int)rfProtocol;
unsigned int maxSubTypes = multiProtocols.getProtocol(index).numSubTypes();
if (module.multi.customProto)
maxSubTypes=8;
module.subType = std::min(module.subType, maxSubTypes -1);
module.channelsCount = getMaxChannelCount();
update();
emit modified();
lock = false;
+1
View File
@@ -71,6 +71,7 @@ class ModulePanel : public ModelPanel
void channelsRangeChanged();
private slots:
int getMaxChannelCount();
void setupFailsafes();
void on_trainerMode_currentIndexChanged(int index);
void onProtocolChanged(int index);
+8 -12
View File
@@ -653,9 +653,8 @@ void TelemetrySensorPanel::update()
ui->id->hide();
ui->instanceLabel->hide();
ui->instance->hide();
ui->rxLabel->hide();
ui->moduleLabel->hide();
ui->rxOrMod->hide();
ui->originLabel->hide();
ui->origin->hide();
ui->formula->show();
ui->formula->setCurrentIndex(sensor.formula);
isConfigurable = (sensor.formula < SensorData::TELEM_FORMULA_CELL);
@@ -679,13 +678,10 @@ void TelemetrySensorPanel::update()
ui->id->show();
ui->instanceLabel->show();
ui->instance->show();
bool is_pxx2 = model->moduleData[sensor.moduleIdx].isPxx2Module();
ui->rxLabel->setVisible(is_pxx2);
ui->moduleLabel->setVisible(!is_pxx2);
ui->rxOrMod->setText(sensor.getRxOrModName(model));
ui->rxOrMod->show();
QString origin = sensor.getOrigin(model);
ui->originLabel->setVisible(!origin.isEmpty());
ui->origin->setVisible(!origin.isEmpty());
ui->origin->setText(origin);
ui->formula->hide();
isConfigurable = sensor.unit < SensorData::UNIT_FIRST_VIRTUAL;
@@ -755,7 +751,7 @@ void populateTelemetrySourcesComboBox(AutoComboBox * cb, const ModelData * model
const SensorData& sensor = model->sensorData[-i-1];
if (sensor.isAvailable()) {
if (sensor.type == SensorData::TELEM_TYPE_CUSTOM)
cb->addItem(QString("-%1 (%2)").arg(sensor.label, sensor.getRxOrModName(model)), i);
cb->addItem(QString("-%1 (%2)").arg(sensor.label, sensor.getOrigin(model)), i);
else
cb->addItem(QString("-%1").arg(sensor.label), i);
}
@@ -766,7 +762,7 @@ void populateTelemetrySourcesComboBox(AutoComboBox * cb, const ModelData * model
const SensorData& sensor = model->sensorData[i-1];
if (sensor.isAvailable()) {
if (sensor.type == SensorData::TELEM_TYPE_CUSTOM)
cb->addItem(QString("%1 (%2)").arg(sensor.label, sensor.getRxOrModName(model)), i);
cb->addItem(QString("%1 (%2)").arg(sensor.label, sensor.getOrigin(model)), i);
else
cb->addItem(QString("%1").arg(sensor.label), i);
}
+3 -10
View File
@@ -13,7 +13,7 @@
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,1,0,0,0,1,0,0,0,1,1,1,0,0,1,0,1,0,1,1,1,1,1,1,0,1,0,0,1,0,0,1,0,0,0,0,0">
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,1,0,0,0,1,0,0,1,1,1,0,0,1,0,1,0,1,1,1,1,1,1,0,1,0,0,1,0,0,1,0,0,0,0,0">
<property name="leftMargin">
<number>0</number>
</property>
@@ -121,21 +121,14 @@
</widget>
</item>
<item>
<widget class="QLabel" name="rxLabel">
<widget class="QLabel" name="originLabel">
<property name="text">
<string>Rx</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="moduleLabel">
<property name="text">
<string>Mod.</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="rxOrMod">
<widget class="QLineEdit" name="origin">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
+4 -1
View File
@@ -727,7 +727,7 @@ void TreeModel::refresh()
protocol = moduleData.protocol;
// These are the only RXs that allow nominating RX # but changing RX or copying models can leave residual configuration which can cause issues
// if (protocol == PULSES_PXX_XJT_X16 || protocol == PULSES_PXX_XJT_LR12 || protocol == PULSES_PXX_R9M || protocol == PULSES_DSMX || protocol == PULSES_MULTIMODULE) {
if (protocol != PULSES_OFF && moduleData.modelId > 0) {
if (moduleData.supportRxNum() && moduleData.modelId > 0) {
if (!rxs.isEmpty()) {
rxs.append(", ");
}
@@ -751,6 +751,9 @@ void TreeModel::refresh()
bool TreeModel::isModelIdUnique(unsigned modelIdx, unsigned module, unsigned protocol)
{
int cnt = 0;
if (protocol== PULSES_PXX_XJT_D8)
return true;
for (auto const& model: radioData->models) {
if (!model.isEmpty()) {
const ModuleData& moduleData = model.moduleData[module];
+5
View File
@@ -333,6 +333,11 @@ bool readEeprom(const QString & filename, ProgressWidget * progress)
QMessageBox::critical(progress, CPN_STR_TTL_ERROR, outputStorage.error());
return false;
}
if (getCurrentBoard() == Board::BOARD_JUMPER_T16 && inputStorage.getBoard() == Board::BOARD_X10) {
if (displayT16ImportWarning() == false)
return false;
}
}
else {
if (IS_ARM(board)) {
+4
View File
@@ -9,9 +9,11 @@ set(simulation_SRCS
simulateduiwidgetX9.cpp
simulateduiwidgetXLITE.cpp
simulateduiwidgetX9E.cpp
simulateduiwidgetX9D2019.cpp
simulateduiwidgetX10.cpp
simulateduiwidgetX12.cpp
simulateduiwidgetJumperT12.cpp
simulateduiwidgetJumperT16.cpp
simulatorinterface.cpp
simulatormainwindow.cpp
simulatorstartupdialog.cpp
@@ -31,9 +33,11 @@ set(simulation_UIS
simulateduiwidgetX9.ui
simulateduiwidgetXLITE.ui
simulateduiwidgetX9E.ui
simulateduiwidgetX9D2019.ui
simulateduiwidgetX10.ui
simulateduiwidgetX12.ui
simulateduiwidgetJumperT12.ui
simulateduiwidgetJumperT16.ui
simulatormainwindow.ui
simulatorstartupdialog.ui
simulatorwidget.ui
@@ -108,9 +108,11 @@ namespace Ui {
class SimulatedUIWidgetX9;
class SimulatedUIWidgetXLITE;
class SimulatedUIWidgetX9E;
class SimulatedUIWidgetX9D2019;
class SimulatedUIWidgetX10;
class SimulatedUIWidgetX12;
class SimulatedUIWidgetJumperT12;
class SimulatedUIWidgetJumperT16;
}
class SimulatedUIWidget9X: public SimulatedUIWidget
@@ -189,6 +191,18 @@ class SimulatedUIWidgetX9E: public SimulatedUIWidget
Ui::SimulatedUIWidgetX9E * ui;
};
class SimulatedUIWidgetX9D2019: public SimulatedUIWidget
{
Q_OBJECT
public:
explicit SimulatedUIWidgetX9D2019(SimulatorInterface * simulator, QWidget * parent = nullptr);
virtual ~SimulatedUIWidgetX9D2019();
private:
Ui::SimulatedUIWidgetX9D2019 * ui;
};
class SimulatedUIWidgetX10: public SimulatedUIWidget
{
Q_OBJECT
@@ -225,4 +239,17 @@ class SimulatedUIWidgetJumperT12: public SimulatedUIWidget
Ui::SimulatedUIWidgetJumperT12 * ui;
};
class SimulatedUIWidgetJumperT16: public SimulatedUIWidget
{
Q_OBJECT
public:
explicit SimulatedUIWidgetJumperT16(SimulatorInterface * simulator, QWidget * parent = nullptr);
virtual ~SimulatedUIWidgetJumperT16();
private:
Ui::SimulatedUIWidgetJumperT16 * ui;
};
#endif // SIMULATEDUIWIDGET_H
@@ -8,7 +8,6 @@ SimulatedUIWidgetJumperT12::SimulatedUIWidgetJumperT12(SimulatorInterface *simul
ui(new Ui::SimulatedUIWidgetJumperT12)
{
RadioUiAction * act;
QPolygon polygon;
ui->setupUi(this);
@@ -0,0 +1,69 @@
/*
* Copyright (C) OpenTX
*
* Based on code named
* 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.
*/
// NOTE: RadioUiAction(NUMBER,...): NUMBER relates to enum EnumKeys in the specific board.h
#include "simulateduiwidget.h"
#include "ui_simulateduiwidgetJumperT16.h"
SimulatedUIWidgetJumperT16::SimulatedUIWidgetJumperT16(SimulatorInterface *simulator, QWidget * parent):
SimulatedUIWidget(simulator, parent),
ui(new Ui::SimulatedUIWidgetJumperT16)
{
RadioUiAction * act;
ui->setupUi(this);
// add actions in order of appearance on the help menu
act = new RadioUiAction(3, QList<int>() << Qt::Key_Up, SIMU_STR_HLP_KEY_UP, SIMU_STR_HLP_ACT_MDL);
addRadioWidget(ui->leftbuttons->addArea(QRect(10, 70, 80, 35), "JumperT16/left_mdl.png", act));
act = new RadioUiAction(6, QList<int>() << Qt::Key_Left, SIMU_STR_HLP_KEY_LFT, SIMU_STR_HLP_ACT_SYS);
addRadioWidget(ui->leftbuttons->addArea(QRect(10, 10, 80, 35), "JumperT16/left_sys.png", act));
act = new RadioUiAction(5, QList<int>() << Qt::Key_Right, SIMU_STR_HLP_KEY_RGT, SIMU_STR_HLP_ACT_TELE);
addRadioWidget(ui->leftbuttons->addArea(QRect(10, 190, 80, 35), "JumperT16/left_tele.png", act));
act = new RadioUiAction(4, QList<int>() << Qt::Key_Down << Qt::Key_Delete << Qt::Key_Escape << Qt::Key_Backspace,
SIMU_STR_HLP_KEY_DN % "<br>" % SIMU_STR_HLP_KEYS_EXIT, SIMU_STR_HLP_ACT_RTN);
addRadioWidget(ui->rightbuttons->addArea(QRect(35, 10, 80, 35), "JumperT16/right_rtn.png", act));
act = new RadioUiAction(1, QList<int>() << Qt::Key_PageDown, SIMU_STR_HLP_KEY_PGDN, SIMU_STR_HLP_ACT_PGDN);
addRadioWidget(ui->leftbuttons->addArea(QRect(10, 131, 80, 35), "JumperT16/left_page.png", act));
m_scrollUpAction = new RadioUiAction(-1, QList<int>() << Qt::Key_Minus, SIMU_STR_HLP_KEY_MIN % "|" % SIMU_STR_HLP_MOUSE_UP, SIMU_STR_HLP_ACT_ROT_LFT);
m_scrollDnAction = new RadioUiAction(-1, QList<int>() << Qt::Key_Plus << Qt::Key_Equal, SIMU_STR_HLP_KEY_PLS % "|" % SIMU_STR_HLP_MOUSE_DN, SIMU_STR_HLP_ACT_ROT_RGT);
connectScrollActions();
m_mouseMidClickAction = new RadioUiAction(2, QList<int>() << Qt::Key_Enter << Qt::Key_Return, SIMU_STR_HLP_KEYS_ACTIVATE, SIMU_STR_HLP_ACT_ROT_DN);
addRadioWidget(ui->rightbuttons->addArea(QRect(45, 70, 100, 160), "JumperT16/right_ent.png", m_mouseMidClickAction));
addRadioWidget(ui->leftbuttons->addArea(QRect(10, 252, 30, 30), "JumperT16/left_scrnsht.png", m_screenshotAction));
m_backlightColors << QColor(47, 123, 227);
setLcd(ui->lcd);
}
SimulatedUIWidgetJumperT16::~SimulatedUIWidgetJumperT16()
{
delete ui;
}
@@ -0,0 +1,197 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>SimulatedUIWidgetJumperT16</class>
<widget class="QWidget" name="SimulatedUIWidgetJumperT16">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>825</width>
<height>292</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>825</width>
<height>292</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>825</width>
<height>292</height>
</size>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="2" rowspan="3">
<widget class="ButtonsWidget" name="rightbuttons" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>174</width>
<height>292</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>174</width>
<height>292</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background:url(:/images/simulator/JumperT16/right.png)</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="LcdWidget" name="lcd" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>480</width>
<height>272</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>480</width>
<height>272</height>
</size>
</property>
<property name="font">
<font>
<pointsize>5</pointsize>
</font>
</property>
</widget>
</item>
<item row="0" column="0" rowspan="3">
<widget class="ButtonsWidget" name="leftbuttons" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>174</width>
<height>292</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>174</width>
<height>292</height>
</size>
</property>
<property name="mouseTracking">
<bool>true</bool>
</property>
<property name="styleSheet">
<string notr="true">background:url(:/images/simulator/JumperT16/left.png);</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QWidget" name="top" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>480</width>
<height>10</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>480</width>
<height>10</height>
</size>
</property>
<property name="font">
<font>
<pointsize>5</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background:url(:/images/simulator/JumperT16/top.png)</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QWidget" name="bottom" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>480</width>
<height>10</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>480</width>
<height>10</height>
</size>
</property>
<property name="font">
<font>
<pointsize>5</pointsize>
<kerning>false</kerning>
</font>
</property>
<property name="styleSheet">
<string notr="true">background:url(:/images/simulator/JumperT16/bottom.png)</string>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>LcdWidget</class>
<extends>QWidget</extends>
<header>lcdwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>ButtonsWidget</class>
<extends>QWidget</extends>
<header>buttonswidget.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
@@ -0,0 +1,83 @@
/*
* Copyright (C) OpenTX
*
* Based on code named
* 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.
*/
// NOTE: RadioUiAction(NUMBER,...): NUMBER relates to enum EnumKeys in the specific board.h
#include "simulateduiwidget.h"
#include "ui_simulateduiwidgetX9D2019.h"
SimulatedUIWidgetX9D2019::SimulatedUIWidgetX9D2019(SimulatorInterface *simulator, QWidget * parent):
SimulatedUIWidget(simulator, parent),
ui(new Ui::SimulatedUIWidgetX9D2019)
{
RadioUiAction * act;
ui->setupUi(this);
// add actions in order of appearance on the help menu
QPoint ctr(70, 100);
act = new RadioUiAction(0, QList<int>() << Qt::Key_Up << Qt::Key_PageUp, SIMU_STR_HLP_KEYS_GO_UP, SIMU_STR_HLP_ACT_MENU);
addRadioWidget(ui->leftbuttons->addArea(QRect(25, 40, 80, 35), "X9D2019/left_menu.png", act));
act = new RadioUiAction(3, QList<int>() << Qt::Key_Down << Qt::Key_PageDown, SIMU_STR_HLP_KEYS_GO_DN, SIMU_STR_HLP_ACT_PAGE);
addRadioWidget(ui->leftbuttons->addArea(QRect(25, 85, 80, 35), "X9D2019/left_page.png", act));
act = new RadioUiAction(1, QList<int>() << Qt::Key_Delete << Qt::Key_Escape << Qt::Key_Backspace, SIMU_STR_HLP_KEYS_EXIT, SIMU_STR_HLP_ACT_EXIT);
addRadioWidget(ui->leftbuttons->addArea(QRect(25, 140, 80, 35), "X9D2019/left_exit.png", act));
m_scrollUpAction = addRadioAction(new RadioUiAction(-1, QList<int>() << Qt::Key_Minus << Qt::Key_Left, SIMU_STR_HLP_KEYS_GO_LFT, SIMU_STR_HLP_ACT_ROT_LFT));
m_scrollDnAction = addRadioAction(new RadioUiAction(-1, QList<int>() << Qt::Key_Plus << Qt::Key_Equal << Qt::Key_Right, SIMU_STR_HLP_KEYS_GO_RGT, SIMU_STR_HLP_ACT_ROT_RGT));
connectScrollActions();
m_mouseMidClickAction = new RadioUiAction(2, QList<int>() << Qt::Key_Enter << Qt::Key_Return, SIMU_STR_HLP_KEYS_ACTIVATE, SIMU_STR_HLP_ACT_ROT_DN);
addRadioWidget(ui->rightbuttons->addArea(QRect(40, 30, 80, 130), "X9D2019/right_enter.png", m_mouseMidClickAction));
addRadioWidget(ui->leftbuttons->addArea(QRect(10, 170, 30, 30), "X9D2019/left_scrnshot.png", m_screenshotAction));
m_backlightColors << QColor(47, 123, 227); // Taranis Blue
m_backlightColors << QColor(166,247,159);
m_backlightColors << QColor(247,159,166);
m_backlightColors << QColor(255,195,151);
m_backlightColors << QColor(247,242,159);
setLcd(ui->lcd);
QString css = "#radioUiWidget {"
"background-color: qlineargradient(spread:pad, x1:1, y1:0.9, x2:0, y2:0,"
"stop:0 rgba(255, 255, 255, 255),"
"stop:0.35 rgba(250, 250, 250, 255), stop:0.5 rgba(242, 241, 241, 255),"
"stop:0.61 rgba(241, 241, 241, 255), stop:1.0 rgba(251, 251, 251, 255));"
"}";
QTimer * tim = new QTimer(this);
tim->setSingleShot(true);
connect(tim, &QTimer::timeout, [this, css]() {
emit customStyleRequest(css);
});
tim->start(100);
}
SimulatedUIWidgetX9D2019::~SimulatedUIWidgetX9D2019()
{
delete ui;
}
@@ -0,0 +1,166 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>SimulatedUIWidgetX9D2019</class>
<widget class="QWidget" name="SimulatedUIWidgetX9D2019">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>756</width>
<height>258</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>756</width>
<height>258</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>756</width>
<height>258</height>
</size>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="0" rowspan="3">
<widget class="ButtonsWidget" name="leftbuttons" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>166</width>
<height>258</height>
</size>
</property>
<property name="mouseTracking">
<bool>true</bool>
</property>
<property name="styleSheet">
<string notr="true">background:url(:/images/simulator/X9D2019/left.png);</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QWidget" name="top" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>424</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background:url(:/images/simulator/X9D2019/top.png)</string>
</property>
</widget>
</item>
<item row="0" column="2" rowspan="3">
<widget class="ButtonsWidget" name="rightbuttons" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>166</width>
<height>258</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background:url(:/images/simulator/X9D2019/right.png)</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="LcdWidget" name="lcd" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>424</width>
<height>128</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>424</width>
<height>128</height>
</size>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QWidget" name="bottom" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>424</width>
<height>80</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background:url(:/images/simulator/X9D2019/bottom.png)</string>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>LcdWidget</class>
<extends>QWidget</extends>
<header>lcdwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>ButtonsWidget</class>
<extends>QWidget</extends>
<header>buttonswidget.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
@@ -8,24 +8,21 @@ SimulatedUIWidgetX9LITE::SimulatedUIWidgetX9LITE(SimulatorInterface *simulator,
ui(new Ui::SimulatedUIWidgetX9LITE)
{
RadioUiAction * act;
QPolygon polygon;
ui->setupUi(this);
// add actions in order of appearance on the help menu
QPoint ctr(70, 91);
polygon << polyArc(ctr.x(), ctr.y(), 50, -90, 90) << polyArc(ctr.x(), ctr.y(), 22, -90, 90);
act = new RadioUiAction(0, QList<int>() << Qt::Key_PageUp << Qt::Key_Up, SIMU_STR_HLP_KEYS_GO_UP, SIMU_STR_HLP_ACT_MENU_ICN);
addRadioWidget(ui->leftbuttons->addArea(polyArc(ctr.x(), ctr.y(), 20), "X9LITE/left_menu.png", act));
addRadioWidget(ui->leftbuttons->addArea(QRect(80, 20, 40, 35), "X9LITE/left_menu.png", act));
act = new RadioUiAction(3, QList<int>() << Qt::Key_PageDown << Qt::Key_Down, SIMU_STR_HLP_KEYS_GO_DN, SIMU_STR_HLP_ACT_PAGE);
addRadioWidget(ui->leftbuttons->addArea(polygon, "X9LITE/left_page.png", act));
addRadioWidget(ui->leftbuttons->addArea(QRect(80, 65, 40, 35), "X9LITE/left_page.png", act));
polygon.clear();
polygon << polyArc(ctr.x(), ctr.y(), 50, 90, 270) << polyArc(ctr.x(), ctr.y(), 22, 90, 270);
act = new RadioUiAction(1, QList<int>() << Qt::Key_Delete << Qt::Key_Escape << Qt::Key_Backspace, SIMU_STR_HLP_KEYS_EXIT, SIMU_STR_HLP_ACT_EXIT);
addRadioWidget(ui->leftbuttons->addArea(polygon, "X9LITE/left_exit.png", act));
addRadioWidget(ui->leftbuttons->addArea(QRect(80, 130, 40, 35), "X9LITE/left_exit.png", act));
m_scrollUpAction = new RadioUiAction(-1, QList<int>() << Qt::Key_Minus << Qt::Key_Equal << Qt::Key_Left, SIMU_STR_HLP_KEYS_GO_LFT, SIMU_STR_HLP_ACT_ROT_LFT);
m_scrollDnAction = new RadioUiAction(-1, QList<int>() << Qt::Key_Plus << Qt::Key_Right, SIMU_STR_HLP_KEYS_GO_RGT, SIMU_STR_HLP_ACT_ROT_RGT);
@@ -34,7 +31,7 @@ SimulatedUIWidgetX9LITE::SimulatedUIWidgetX9LITE(SimulatorInterface *simulator,
m_mouseMidClickAction = new RadioUiAction(2, QList<int>() << Qt::Key_Enter << Qt::Key_Return, SIMU_STR_HLP_KEYS_ACTIVATE, SIMU_STR_HLP_ACT_ROT_DN);
addRadioWidget(ui->rightbuttons->addArea(polyArc(88, 92, 33), "X9LITE/right_ent.png", m_mouseMidClickAction));
addRadioWidget(ui->leftbuttons->addArea(QRect(9, 154, 30, 30), "X9LITE/left_scrnshot.png", m_screenshotAction));
addRadioWidget(ui->leftbuttons->addArea(QRect(30, 154, 30, 30), "X9LITE/left_scrnshot.png", m_screenshotAction));
m_backlightColors << QColor(215, 243, 255); // X9LITE Blue
m_backlightColors << QColor(166,247,159);
@@ -45,10 +42,10 @@ SimulatedUIWidgetX9LITE::SimulatedUIWidgetX9LITE(SimulatorInterface *simulator,
setLcd(ui->lcd);
QString css = "#radioUiWidget {"
"background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:1,"
"stop:0 rgba(255, 255, 255, 255),"
"stop:0.757062 rgba(241, 238, 238, 255),"
"stop:1 rgba(247, 245, 245, 255));"
"background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:1,"
"stop:0 rgba(255, 255, 255, 255),"
"stop:0.757062 rgba(241, 238, 238, 255),"
"stop:1 rgba(247, 245, 245, 255));"
"}";
QTimer * tim = new QTimer(this);
@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>570</width>
<width>650</width>
<height>208</height>
</rect>
</property>
@@ -18,14 +18,14 @@
</property>
<property name="minimumSize">
<size>
<width>570</width>
<height>208</height>
<width>603</width>
<height>235</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>570</width>
<height>208</height>
<width>603</width>
<height>240</height>
</size>
</property>
<property name="windowTitle">
@@ -60,14 +60,14 @@
</property>
<property name="minimumSize">
<size>
<width>157</width>
<height>186</height>
<width>173</width>
<height>210</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>157</width>
<height>186</height>
<width>173</width>
<height>210</height>
</size>
</property>
<property name="styleSheet">
@@ -85,14 +85,14 @@
</property>
<property name="minimumSize">
<size>
<width>256</width>
<height>128</height>
<width>602</width>
<height>129</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>424</width>
<height>128</height>
<width>602</width>
<height>129</height>
</size>
</property>
<property name="styleSheet">
@@ -110,14 +110,14 @@
</property>
<property name="minimumSize">
<size>
<width>157</width>
<height>186</height>
<width>174</width>
<height>210</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>157</width>
<height>186</height>
<width>174</width>
<height>210</height>
</size>
</property>
<property name="styleSheet">
@@ -135,14 +135,14 @@
</property>
<property name="minimumSize">
<size>
<width>256</width>
<height>48</height>
<width>258</width>
<height>35</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>256</width>
<height>48</height>
<width>258</width>
<height>35</height>
</size>
</property>
<property name="styleSheet">
@@ -160,14 +160,14 @@
</property>
<property name="minimumSize">
<size>
<width>256</width>
<height>10</height>
<width>258</width>
<height>46</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>256</width>
<height>10</height>
<width>258</width>
<height>46</height>
</size>
</property>
<property name="styleSheet">
@@ -86,7 +86,7 @@ void SimulatorStartupDialog::changeEvent(QEvent *e)
// FIXME : need a better way to check for this
bool SimulatorStartupDialog::usesCategorizedStorage(const QString & name)
{
return name.contains(QRegExp("(x12|x10|horus)", Qt::CaseInsensitive));
return name.contains(QRegExp("(x12|x10|horus|t16)", Qt::CaseInsensitive));
}
bool SimulatorStartupDialog::usesCategorizedStorage()
+8 -2
View File
@@ -60,6 +60,7 @@ SimulatorWidget::SimulatorWidget(QWidget * parent, SimulatorInterface * simulato
switch(m_board) {
case Board::BOARD_TARANIS_X9LITE:
case Board::BOARD_TARANIS_X9LITES:
radioUiWidget = new SimulatedUIWidgetX9LITE(simulator, this);
break;
case Board::BOARD_TARANIS_X7:
@@ -67,9 +68,11 @@ SimulatorWidget::SimulatorWidget(QWidget * parent, SimulatorInterface * simulato
break;
case Board::BOARD_TARANIS_X9D:
case Board::BOARD_TARANIS_X9DP:
case Board::BOARD_TARANIS_X9DP_2019:
radioUiWidget = new SimulatedUIWidgetX9(simulator, this);
break;
case Board::BOARD_TARANIS_X9DP_2019:
radioUiWidget = new SimulatedUIWidgetX9D2019(simulator, this);
break;
case Board::BOARD_TARANIS_XLITE:
case Board::BOARD_TARANIS_XLITES:
radioUiWidget = new SimulatedUIWidgetXLITE(simulator, this);
@@ -86,7 +89,10 @@ SimulatorWidget::SimulatorWidget(QWidget * parent, SimulatorInterface * simulato
break;
case Board::BOARD_JUMPER_T12:
radioUiWidget = new SimulatedUIWidgetJumperT12(simulator, this);
break;
break;
case Board::BOARD_JUMPER_T16:
radioUiWidget = new SimulatedUIWidgetJumperT16(simulator, this);
break;
default:
radioUiWidget = new SimulatedUIWidget9X(simulator, this);
break;
+7 -7
View File
@@ -42,7 +42,7 @@ TEST(Conversions, ConversionX9DPFrom22)
EXPECT_STREQ("Thr", model.inputNames[0]);
EXPECT_STREQ("Tes", model.sensorData[0].label);
EXPECT_EQ(10, model.sensorData[0].id);
EXPECT_EQ(9, model.sensorData[0].instance);
EXPECT_EQ(10, model.sensorData[0].instance);
EXPECT_EQ(RawSource(SOURCE_TYPE_TELEMETRY,0).toValue(), model.logicalSw[0].val1);
}
@@ -77,7 +77,7 @@ TEST(Conversions, ConversionX9DPFrom23)
EXPECT_STREQ("Rud", model1.inputNames[0]);
EXPECT_STREQ("Tes", model1.sensorData[0].label);
EXPECT_EQ(10, model1.sensorData[0].id);
EXPECT_EQ(10, model1.sensorData[0].instance);
EXPECT_EQ(11, model1.sensorData[0].instance);
EXPECT_EQ(RawSource(SOURCE_TYPE_TELEMETRY,0).toValue(), model1.logicalSw[0].val1);
const ModelData & model2 = radioData.models[1];
@@ -96,7 +96,7 @@ TEST(Conversions, ConversionX9DPFrom23)
EXPECT_STREQ("Rud", model2.inputNames[0]);
EXPECT_STREQ("Tes", model2.sensorData[0].label);
EXPECT_EQ(10, model2.sensorData[0].id);
EXPECT_EQ(10, model2.sensorData[0].instance);
EXPECT_EQ(11, model2.sensorData[0].instance);
EXPECT_EQ(RawSource(SOURCE_TYPE_TELEMETRY,0).toValue(), model2.logicalSw[0].val1);
}
@@ -130,7 +130,7 @@ TEST(Conversions, ConversionX7From22)
EXPECT_STREQ("Tes", model.sensorData[0].label);
EXPECT_EQ(10, model.sensorData[0].id);
EXPECT_EQ(9, model.sensorData[0].instance);
EXPECT_EQ(10, model.sensorData[0].instance);
EXPECT_EQ(900, model.limitData[0].max); // -100
EXPECT_EQ(10, model.flightModeData[0].gvars[0]);
@@ -178,7 +178,7 @@ TEST(Conversions, ConversionXLiteFrom22)
EXPECT_STREQ("Tes", model.sensorData[0].label);
EXPECT_EQ(10, model.sensorData[0].id);
EXPECT_EQ(8, model.sensorData[0].instance);
EXPECT_EQ(9, model.sensorData[0].instance);
EXPECT_EQ(900, model.limitData[0].max); // -100
EXPECT_EQ(LS_FN_VPOS, model.logicalSw[0].func);
@@ -284,7 +284,7 @@ TEST(Conversions, ConversionX10From22)
EXPECT_STREQ("Rud", model.inputNames[0]);
EXPECT_STREQ("Tes", model.sensorData[0].label);
EXPECT_EQ(10, model.sensorData[0].id);
EXPECT_EQ(9, model.sensorData[0].instance);
EXPECT_EQ(10, model.sensorData[0].instance);
EXPECT_EQ(5 + 2 + 3, model.thrTraceSrc); // CH3
}
@@ -360,6 +360,6 @@ TEST(Conversions, ConversionX12SFrom22)
EXPECT_STREQ("Rud", model.inputNames[0]);
EXPECT_STREQ("Tes", model.sensorData[0].label);
EXPECT_EQ(10, model.sensorData[0].id);
EXPECT_EQ(9, model.sensorData[0].instance);
EXPECT_EQ(10, model.sensorData[0].instance);
EXPECT_EQ(5 + 2 + 3, model.thrTraceSrc); // CH3
}
+55 -54
View File
@@ -68,17 +68,17 @@
<message>
<location filename="../storage/appdata.cpp" line="594"/>
<source>Could not save Application Settings to file &quot;%1&quot;</source>
<translation type="unfinished"></translation>
<translation>Nelze uložit nastavení aplikace do souboru &quot;%1&quot;</translation>
</message>
<message>
<location filename="../storage/appdata.cpp" line="596"/>
<source>because the file could not be saved (check access permissions).</source>
<translation type="unfinished"></translation>
<translation>protože soubor nemůže být uložen (zkontrolujte přístupová práva)</translation>
</message>
<message>
<location filename="../storage/appdata.cpp" line="598"/>
<source>for unknown reasons.</source>
<translation type="unfinished"></translation>
<translation>z neznámého důvodu.</translation>
</message>
</context>
<context>
@@ -86,7 +86,7 @@
<message>
<location filename="../warnings.h" line="95"/>
<source>Show this message again at next startup?</source>
<translation type="unfinished">Chcete zobrazit toto upozornění i příště ?</translation>
<translation>Zobrazit toto upozornění i při příštím spuštění?</translation>
</message>
</context>
<context>
@@ -710,7 +710,7 @@ Mode 4:
<location filename="../../../cmake-build-x12s/companion/src/ui_apppreferencesdialog.h" line="1078"/>
<location filename="../../../cmake-build-x9d-2019/companion/src/ui_apppreferencesdialog.h" line="1078"/>
<source>Release channel</source>
<translation type="unfinished"></translation>
<translation>Kanál vydání</translation>
</message>
<message>
<location filename="../apppreferencesdialog.ui" line="1143"/>
@@ -785,7 +785,7 @@ Mode 4:
<location filename="../../../cmake-build-x9-lite/companion/src/ui_apppreferencesdialog.h" line="982"/>
<location filename="../../../cmake-build-x9d-2019/companion/src/ui_apppreferencesdialog.h" line="989"/>
<source>Append version number to FW file name</source>
<translation>Přidat číslo verze do názvu souboru staženého firmwaru </translation>
<translation>Přidat číslo verze do názvu souboru staženého firmwaru</translation>
</message>
<message>
<location filename="../apppreferencesdialog.ui" line="190"/>
@@ -797,7 +797,7 @@ Mode 4:
<location filename="../../../cmake-build-x9-lite/companion/src/ui_apppreferencesdialog.h" line="952"/>
<location filename="../../../cmake-build-x9d-2019/companion/src/ui_apppreferencesdialog.h" line="959"/>
<source>Offer to write FW to Tx after download</source>
<translation>Po stažení firmwaru nabídnout okamžité zapsání do rádia </translation>
<translation>Po stažení firmwaru nabídnout okamžité zapsání do rádia</translation>
</message>
<message>
<location filename="../apppreferencesdialog.ui" line="636"/>
@@ -1057,7 +1057,7 @@ Mode 4:
<location filename="../../../cmake-build-x9-lite/companion/src/ui_apppreferencesdialog.h" line="1041"/>
<location filename="../../../cmake-build-x9d-2019/companion/src/ui_apppreferencesdialog.h" line="1044"/>
<source>most recently used files</source>
<translation type="unfinished"></translation>
<translation>naposledny použité soubory</translation>
</message>
<message>
<location filename="../apppreferencesdialog.ui" line="776"/>
@@ -1069,7 +1069,7 @@ Mode 4:
<location filename="../../../cmake-build-x9-lite/companion/src/ui_apppreferencesdialog.h" line="1042"/>
<location filename="../../../cmake-build-x9d-2019/companion/src/ui_apppreferencesdialog.h" line="1045"/>
<source>Startup Settings</source>
<translation type="unfinished"></translation>
<translation>Nastavení zapnutí</translation>
</message>
<message>
<location filename="../apppreferencesdialog.ui" line="832"/>
@@ -1081,7 +1081,7 @@ Mode 4:
<location filename="../../../cmake-build-x9-lite/companion/src/ui_apppreferencesdialog.h" line="1045"/>
<location filename="../../../cmake-build-x9d-2019/companion/src/ui_apppreferencesdialog.h" line="1049"/>
<source>Remember</source>
<translation type="unfinished"></translation>
<translation>Zapamatovat</translation>
</message>
<message>
<location filename="../apppreferencesdialog.ui" line="913"/>
@@ -1093,7 +1093,7 @@ Mode 4:
<location filename="../../../cmake-build-x9-lite/companion/src/ui_apppreferencesdialog.h" line="1049"/>
<location filename="../../../cmake-build-x9d-2019/companion/src/ui_apppreferencesdialog.h" line="1056"/>
<source>Output Logs Folder</source>
<translation type="unfinished"></translation>
<translation>Výstupní složka pro záznamy</translation>
</message>
<message>
<location filename="../apppreferencesdialog.ui" line="900"/>
@@ -1141,7 +1141,7 @@ Mode 4:
<location filename="../../../cmake-build-x9-lite/companion/src/ui_apppreferencesdialog.h" line="1056"/>
<location filename="../../../cmake-build-x9d-2019/companion/src/ui_apppreferencesdialog.h" line="1060"/>
<source>Just create the model</source>
<translation>Jen vytvořit model</translation>
<translation>Pouze vytvořit model</translation>
</message>
<message>
<location filename="../apppreferencesdialog.ui" line="926"/>
@@ -1153,7 +1153,7 @@ Mode 4:
<location filename="../../../cmake-build-x9-lite/companion/src/ui_apppreferencesdialog.h" line="1058"/>
<location filename="../../../cmake-build-x9d-2019/companion/src/ui_apppreferencesdialog.h" line="1057"/>
<source>Debug Output Logging</source>
<translation type="unfinished"></translation>
<translation>Záznam pro režim ladění</translation>
</message>
<message>
<location filename="../apppreferencesdialog.ui" line="1107"/>
@@ -1177,7 +1177,7 @@ Mode 4:
<location filename="../../../cmake-build-x9-lite/companion/src/ui_apppreferencesdialog.h" line="1067"/>
<location filename="../../../cmake-build-x9d-2019/companion/src/ui_apppreferencesdialog.h" line="1073"/>
<source>Application (Companion/Simulator)</source>
<translation type="unfinished"></translation>
<translation>Použití (Companion/Simulátor)</translation>
</message>
<message>
<location filename="../apppreferencesdialog.ui" line="1117"/>
@@ -1201,7 +1201,7 @@ Mode 4:
<location filename="../../../cmake-build-x9-lite/companion/src/ui_apppreferencesdialog.h" line="1071"/>
<location filename="../../../cmake-build-x9d-2019/companion/src/ui_apppreferencesdialog.h" line="1077"/>
<source>Radio Firmware (in Simulator)</source>
<translation type="unfinished"></translation>
<translation>Firmware vysílače (v simulátoru)</translation>
</message>
<message>
<location filename="../apppreferencesdialog.ui" line="1213"/>
@@ -1273,7 +1273,7 @@ Mode 4:
<location filename="../../../cmake-build-x9-lite/companion/src/ui_apppreferencesdialog.h" line="1083"/>
<location filename="../../../cmake-build-x9d-2019/companion/src/ui_apppreferencesdialog.h" line="1091"/>
<source>Screenshot capture folder</source>
<translation type="unfinished"></translation>
<translation>Složka pro snímky obrazovky</translation>
</message>
<message>
<location filename="../apppreferencesdialog.ui" line="1309"/>
@@ -1285,7 +1285,7 @@ Mode 4:
<location filename="../../../cmake-build-x9-lite/companion/src/ui_apppreferencesdialog.h" line="1087"/>
<location filename="../../../cmake-build-x9d-2019/companion/src/ui_apppreferencesdialog.h" line="1095"/>
<source>Joystick</source>
<translation></translation>
<translation>Joystick</translation>
</message>
<message>
<location filename="../apppreferencesdialog.ui" line="1199"/>
@@ -1336,7 +1336,7 @@ Mode 4:
<message>
<location filename="../apppreferencesdialog.cpp" line="154"/>
<source>Select your snapshot folder</source>
<translation>Vyberat složku pro snímky obrazovky simulátoru</translation>
<translation>Vybrat složku pro snímky obrazovky simulátoru</translation>
</message>
<message>
<location filename="../apppreferencesdialog.cpp" line="181"/>
@@ -1378,7 +1378,7 @@ Mode 4:
<message>
<location filename="../apppreferencesdialog.cpp" line="341"/>
<source>Select a folder for application logs</source>
<translation type="unfinished"></translation>
<translation>Vybrat složku pro záznamy aplikace</translation>
</message>
<message>
<location filename="../apppreferencesdialog.cpp" line="349"/>
@@ -1388,7 +1388,7 @@ Mode 4:
<message>
<location filename="../apppreferencesdialog.cpp" line="392"/>
<source>Select the folder replicating your SD structure</source>
<translation>Vyberat složku která představuje obsah SD karty rádia</translation>
<translation>Vybrat složku, která představuje obsah SD karty rádia</translation>
</message>
<message>
<location filename="../apppreferencesdialog.cpp" line="423"/>
@@ -1431,30 +1431,31 @@ Mode 4:
<message>
<location filename="../storage/bineeprom.cpp" line="42"/>
<source>Error reading %1: %2</source>
<translation type="unfinished"></translation>
<translation>Chyba čtení %1: %2</translation>
</message>
<message>
<location filename="../storage/bineeprom.cpp" line="65"/>
<source>Cannot save EEPROM</source>
<translation type="unfinished"></translation>
<translation>Nelze uložit do EEPROM</translation>
</message>
<message>
<location filename="../storage/bineeprom.cpp" line="76"/>
<source>Cannot open file %1:
%2.</source>
<translation type="unfinished"></translation>
<translation>Nelze otevřít soubor %1:
%2</translation>
</message>
<message>
<location filename="../storage/bineeprom.cpp" line="83"/>
<source>Error writing file %1:
%2.</source>
<translation type="unfinished">Chyba při zápisu souboru %1:
<translation>Chyba při zápisu souboru %1:
%2.</translation>
</message>
<message>
<location filename="../storage/bineeprom.cpp" line="108"/>
<source>Invalid binary EEPROM file %1</source>
<translation type="unfinished"></translation>
<translation>Neplatný binární EEPROM soubor %1</translation>
</message>
</context>
<context>
@@ -1462,22 +1463,22 @@ Mode 4:
<message>
<location filename="../firmwares/boards.cpp" line="368"/>
<source>Left Horizontal</source>
<translation type="unfinished">Levá horizontální</translation>
<translation>Levá horizontální</translation>
</message>
<message>
<location filename="../firmwares/boards.cpp" line="369"/>
<source>Left Vertical</source>
<translation type="unfinished">Levá vertikální</translation>
<translation>Levá vertikální</translation>
</message>
<message>
<location filename="../firmwares/boards.cpp" line="370"/>
<source>Right Vertical</source>
<translation type="unfinished">Pravá vertikální</translation>
<translation>Pravá vertikální</translation>
</message>
<message>
<location filename="../firmwares/boards.cpp" line="371"/>
<source>Right Horizontal</source>
<translation type="unfinished">Pravá horizontální</translation>
<translation>Pravá horizontální</translation>
</message>
<message>
<location filename="../firmwares/boards.cpp" line="372"/>
@@ -1493,27 +1494,27 @@ Mode 4:
<location filename="../firmwares/boards.cpp" line="378"/>
<location filename="../firmwares/boards.cpp" line="521"/>
<source>Unknown</source>
<translation type="unfinished">Neznámý</translation>
<translation>Neznámý</translation>
</message>
<message>
<location filename="../firmwares/boards.cpp" line="388"/>
<source>Rud</source>
<translation type="unfinished">Směrovka</translation>
<translation>Směrovka</translation>
</message>
<message>
<location filename="../firmwares/boards.cpp" line="389"/>
<source>Ele</source>
<translation type="unfinished">Výškovka</translation>
<translation>Výškovka</translation>
</message>
<message>
<location filename="../firmwares/boards.cpp" line="390"/>
<source>Thr</source>
<translation type="unfinished">Plyn</translation>
<translation>Plyn</translation>
</message>
<message>
<location filename="../firmwares/boards.cpp" line="391"/>
<source>Ail</source>
<translation type="unfinished">Křidélka</translation>
<translation>Křidélka</translation>
</message>
</context>
<context>
@@ -1521,17 +1522,17 @@ Mode 4:
<message>
<location filename="../generaledit/calibration.cpp" line="44"/>
<source>Negative span</source>
<translation type="unfinished">Negativní</translation>
<translation>Záporný rozsah</translation>
</message>
<message>
<location filename="../generaledit/calibration.cpp" line="44"/>
<source>Mid value</source>
<translation type="unfinished">Střed</translation>
<translation>Střední hodnota</translation>
</message>
<message>
<location filename="../generaledit/calibration.cpp" line="44"/>
<source>Positive span</source>
<translation type="unfinished">Pozitivní</translation>
<translation>Kladný rozsah</translation>
</message>
</context>
<context>
@@ -1539,22 +1540,22 @@ Mode 4:
<message>
<location filename="../storage/categorized.cpp" line="28"/>
<source>Can&apos;t extract RADIO/radio.bin</source>
<translation type="unfinished"></translation>
<translation>Nelze rozbalit RADIO/radio.bin</translation>
</message>
<message>
<location filename="../storage/categorized.cpp" line="41"/>
<source>Can&apos;t extract RADIO/models.txt</source>
<translation type="unfinished"></translation>
<translation>Nelze rozbalit RADIO/models.txt</translation>
</message>
<message>
<location filename="../storage/categorized.cpp" line="85"/>
<source>Can&apos;t extract %1</source>
<translation type="unfinished"></translation>
<translation>Nelze rozbalit %1</translation>
</message>
<message>
<location filename="../storage/categorized.cpp" line="92"/>
<source>Error loading models</source>
<translation type="unfinished"></translation>
<translation>Chyba při načítání modelů</translation>
</message>
</context>
<context>
@@ -1567,17 +1568,17 @@ Mode 4:
<message>
<location filename="../modeledit/channels.cpp" line="111"/>
<source>Min</source>
<translation></translation>
<translation>Min</translation>
</message>
<message>
<location filename="../modeledit/channels.cpp" line="111"/>
<source>Max</source>
<translation></translation>
<translation>Max</translation>
</message>
<message>
<location filename="../modeledit/channels.cpp" line="111"/>
<source>Subtrim</source>
<translation></translation>
<translation>Subtrim</translation>
</message>
<message>
<location filename="../modeledit/channels.cpp" line="111"/>
@@ -2553,27 +2554,27 @@ Thomasi Hustererovi (th9x) a také Erazovi Ravivovi(er9x a eePe)</translation>
<message>
<location filename="../firmwares/customfunctiondata.cpp" line="71"/>
<source>Play Track</source>
<translation type="unfinished">Hrát stopu</translation>
<translation>Přehrát stopu</translation>
</message>
<message>
<location filename="../firmwares/customfunctiondata.cpp" line="73"/>
<source>Play Both</source>
<translation type="unfinished">Přehrát pár</translation>
<translation>Přehrát oboje</translation>
</message>
<message>
<location filename="../firmwares/customfunctiondata.cpp" line="75"/>
<source>Play Value</source>
<translation type="unfinished">Přehrát hodnotu</translation>
<translation>Přehrát hodnotu</translation>
</message>
<message>
<location filename="../firmwares/customfunctiondata.cpp" line="77"/>
<source>Play Script</source>
<translation type="unfinished">Spustit skript</translation>
<translation>Spustit skript</translation>
</message>
<message>
<location filename="../firmwares/customfunctiondata.cpp" line="79"/>
<source>SD Logs</source>
<translation type="unfinished">SD logy</translation>
<translation>SD záznamy</translation>
</message>
<message>
<location filename="../firmwares/customfunctiondata.cpp" line="81"/>
@@ -2583,27 +2584,27 @@ Thomasi Hustererovi (th9x) a také Erazovi Ravivovi(er9x a eePe)</translation>
<message>
<location filename="../firmwares/customfunctiondata.cpp" line="83"/>
<source>Backlight</source>
<translation type="unfinished">Podsvětlení</translation>
<translation>Podsvětlení</translation>
</message>
<message>
<location filename="../firmwares/customfunctiondata.cpp" line="85"/>
<source>Screenshot</source>
<translation type="unfinished">Snímek LCD</translation>
<translation>Snímek obrazovky</translation>
</message>
<message>
<location filename="../firmwares/customfunctiondata.cpp" line="87"/>
<source>Background Music</source>
<translation type="unfinished">Hudba na pozadí</translation>
<translation>Hudba na pozadí</translation>
</message>
<message>
<location filename="../firmwares/customfunctiondata.cpp" line="89"/>
<source>Background Music Pause</source>
<translation type="unfinished">Hudba na pozadí -pozastavit</translation>
<translation>Hudba na pozadí -pozastavit</translation>
</message>
<message>
<location filename="../firmwares/customfunctiondata.cpp" line="91"/>
<source>Adjust %1</source>
<translation type="unfinished"></translation>
<translation>Upravit %1</translation>
</message>
<message>
<location filename="../firmwares/customfunctiondata.cpp" line="93"/>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff