This commit is contained in:
bsongis
2015-05-26 07:14:25 +02:00
parent 22f4c11bd9
commit 0c01f66272
15 changed files with 122 additions and 168 deletions
+7 -7
View File
@@ -316,7 +316,7 @@ class RawSource {
{
}
RawSource(int value):
explicit RawSource(int value):
type(RawSourceType(abs(value)/65536)),
index(value >= 0 ? abs(value)%65536 : -(abs(value)%65536))
{
@@ -333,7 +333,7 @@ class RawSource {
return index >= 0 ? (type * 65536 + index) : -(type * 65536 - index);
}
QString toString(const ModelData * model = NULL);
QString toString(const ModelData * model = NULL) const;
RawSourceRange getRange(const ModelData * model, const GeneralSettings & settings, unsigned int flags=0) const;
@@ -692,13 +692,13 @@ class FrSkyChannelData {
};
struct FrSkyBarData {
unsigned int source;
unsigned int barMin; // minimum for bar display
unsigned int barMax; // ditto for max display (would usually = ratio)
RawSource source;
unsigned int barMin; // minimum for bar display
unsigned int barMax; // ditto for max display (would usually = ratio)
};
struct FrSkyLineData {
unsigned int source[3];
RawSource source[3];
};
struct TelemetryScriptData {
@@ -716,7 +716,7 @@ class FrSkyScreenData {
public:
FrSkyScreenData() { clear(); }
typedef union {
typedef struct {
FrSkyBarData bars[4];
FrSkyLineData lines[4];
TelemetryScriptData script;