COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Inertial Measurement Unit (IMU) structure. 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... | |
rvector | accel |
Position acceleration vector. More... | |
quaternion | theta |
Attitude quaternion. More... | |
avector | euler |
Attitude Euler angles. More... | |
rvector | omega |
Attitude rate vector. More... | |
rvector | alpha |
Attitude acceleration vector. More... | |
rvector | mag |
Magnetic field in sensor frame. More... | |
rvector | bdot |
Magnetic field rate change in sensor frame. More... | |
Inertial Measurement Unit (IMU) structure.
|
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 imustruc::align |
alignment quaternion
rvector imustruc::accel |
Position acceleration vector.
quaternion imustruc::theta |
Attitude quaternion.
avector imustruc::euler |
Attitude Euler angles.
rvector imustruc::omega |
Attitude rate vector.
rvector imustruc::alpha |
Attitude acceleration vector.
rvector imustruc::mag |
Magnetic field in sensor frame.
rvector imustruc::bdot |
Magnetic field rate change in sensor frame.