Skip to content
Snippets Groups Projects
Commit 50fc009d authored by C-Glick's avatar C-Glick
Browse files

Added small comments to structs

parent af9bf373
No related branches found
No related tags found
No related merge requests found
......@@ -160,11 +160,14 @@ typedef struct sensorData_s {
} sensorData_t;
typedef struct state_s {
attitude_t attitude; // deg (legacy CF2 body coordinate system, where pitch is inverted)
attitude_t attitude; // deg (legacy CF2 body
// coordinate system,
// where pitch is inverted)
quaternion_t attitudeQuaternion;
point_t position; // m
velocity_t velocity; // m/s
acc_t acc; // Gs (but acc.z without considering gravity)
acc_t acc; // Gs (but acc.z without
// considering gravity)
} state_t;
typedef struct control_s {
......@@ -186,11 +189,14 @@ typedef struct setpoint_s {
attitude_t attitude; // deg
attitude_t attitudeRate; // deg/s
quaternion_t attitudeQuaternion;
float thrust;
float thrust; // 0 - 60,000
point_t position; // m
velocity_t velocity; // m/s
acc_t acceleration; // m/s^2
bool velocity_body; // true if velocity is given in body frame; false if velocity is given in world frame
bool velocity_body; // true if velocity
//is given in body frame;
// false if velocity is
// given in world frame
struct {
stab_mode_t x;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment