 |
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
24 #include "generated/airframe.h"
32 #include "pprzlink/messages.h"
40 #define SONAR_OFFSET 0
47 #define SONAR_SCALE 0.0166
82 #ifdef SENSOR_SYNC_SEND_SONAR
#define SONAR_SCALE
Sonar scale.
uint16_t meas
Raw ADC value.
void sonar_adc_init(void)
void adc_buf_channel(uint8_t adc_channel, struct adc_buf *s, uint8_t av_nb_sample)
Link between ChibiOS ADC drivers and Paparazzi adc_buffers.
void sonar_adc_read(void)
Read ADC value to update sonar measurement.
static struct EnuCoor_f * stateGetPositionEnu_f(void)
Get position in local ENU coordinates (float).
arch independent ADC (Analog to Digital Converter) API
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
struct SonarAdc sonar_adc
static struct adc_buf sonar_adc_buf
Common code for AP and FBW telemetry.
float distance
Distance measured in meters.
#define SONAR_OFFSET
Sonar offset.
simple driver to deal with one sonar sensor on ADC
#define DEFAULT_AV_NB_SAMPLE
uint16_t offset
Sonar offset in ADC units.
Generic interface for all ADC hardware drivers, independent from microcontroller architecture.