COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
3 element attitude vector. More...
#include <vector.h>
Public Member Functions | |
avector () | |
avector (double th, double te, double tb) | |
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 | |
double | h = 0. |
Heading. More... | |
double | e = 0. |
Elevation. More... | |
double | b = 0. |
Bank. More... | |
3 element attitude vector.
Uses Tait-Bryan representation in a zyx, right handed order of rotation
|
inline |
|
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 avector::h = 0. |
Heading.
double avector::e = 0. |
Elevation.
double avector::b = 0. |
Bank.