Fixes #2451
This commit is contained in:
@@ -701,7 +701,10 @@ void CustomFunctionsPanel::populateFuncParamCB(QComboBox *b, uint function, unsi
|
|||||||
else if (function==FuncReset) {
|
else if (function==FuncReset) {
|
||||||
qs.append( QObject::tr("Timer1"));
|
qs.append( QObject::tr("Timer1"));
|
||||||
qs.append( QObject::tr("Timer2"));
|
qs.append( QObject::tr("Timer2"));
|
||||||
qs.append( QObject::tr("All"));
|
if (IS_ARM(firmware->getBoard())) {
|
||||||
|
qs.append( QObject::tr("Timer3"));
|
||||||
|
}
|
||||||
|
qs.append( QObject::tr("Flight"));
|
||||||
qs.append( QObject::tr("Telemetry"));
|
qs.append( QObject::tr("Telemetry"));
|
||||||
int reCount = firmware->getCapability(RotaryEncoders);
|
int reCount = firmware->getCapability(RotaryEncoders);
|
||||||
if (reCount == 1) {
|
if (reCount == 1) {
|
||||||
@@ -711,6 +714,14 @@ void CustomFunctionsPanel::populateFuncParamCB(QComboBox *b, uint function, unsi
|
|||||||
qs.append( QObject::tr("REa"));
|
qs.append( QObject::tr("REa"));
|
||||||
qs.append( QObject::tr("REb"));
|
qs.append( QObject::tr("REb"));
|
||||||
}
|
}
|
||||||
|
if (IS_ARM(firmware->getBoard())) {
|
||||||
|
for (int i=0; i<C9X_MAX_SENSORS; ++i) {
|
||||||
|
if (model->sensorData[i].isAvailable()) {
|
||||||
|
RawSource item = RawSource(SOURCE_TYPE_TELEMETRY, 3*i);
|
||||||
|
qs.append(item.toString(model));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
b->addItems(qs);
|
b->addItems(qs);
|
||||||
b->setCurrentIndex(value);
|
b->setCurrentIndex(value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user