1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

GCS/Objects Updated systemalarms.xml

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@553 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
vassilis 2010-04-27 01:52:30 +00:00 committed by vassilis
parent 4d59a46ae4
commit d04983a6a5
12 changed files with 63 additions and 18 deletions

View File

@ -51,7 +51,17 @@ public:
} __attribute__((packed)) DataFields;
// Enumeration types
// Field information
// Field Field1 information
// Field Field2 information
// Field Field3 information
// Field Field4 information
/* Number of elements for field Field4 */
static const quint32 FIELD4_NUMELEM = 4;
// Field Field5 information
// Field Field6 information
// Field Field7 information
// Field Field8 information
/* Enumeration options for field Field8 */
typedef enum { FIELD8_OPTION1=0, FIELD8_OPTION2=1, } Field8Options;

View File

@ -47,7 +47,13 @@ public:
} __attribute__((packed)) DataFields;
// Enumeration types
// Field information
// Field Field1 information
// Field Field2 information
// Field Field3 information
// Field Field4 information
/* Number of elements for field Field4 */
static const quint32 FIELD4_NUMELEM = 4;
// Constants

View File

@ -46,7 +46,10 @@ public:
} __attribute__((packed)) DataFields;
// Enumeration types
// Field information
// Field UpdatePeriod information
// Field StepSize information
// Field StepDirection information
/* Enumeration options for field StepDirection */
typedef enum { STEPDIRECTION_UP=0, STEPDIRECTION_DOWN=1, } StepDirectionOptions;

View File

@ -49,9 +49,15 @@ public:
} __attribute__((packed)) DataFields;
// Enumeration types
// Field information
// Field Connected information
/* Enumeration options for field Connected */
typedef enum { CONNECTED_TRUE=0, CONNECTED_FALSE=1, } ConnectedOptions;
// Field TxDataRate information
// Field RxDataRate information
// Field TxFailures information
// Field RxFailures information
// Field TxRetries information
// Constants

View File

@ -49,9 +49,15 @@ public:
} __attribute__((packed)) DataFields;
// Enumeration types
// Field information
// Field Connected information
/* Enumeration options for field Connected */
typedef enum { CONNECTED_TRUE=0, CONNECTED_FALSE=1, } ConnectedOptions;
// Field TxDataRate information
// Field RxDataRate information
// Field TxFailures information
// Field RxFailures information
// Field TxRetries information
// Constants

View File

@ -48,7 +48,12 @@ public:
} __attribute__((packed)) DataFields;
// Enumeration types
// Field information
// Field Latitude information
// Field Longitude information
// Field Altitude information
// Field Satellites information
// Field Updates information
// Constants

View File

@ -44,7 +44,8 @@ public:
} __attribute__((packed)) DataFields;
// Enumeration types
// Field information
// Field Operation information
/* Enumeration options for field Operation */
typedef enum { OPERATION_LOAD=0, OPERATION_SAVE=1, } OperationOptions;

View File

@ -42,8 +42,10 @@ SystemAlarms::SystemAlarms(): UAVDataObject(OBJID, ISSINGLEINST, ISSETTINGS, NAM
AlarmElemNames.append("StackOverflow");
AlarmElemNames.append("CPUOverload");
AlarmElemNames.append("EventSystem");
AlarmElemNames.append("SDCard");
AlarmElemNames.append("Telemetry");
QStringList AlarmEnumOptions;
AlarmEnumOptions.append("None");
AlarmEnumOptions.append("OK");
AlarmEnumOptions.append("Warning");
AlarmEnumOptions.append("Error");
AlarmEnumOptions.append("Critical");

View File

@ -40,19 +40,22 @@ class UAVOBJECTS_EXPORT SystemAlarms: public UAVDataObject
public:
// Field structure
typedef struct {
quint8 Alarm[4];
quint8 Alarm[6];
} __attribute__((packed)) DataFields;
// Enumeration types
// Field information
// Field Alarm information
/* Enumeration options for field Alarm */
typedef enum { ALARM_NONE=0, ALARM_WARNING=1, ALARM_ERROR=2, ALARM_CRITICAL=3, } AlarmOptions;
typedef enum { ALARM_OK=0, ALARM_WARNING=1, ALARM_ERROR=2, ALARM_CRITICAL=3, } AlarmOptions;
/* Array element names for field Alarm */
typedef enum { ALARM_OUTOFMEMORY=0, ALARM_STACKOVERFLOW=1, ALARM_CPUOVERLOAD=2, ALARM_EVENTSYSTEM=3, } AlarmElem;
typedef enum { ALARM_OUTOFMEMORY=0, ALARM_STACKOVERFLOW=1, ALARM_CPUOVERLOAD=2, ALARM_EVENTSYSTEM=3, ALARM_SDCARD=4, ALARM_TELEMETRY=5, } AlarmElem;
/* Number of elements for field Alarm */
static const quint32 ALARM_NUMELEM = 6;
// Constants
static const quint32 OBJID = 2311311912U;
static const quint32 OBJID = 2311311458U;
static const QString NAME;
static const bool ISSINGLEINST = 1;
static const bool ISSETTINGS = 0;

View File

@ -46,7 +46,10 @@ public:
} __attribute__((packed)) DataFields;
// Enumeration types
// Field information
// Field FlightTime information
// Field HeapRemaining information
// Field CPULoad information
// Constants

View File

@ -43,8 +43,8 @@ public:
$(DATAFIELDS)
} __attribute__((packed)) DataFields;
// Enumeration types
$(DATAENUM)
// Field information
$(DATAFIELDINFO)
// Constants
static const quint32 OBJID = $(OBJID)U;

View File

@ -1,7 +1,7 @@
<xml>
<object name="SystemAlarms" singleinstance="true" settings="false">
<field name="Alarm" units="" type="enum" options="None,Warning,Error,Critical"
elementnames="OutOfMemory,StackOverflow,CPUOverload,EventSystem"/>
<field name="Alarm" units="" type="enum" options="OK,Warning,Error,Critical"
elementnames="OutOfMemory,StackOverflow,CPUOverload,EventSystem,SDCard,Telemetry"/>
<telemetrygcs acked="true" updatemode="onchange" period="0"/>
<telemetryflight acked="true" updatemode="periodic" period="4000"/>
<logging updatemode="periodic" period="1000"/>