31 #include "generated/airframe.h"
36 #include NPS_SENSORS_PARAMS
40 #define NPS_SONAR_DT 0.01
44 #ifndef NPS_SONAR_NOISE_STD_DEV
45 #define NPS_SONAR_NOISE_STD_DEV 0.01
48 #ifndef NPS_SONAR_OFFSET
49 #define NPS_SONAR_OFFSET 0
66 if (time < sonar->next_update) {
double noise_std_dev
noise standard deviation
struct NpsFdm fdm
Holds all necessary NPS FDM state information.
void nps_sensor_sonar_init(struct NpsSensorSonar *sonar, double time)
double get_gaussian_noise(void)
#define NPS_SONAR_DT
10Hz default
Simulated sonar for NPS simulator.
void nps_sensor_sonar_run_step(struct NpsSensorSonar *sonar, double time)
double value
sonar reading in meters
double offset
offset in meters
#define NPS_SONAR_NOISE_STD_DEV
standard devition in meters (default 1cm)
std::shared_ptr< gazebo::sensors::SonarSensor > sonar