Enable haptic fields for Taranis, add option for revisions < REVPLUS
This commit is contained in:
@@ -558,10 +558,7 @@ int OpenTxFirmware::getCapability(const Capability capability)
|
|||||||
case SoundPitch:
|
case SoundPitch:
|
||||||
return 1;
|
return 1;
|
||||||
case Haptic:
|
case Haptic:
|
||||||
if (IS_TARANIS(board))
|
return 1;
|
||||||
return 0;
|
|
||||||
else
|
|
||||||
return 1;
|
|
||||||
case ModelTrainerEnable:
|
case ModelTrainerEnable:
|
||||||
if (IS_TARANIS(board))
|
if (IS_TARANIS(board))
|
||||||
return 1;
|
return 1;
|
||||||
@@ -572,10 +569,7 @@ int OpenTxFirmware::getCapability(const Capability capability)
|
|||||||
return 1;
|
return 1;
|
||||||
case HapticLength:
|
case HapticLength:
|
||||||
case HapticMode:
|
case HapticMode:
|
||||||
if (IS_TARANIS(board))
|
return 1;
|
||||||
return 0;
|
|
||||||
else
|
|
||||||
return 1;
|
|
||||||
case Beeperlen:
|
case Beeperlen:
|
||||||
return 1;
|
return 1;
|
||||||
case MaxVolume:
|
case MaxVolume:
|
||||||
@@ -1218,6 +1212,7 @@ void registerOpenTxFirmwares()
|
|||||||
openTx->addOption("noheli", QObject::tr("Disable HELI menu and cyclic mix support"));
|
openTx->addOption("noheli", QObject::tr("Disable HELI menu and cyclic mix support"));
|
||||||
openTx->addOption("notemplates", QObject::tr("Disable TEMPLATES menu"));
|
openTx->addOption("notemplates", QObject::tr("Disable TEMPLATES menu"));
|
||||||
openTx->addOption("nogvars", QObject::tr("Disable Global variables"));
|
openTx->addOption("nogvars", QObject::tr("Disable Global variables"));
|
||||||
|
openTx->addOption("haptic", QObject::tr("Haptic module installed"));
|
||||||
openTx->addOption("ppmus", QObject::tr("Channel values displayed in us"));
|
openTx->addOption("ppmus", QObject::tr("Channel values displayed in us"));
|
||||||
openTx->addOption("sqt5font", QObject::tr("Use alternative SQT5 font"));
|
openTx->addOption("sqt5font", QObject::tr("Use alternative SQT5 font"));
|
||||||
openTx->addOptions(fai_options);
|
openTx->addOptions(fai_options);
|
||||||
@@ -1228,6 +1223,7 @@ void registerOpenTxFirmwares()
|
|||||||
openTx->addOption("noheli", QObject::tr("Disable HELI menu and cyclic mix support"));
|
openTx->addOption("noheli", QObject::tr("Disable HELI menu and cyclic mix support"));
|
||||||
openTx->addOption("notemplates", QObject::tr("Disable TEMPLATES menu"));
|
openTx->addOption("notemplates", QObject::tr("Disable TEMPLATES menu"));
|
||||||
openTx->addOption("nogvars", QObject::tr("Disable Global variables"));
|
openTx->addOption("nogvars", QObject::tr("Disable Global variables"));
|
||||||
|
openTx->addOption("haptic", QObject::tr("Haptic module installed"));
|
||||||
openTx->addOption("ppmus", QObject::tr("Channel values displayed in us"));
|
openTx->addOption("ppmus", QObject::tr("Channel values displayed in us"));
|
||||||
openTx->addOption("sqt5font", QObject::tr("Use alternative SQT5 font"));
|
openTx->addOption("sqt5font", QObject::tr("Use alternative SQT5 font"));
|
||||||
openTx->addOptions(fai_options);
|
openTx->addOptions(fai_options);
|
||||||
|
|||||||
Reference in New Issue
Block a user