Skyward boardcore
|
#include <NAS.h>
Public Member Functions | |
NAS (const NASConfig &config) | |
void | predictAcc (const Eigen::Vector3f &acceleration) |
Prediction with accelerometer data. | |
void | predictAcc (const AccelerometerData &acceleration) |
Prediction with accelerometer data. | |
void | predictGyro (const Eigen::Vector3f &angularSpeed) |
Prediction with gyroscope data. | |
void | predictGyro (const GyroscopeData &angularSpeed) |
Prediction with gyroscope data. | |
void | correctBaro (const float pressure) |
Correction with barometer data. | |
void | correctGPS (const Eigen::Vector4f &gps) |
Correction with gps data. | |
void | correctGPS (const GPSData &gps) |
Correction with gps data only if fix is acquired. | |
void | correctMag (const Eigen::Vector3f &mag) |
Correction with magnetometer data. | |
void | correctMag (const MagnetometerData &mag) |
Correction with magnetometer data. | |
void | correctAcc (const Eigen::Vector3f &acc) |
Correction with accelerometer data. | |
void | correctAcc (const AccelerometerData &acc) |
Correction with accelerometer data. | |
void | correctPitot (const float staticPressure, const float dynamicPressure) |
Correction with pitot pressures. | |
NASState | getState () const |
Eigen::Matrix< float, 13, 1 > | getX () const |
void | setState (const NASState &state) |
void | setX (const Eigen::Matrix< float, 13, 1 > &x) |
void | setReferenceValues (const ReferenceValues &reference) |
Changes the reference values. | |
ReferenceValues | getReferenceValues () |
Returns the current reference values. | |
void | resetCovariance () |
Resets the covariance matrix to the initial state based on the configuration. | |
Static Public Attributes | |
static constexpr uint16_t | IDX_POS = 0 |
< Index of position elements in the state. | |
static constexpr uint16_t | IDX_VEL = 3 |
Index of quaternions elements in the state. | |
static constexpr uint16_t | IDX_QUAT = 6 |
Index of bias elements in the state. | |
static constexpr uint16_t | IDX_BIAS = 10 |
void Boardcore::NAS::correctAcc | ( | const AccelerometerData & | acc | ) |
void Boardcore::NAS::correctAcc | ( | const Eigen::Vector3f & | acc | ) |
Correction with accelerometer data.
u | Normalized vector with acceleration data [x y z][m/s^2]. |
void Boardcore::NAS::correctBaro | ( | const float | pressure | ) |
void Boardcore::NAS::correctGPS | ( | const Eigen::Vector4f & | gps | ) |
Correction with gps data.
gps | Vector of the gps readings [n e vn ve][m m m/s m/s]. |
void Boardcore::NAS::correctGPS | ( | const GPSData & | gps | ) |
void Boardcore::NAS::correctMag | ( | const Eigen::Vector3f & | mag | ) |
Correction with magnetometer data.
mag | Normalized vector of the magnetometer readings [x y z][uT]. |
void Boardcore::NAS::correctMag | ( | const MagnetometerData & | mag | ) |
void Boardcore::NAS::correctPitot | ( | const float | staticPressure, |
const float | dynamicPressure | ||
) |
Correction with pitot pressures.
staticPressure | Is the static pressure measured from the pitot sensor. |
dynamicPressure | Is the dynamic pressure measured from the pitot sensor (difference pressure between total pressure and static pressure). |
ReferenceValues Boardcore::NAS::getReferenceValues | ( | ) |
NASState Boardcore::NAS::getState | ( | ) | const |
Matrix< float, 13, 1 > Boardcore::NAS::getX | ( | ) | const |
void Boardcore::NAS::predictAcc | ( | const AccelerometerData & | acceleration | ) |
void Boardcore::NAS::predictAcc | ( | const Eigen::Vector3f & | acceleration | ) |
Prediction with accelerometer data.
acceleration | Vector with acceleration data [x y z][m/s^2]. |
void Boardcore::NAS::predictGyro | ( | const Eigen::Vector3f & | angularSpeed | ) |
Prediction with gyroscope data.
angularSpeed | Vector with angular velocity data [x y z][rad/s]. |
void Boardcore::NAS::predictGyro | ( | const GyroscopeData & | angularSpeed | ) |
void Boardcore::NAS::resetCovariance | ( | ) |
void Boardcore::NAS::setReferenceValues | ( | const ReferenceValues & | reference | ) |
void Boardcore::NAS::setState | ( | const NASState & | state | ) |
void Boardcore::NAS::setX | ( | const Eigen::Matrix< float, 13, 1 > & | x | ) |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |