Paparazzi UAS  v6.0_unstable-91-g69c55a0-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sonar_pwm.h File Reference
#include "std.h"
+ Include dependency graph for sonar_pwm.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SonarPwm
 

Functions

void sonar_pwm_init (void)
 
void sonar_pwm_read (void)
 

Variables

struct SonarPwm sonar_pwm
 

Data Structure Documentation

struct SonarPwm

Definition at line 42 of file sonar_pwm.h.

Data Fields
float distance Distance measured.
float offset offset
uint16_t raw raw PWM value
float scale scale to convert raw to a real distance

Function Documentation

void sonar_pwm_init ( void  )

Definition at line 109 of file sonar_pwm.c.

References init_median_filter_f(), SonarPwm::offset, SonarPwm::raw, SonarPwm::scale, sonar_filt, SONAR_MEDIAN_SIZE, SONAR_OFFSET, sonar_pwm, and SONAR_SCALE.

+ Here is the call graph for this function:

Variable Documentation

struct SonarPwm sonar_pwm

Definition at line 106 of file sonar_pwm.c.

Referenced by sonar_pwm_init(), and sonar_pwm_read().