![]() |
COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Star Tracker (STT) Sructure. 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 |
| alignment quaternion More... | |
| quaternion | att |
| includes 0 and 1st order derivative More... | |
| rvector | omega |
| rvector | alpha |
| uint16_t | retcode = 0 |
| return code for More... | |
| uint32_t | status = 0 |
Star Tracker (STT) Sructure.
|
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 sttstruc::align |
alignment quaternion
| quaternion sttstruc::att |
includes 0 and 1st order derivative
| rvector sttstruc::omega |
| rvector sttstruc::alpha |
| uint16_t sttstruc::retcode = 0 |
return code for
| uint32_t sttstruc::status = 0 |