Added Wizard GUI for two model options ( Throttle Cut and Throttle Timer).

The wizard option data is not yet added to the mixer. That is the next step.
This commit is contained in:
Kjell Kernen
2014-04-27 22:47:18 +02:00
parent 3980f42b3d
commit 8781b522d8
5 changed files with 63 additions and 9 deletions
+8 -1
View File
@@ -18,7 +18,7 @@
#include "eeprominterface.h"
#define WIZ_MAX_CHANNELS 8
#define WIZ_MAX_OPTIONS 2
// TODO use a constant common to the whole companion
// TODO when in the wizard use the getCapacity(...) to know how long the name can be
#define WIZ_MODEL_NAME_LENGTH 12
@@ -40,6 +40,11 @@ enum Vehicle {
HELICOPTER
};
enum Options {
THROTTLE_CUT,
THROTTLE_TIMER
};
enum WizardPage {
Page_None = -1,
Page_Models,
@@ -60,6 +65,7 @@ enum WizardPage {
Page_Fblheli,
Page_Helictrl,
Page_Multirotor,
Page_Options,
Page_Conclusion
};
@@ -86,6 +92,7 @@ class WizMix
const GeneralSettings & settings;
Vehicle vehicle;
Channel channel[WIZ_MAX_CHANNELS];
bool options[WIZ_MAX_OPTIONS];
WizMix(const GeneralSettings & settings, const unsigned int modelId);
operator ModelData();