COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Reaction Wheel structure: z axis is aligned with axis of rotation. More...
#include <jsondef.h>
Public Member Functions | |
json11::Json | to_json () const |
Convert class contents to JSON object. More... | |
void | from_json (const string &s) |
Set class contents from JSON string. More... | |
Public Attributes | |
quaternion | align |
Rotates vectors from RW frame (axis of rotation = z) to body frame. More... | |
rvector | mom |
Moments of inertia in RW frame. More... | |
float | mxomg = 0.f |
Maximum omega in radians/second. More... | |
float | mxalp = 0.f |
Maximum alpha in radians/second/second. More... | |
float | tc = 0.f |
Acceleration Time Constant. More... | |
float | omg = 0.f |
Current angular velocity. More... | |
float | alp = 0.f |
Current angular acceleration. More... | |
float | romg = 0.f |
Requested angular velocity. More... | |
float | ralp = 0.f |
Requested angular acceleration. More... | |
Reaction Wheel structure: z axis is aligned with axis of rotation.
|
inline |
|
inline |
Set class contents from JSON string.
Parses the provided JSON-formatted string and sets the class data. String should be formatted like the string returned from to_json()
s | JSON-formatted string to set class contents to |
quaternion rwstruc::align |
Rotates vectors from RW frame (axis of rotation = z) to body frame.
rvector rwstruc::mom |
Moments of inertia in RW frame.
float rwstruc::mxomg = 0.f |
Maximum omega in radians/second.
float rwstruc::mxalp = 0.f |
Maximum alpha in radians/second/second.
float rwstruc::tc = 0.f |
Acceleration Time Constant.
float rwstruc::omg = 0.f |
Current angular velocity.
float rwstruc::alp = 0.f |
Current angular acceleration.
float rwstruc::romg = 0.f |
Requested angular velocity.
float rwstruc::ralp = 0.f |
Requested angular acceleration.