Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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


void sonar_pwm_init (void)
void sonar_pwm_read (void)


struct SonarPwm sonar_pwm

Data Structure Documentation

◆ SonarPwm

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

◆ sonar_pwm_init()

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:

◆ sonar_pwm_read()

Variable Documentation

◆ sonar_pwm

struct SonarPwm sonar_pwm

Definition at line 106 of file sonar_pwm.c.

Referenced by sonar_pwm_init(), and sonar_pwm_read().