![]() |
COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Quaternion Attitude. More...
#include <convertdef.h>
Public Member Functions | |
| json11::Json | to_json () const |
| Convert class contents to JSON object. More... | |
| void | from_json (const string &js) |
| Set class contents from JSON string. More... | |
Public Attributes | |
| double | utc = 0. |
| quaternion | s |
| 0th derivative: Quaternion More... | |
| rvector | v |
| 1st derivative: Omega - angular velocity More... | |
| rvector | a |
| 2nd derivative: Alpha - acceleration More... | |
| uint32_t | pass = 0 |
| pass indicator: allows synchronization with other attitude and position values. More... | |
Quaternion Attitude.
Full attitude structure (0th, 1st and 2nd derivative), using a Quaternion to present the 0th derivative.
|
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 |
| double qatt::utc = 0. |
| quaternion qatt::s |
0th derivative: Quaternion
| rvector qatt::v |
1st derivative: Omega - angular velocity
| rvector qatt::a |
2nd derivative: Alpha - acceleration
| uint32_t qatt::pass = 0 |
pass indicator: allows synchronization with other attitude and position values.