Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
Simulated sonar for NPS simulator. More...
#include "math/pprz_algebra.h"
#include "math/pprz_algebra_double.h"
#include "math/pprz_algebra_float.h"
#include "std.h"
Go to the source code of this file.
Data Structures | |
struct | NpsSensorSonar |
Functions | |
void | nps_sensor_sonar_init (struct NpsSensorSonar *sonar, double time) |
void | nps_sensor_sonar_run_step (struct NpsSensorSonar *sonar, double time) |
Simulated sonar for NPS simulator.
Definition in file nps_sensor_sonar.h.
struct NpsSensorSonar |
Definition at line 37 of file nps_sensor_sonar.h.
Data Fields | ||
---|---|---|
bool | data_available | |
double | next_update | |
double | noise_std_dev | noise standard deviation |
double | offset | offset in meters |
double | value | sonar reading in meters |
void nps_sensor_sonar_init | ( | struct NpsSensorSonar * | sonar, |
double | time | ||
) |
Definition at line 53 of file nps_sensor_sonar.c.
References NpsSensorSonar::data_available, FALSE, NpsSensorSonar::next_update, NpsSensorSonar::noise_std_dev, NPS_SONAR_NOISE_STD_DEV, NPS_SONAR_OFFSET, NpsSensorSonar::offset, and NpsSensorSonar::value.
Referenced by nps_sensors_init().
void nps_sensor_sonar_run_step | ( | struct NpsSensorSonar * | sonar, |
double | time | ||
) |
Definition at line 63 of file nps_sensor_sonar.c.
References NpsFdm::agl, NpsSensorSonar::data_available, fdm, get_gaussian_noise(), NpsSensorSonar::next_update, NpsSensorSonar::noise_std_dev, NPS_SONAR_DT, NpsSensorSonar::offset, TRUE, and NpsSensorSonar::value.
Referenced by nps_sensors_run_step().