mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
Flight/Attitude Minor change in field names and task priority
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@662 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
630c1325d8
commit
9be49ca54d
@ -52,7 +52,7 @@
|
||||
|
||||
// Private constants
|
||||
#define STACK_SIZE 200
|
||||
#define TASK_PRIORITY (tskIDLE_PRIORITY+2)
|
||||
#define TASK_PRIORITY (tskIDLE_PRIORITY+4)
|
||||
|
||||
// Private types
|
||||
|
||||
@ -101,9 +101,9 @@ static void attitudeTask(void* parameters)
|
||||
data.q3 += 7.0;
|
||||
data.q4 -= 2.321;
|
||||
|
||||
data.ex += 0.01;
|
||||
data.ey -= 0.03;
|
||||
data.ez += 0.05;
|
||||
data.Roll += 0.01;
|
||||
data.Pitch -= 0.03;
|
||||
data.Yaw += 0.05;
|
||||
|
||||
// Update the ExampleObject, after this function is called
|
||||
// notifications to any other modules listening to that object
|
||||
|
@ -79,10 +79,10 @@ static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.telemetryUpdatePeriod = 500;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
|
@ -33,7 +33,7 @@
|
||||
#define ATTITUDEACTUAL_H
|
||||
|
||||
// Object constants
|
||||
#define ATTITUDEACTUAL_OBJID 1949256792U
|
||||
#define ATTITUDEACTUAL_OBJID 1730350400U
|
||||
#define ATTITUDEACTUAL_NAME "AttitudeActual"
|
||||
#define ATTITUDEACTUAL_METANAME "AttitudeActualMeta"
|
||||
#define ATTITUDEACTUAL_ISSINGLEINST 1
|
||||
@ -62,9 +62,9 @@ typedef struct {
|
||||
float q2;
|
||||
float q3;
|
||||
float q4;
|
||||
float ex;
|
||||
float ey;
|
||||
float ez;
|
||||
float Roll;
|
||||
float Pitch;
|
||||
float Yaw;
|
||||
|
||||
} __attribute__((packed)) AttitudeActualData;
|
||||
|
||||
@ -74,9 +74,9 @@ typedef struct {
|
||||
// Field q2 information
|
||||
// Field q3 information
|
||||
// Field q4 information
|
||||
// Field ex information
|
||||
// Field ey information
|
||||
// Field ez information
|
||||
// Field Roll information
|
||||
// Field Pitch information
|
||||
// Field Yaw information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
|
Loading…
x
Reference in New Issue
Block a user