Paparazzi UAS
v5.8.2_stable-0-g6260b7c
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 46 of file sonar_bebop.c.
References spi_transaction::dss, spi_transaction::input_buf, spi_transaction::input_length, SonarBebop::meas, SonarBebop::offset, spi_transaction::output_buf, spi_transaction::output_length, spi_transaction::select, sonar_bebop, sonar_bebop_read(), sonar_bebop_spi_d, sonar_bebop_spi_t, sonar_bebop_thread, SPIDss8bit, SPISelectUnselect, SPITransDone, and spi_transaction::status.
struct SonarBebop sonar_bebop |
Definition at line 40 of file sonar_bebop.c.
Referenced by sonar_bebop_init(), and sonar_bebop_read().