Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
#include "nps_sensor_mag.h"
#include "generated/airframe.h"
#include "nps_fdm.h"
#include <NPS_SENSORS_PARAMS>
#include "math/pprz_algebra_int.h"
Go to the source code of this file.
Functions | |
void | nps_sensor_mag_init (struct NpsSensorMag *mag, double time) |
void | nps_sensor_mag_run_step (struct NpsSensorMag *mag, double time, struct DoubleRMat *body_to_imu) |
void nps_sensor_mag_init | ( | struct NpsSensorMag * | mag, |
double | time | ||
) |
Definition at line 8 of file nps_sensor_mag.c.
References NpsSensorMag::data_available, double_rmat_of_eulers(), FALSE, FLOAT_MAT33_DIAG, NpsSensorMag::imu_to_sensor_rmat, NpsSensorMag::max, NpsSensorMag::min, NpsSensorMag::neutral, NpsSensorMag::next_update, NpsSensorMag::noise_std_dev, NpsSensorMag::sensitivity, NpsSensorMag::value, and VECT3_ASSIGN.
Referenced by nps_sensors_init().
void nps_sensor_mag_run_step | ( | struct NpsSensorMag * | mag, |
double | time, | ||
struct DoubleRMat * | body_to_imu | ||
) |
Definition at line 26 of file nps_sensor_mag.c.
References NpsSensorMag::data_available, double_quat_vmult(), DOUBLE_VECT3_ROUND, fdm, NpsSensorMag::imu_to_sensor_rmat, NpsFdm::ltp_h, NpsFdm::ltp_to_body_quat, MAT33_VECT3_MUL, NpsSensorMag::max, NpsSensorMag::min, NpsSensorMag::neutral, NpsSensorMag::next_update, NpsSensorMag::sensitivity, TRUE, NpsSensorMag::value, VECT3_ADD, and VECT3_BOUND_CUBE.
Referenced by nps_sensors_run_step().