Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sonar_maxbotix.c File Reference
+ Include dependency graph for sonar_maxbotix.c:

Go to the source code of this file.

Functions

void maxbotix_init (void)
 
void maxbotix_read (void)
 Read ADC value to update sonar measurement. More...
 

Variables

uint16_t sonar_meas
 
bool_t sonar_data_available
 
static struct adc_buf sonar_adc
 

Function Documentation

void maxbotix_init ( void  )

Definition at line 32 of file sonar_maxbotix.c.

References adc_buf_channel(), DEFAULT_AV_NB_SAMPLE, FALSE, sonar_adc, sonar_data_available, and sonar_meas.

+ Here is the call graph for this function:

void maxbotix_read ( void  )

Read ADC value to update sonar measurement.

Definition at line 41 of file sonar_maxbotix.c.

References adc_buf::av_nb_sample, sonar_adc, sonar_data_available, sonar_meas, adc_buf::sum, and TRUE.

Variable Documentation

struct adc_buf sonar_adc
static

Definition at line 30 of file sonar_maxbotix.c.

Referenced by maxbotix_init(), and maxbotix_read().

bool_t sonar_data_available

Definition at line 28 of file sonar_maxbotix.c.

Referenced by maxbotix_init(), and maxbotix_read().

uint16_t sonar_meas

Definition at line 27 of file sonar_maxbotix.c.

Referenced by ins_update_baro(), ins_update_sonar(), maxbotix_init(), and maxbotix_read().