Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Parrot Bebop Sonar driver. More...
#include "std.h"
Go to the source code of this file.
Data Structures | |
struct | SonarBebop |
Functions | |
void | sonar_bebop_init (void) |
Variables | |
struct SonarBebop | sonar_bebop |
Parrot Bebop Sonar driver.
Definition in file sonar_bebop.h.
struct SonarBebop |
Definition at line 32 of file sonar_bebop.h.
Data Fields | ||
---|---|---|
float | distance | Distance measured in meters. |
uint16_t | meas | Raw ADC value. |
uint16_t | offset | Sonar offset in ADC units. |
void sonar_bebop_init | ( | void | ) |
Definition at line 115 of file sonar_bebop.c.
References spi_transaction::dss, init_median_filter_f(), spi_transaction::input_buf, spi_transaction::input_length, SonarBebop::meas, mode, SonarBebop::offset, spi_transaction::output_buf, spi_transaction::output_length, pulse_transition_counter, spi_transaction::select, sonar_bebop, sonar_bebop_read(), sonar_bebop_spi_d, sonar_bebop_spi_t, sonar_bebop_spike_timer, sonar_filt, SPIDss8bit, SPISelectUnselect, SPITransDone, spi_transaction::status, and SysTimeTimerStart.
struct SonarBebop sonar_bebop |
Definition at line 107 of file sonar_bebop.c.
Referenced by sonar_bebop_init(), and sonar_bebop_read().