Skip to content

Commit

Permalink
add more workspace variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mdb15106 committed Nov 11, 2020
1 parent 4067e5b commit 1be5865
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/workspace.hh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "mission_constants.hh"
#include "moding.hh"
#include "MPU6050.h" // MPU 6050 IMU Library
#include <Servo.h> // TODO: what's this?
#include "Wire.h" // Arduino library


Expand All @@ -30,12 +31,16 @@ class Workspace
// flight mode
Mode mode = STARTUP_STABLE;

// Thrust-Vector Controller (TVC)
Servo tvc_top; // TODO: add description
Servo tvc_x; // TODO: add description
Servo tvc_y; // TODO: add description

// state
float r_body[3] = {0.0, 0.0, 0.0}; // (m) position of the body frame origin TODO: define inertial frame
float v_body_wrt_inertial_in_inertial[3] = {0.0, 0.0, 0.0}; // (m/s) velocity of body frame origin wrt inertial frame, components resolved in inertial frame
float qr_body_wrt_inrt[4] = {1.0, 0.0, 0.0, 0.0}; // (--) right, scalar-first, Hamiltonian quaternion transforming body frame into inertial frame
float qr_inrt_wrt_body[4] = {1.0, 0.0, 0.0, 0.0}; // (--) right, scalar-first, Hamiltonian quaternion transforming inertial frame into body frame

};

#endif // __WORKSPACE_HH__

0 comments on commit 1be5865

Please sign in to comment.