Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sonar_maxbotix.h File Reference

simple driver to deal with one maxbotix sensor More...

#include "std.h"
+ Include dependency graph for sonar_maxbotix.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SonarEvent(_handler)
 

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
 

Detailed Description

simple driver to deal with one maxbotix sensor

Definition in file sonar_maxbotix.h.

Macro Definition Documentation

#define SonarEvent (   _handler)
Value:
{ \
_handler(); \
} \
}
#define FALSE
Definition: imu_chimu.h:141
bool_t sonar_data_available

Definition at line 43 of file sonar_maxbotix.h.

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

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().