Added Wizard option for flight timer.

This commit is contained in:
Kjell Kernen
2014-05-12 16:27:52 +02:00
parent 22697f9491
commit 9716fb04d2
7 changed files with 597 additions and 333 deletions
+12 -4
View File
@@ -117,12 +117,20 @@ WizMix::operator ModelData()
model.funcSw[switchIndex].param = -100;
}
// Add the Throttle Timer option
if (options[THROTTLE_TIMER_OPTION] && throttleChannel >=0 ){
model.timers[timerIndex].mode.type = SWITCH_TYPE_SWITCH;
model.timers[timerIndex].mode.index = isTaranis ? -SWITCH_SF0 : -SWITCH_THR; // Taranis !SF-UP, 9X THR-DOWN
// Add the Flight Timer option
if (options[FLIGHT_TIMER_OPTION] ){
model.timers[timerIndex].mode.type = SWITCH_TYPE_TIMER_MODE;
model.timers[timerIndex].mode.index = TMRMODE_THR_TRG;
timerIndex++;
}
// Add the Throttle Timer option
if (options[THROTTLE_TIMER_OPTION] && throttleChannel >=0){
model.timers[timerIndex].mode.type = SWITCH_TYPE_TIMER_MODE;
model.timers[timerIndex].mode.index = TMRMODE_THR;
timerIndex++;
}
return model;
}