New plce holder function in eeprominterface for importing wizard data. Need help from Bertrand since the format of the real mixes is mysterious.

This commit is contained in:
Kjell Kernen
2014-03-04 13:36:01 +01:00
parent 11565e05e9
commit b133a990f1
7 changed files with 121 additions and 87 deletions
+7 -14
View File
@@ -14,15 +14,13 @@
#ifndef WIZARDDATA_H
#define WIZARDDATA_H
#include <QObject>
#define MAX_CHANNELS 8
#define WIZ_MAX_CHANNELS 8
#define WIZ_MODEL_NAME_LENGTH 12
enum Input {NOINPUT, THROTTLE, RUDDER, ELEVATOR, AILERON, FLAP, AIRBREAK};
enum Vehicle {NOVEHICLE, PLANE, MULTICOPTER, HELICOPTER };
QString inputName(Input);
QString vehicleName(Input);
class Channel
{
public:
@@ -33,23 +31,18 @@ public:
int weight2;
Channel();
bool isEmpty();
void clear();
QString toString();
};
class Mix:QObject
class WizMix
{
Q_OBJECT
public:
bool complete;
QString name;
char name[WIZ_MODEL_NAME_LENGTH + 1];
Vehicle vehicle;
Channel channel[MAX_CHANNELS];
Channel channel[WIZ_MAX_CHANNELS];
Mix();
QString toString();
WizMix();
};
#endif // WIZARDDATA_H