Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Simulated sonar for NPS simulator. More...
#include "nps_sensor_sonar.h"
#include "generated/airframe.h"
#include "std.h"
#include "nps_fdm.h"
#include "nps_random.h"
#include "nps_sensors.h"
Go to the source code of this file.
Macros | |
#define | NPS_SONAR_DT 0.01 |
10Hz default More... | |
#define | NPS_SONAR_NOISE_STD_DEV 0.01 |
standard devition in meters (default 1cm) More... | |
#define | NPS_SONAR_OFFSET 0 |
#define | NPS_SONAR_MIN_DIST 0.1f |
#define | NPS_SONAR_MAX_DIST 7.0f |
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.c.
#define NPS_SONAR_DT 0.01 |
10Hz default
Definition at line 40 of file nps_sensor_sonar.c.
#define NPS_SONAR_MAX_DIST 7.0f |
Definition at line 57 of file nps_sensor_sonar.c.
#define NPS_SONAR_MIN_DIST 0.1f |
Definition at line 53 of file nps_sensor_sonar.c.
#define NPS_SONAR_NOISE_STD_DEV 0.01 |
standard devition in meters (default 1cm)
Definition at line 45 of file nps_sensor_sonar.c.
#define NPS_SONAR_OFFSET 0 |
Definition at line 49 of file nps_sensor_sonar.c.
void nps_sensor_sonar_init | ( | struct NpsSensorSonar * | sonar, |
double | time | ||
) |
Definition at line 60 of file nps_sensor_sonar.c.
References FALSE, NPS_SONAR_NOISE_STD_DEV, NPS_SONAR_OFFSET, sonar, and time.
Referenced by nps_sensors_init().
void nps_sensor_sonar_run_step | ( | struct NpsSensorSonar * | sonar, |
double | time | ||
) |
Definition at line 70 of file nps_sensor_sonar.c.
References NpsFdm::agl, fdm, get_gaussian_noise(), NPS_SONAR_DT, NPS_SONAR_MAX_DIST, NPS_SONAR_MIN_DIST, sonar, and TRUE.
Referenced by nps_sensors_run_step().