Module: imu_sensor¶
Sensor model to simulate an IMU.
The module
PDF Description
contains further information on this module’s function,
how to run it, as well as testing.
The corruption types are outlined in this
PDF Description.
- 
class ImuSensor: public SysModel¶
- Public Functions - 
ImuSensor()¶
 - 
~ImuSensor()¶
 - 
void CrossInit()¶
 - 
void SelfInit()¶
 - 
void UpdateState(uint64_t CurrentSimNanos)¶
 - 
void readInputMessages()¶
 - 
void writeOutputMessages(uint64_t Clock)¶
 - 
void setBodyToPlatformDCM(double yaw, double pitch, double roll)¶
 - 
void computePlatformDR()¶
 - 
void computePlatformDV(uint64_t CurrentTime)¶
 - 
void applySensorErrors(uint64_t CurrentTime)¶
 - 
void applySensorDiscretization(uint64_t CurrentTime)¶
 - 
void applySensorSaturation(uint64_t CurrentTime)¶
 - 
void computeSensorErrors()¶
 - 
void scaleTruth()¶
 - 
void setLSBs(double LSBa, double LSBo)¶
 - 
void setCarryError(bool aCarry, bool oCarry)¶
 - 
void setRoundDirection(roundDirection_t aRound, roundDirection_t oRound)¶
 - Public Members - 
std::string InputStateMsg¶
- Message name for spacecraft state 
 - 
std::string OutputDataMsg¶
- Message name for CSS output data 
 - 
double senRotMax¶
- [m/s2] Translational acceleration sen bias 
 - 
double senTransMax¶
- [r/s] Gyro saturation value 
 - 
uint64_t OutputBufferCount¶
- [m/s2] Accelerometer saturation value 
 - 
bool NominalReady¶
- number of output msgs stored 
 - 
Eigen::Matrix3d PMatrixAccel¶
- Flag indicating that system is in run - [-] Cholesky-decomposition or matrix square root of the covariance matrix to apply errors with 
 - [-] Current navigation errors applied to truth 
 - 
Eigen::Matrix3d PMatrixGyro¶
- [-] Cholesky-decomposition or matrix square root of the covariance matrix to apply errors with 
 - [-] Current navigation errors applied to truth 
 - 
IMUSensorIntMsg trueValues¶
- [-] total measurement without perturbations 
 - 
IMUSensorIntMsg sensedValues¶
- [-] total measurement including perturbations 
 - 
Discretize aDisc¶
- (-) scale factors for acceleration axes 
 - 
Discretize oDisc¶
- (-) instance of discretization utility for linear acceleration 
 - Private Members - 
int64_t InputStateID¶
 - 
int64_t OutputDataID¶
- Connect to input time message 
 - 
uint64_t PreviousTime¶
- Connect to output CSS data 
 - 
int64_t numStates¶
- Timestamp from previous frame 
 - 
SCPlusStatesSimMsg StatePrevious¶
- Number of States for Gauss Markov Models 
 - 
SCPlusStatesSimMsg StateCurrent¶
- Previous state to delta in IMU 
 - 
GaussMarkov errorModelAccel¶
- Current SSBI-relative state 
 - 
GaussMarkov errorModelGyro¶
- !< [-] Gauss-markov error states 
 
-