|
NinjaFlight
|
#include "drivers/sonar_hcsr04.h"

Go to the source code of this file.
Data Structures | |
| struct | sonar_ops |
| struct | sonar |
Macros | |
| #define | SONAR_OUT_OF_RANGE (-1) |
Functions | |
| void | sonar_init (struct sonar *self) |
| void | sonar_update (struct sonar *self) |
| int32_t | sonar_read (struct sonar *self) |
| int32_t | sonar_calc_altitude (struct sonar *self, float cosTiltAngle) |
| int32_t | sonar_get_altitude (struct sonar *self) |
Variables | |
| struct sonar | default_sonar |
| #define SONAR_OUT_OF_RANGE (-1) |
| int32_t sonar_calc_altitude | ( | struct sonar * | self, |
| float | cosTiltAngle | ||
| ) |
| int32_t sonar_get_altitude | ( | struct sonar * | self | ) |
| void sonar_init | ( | struct sonar * | self | ) |
| int32_t sonar_read | ( | struct sonar * | self | ) |
| void sonar_update | ( | struct sonar * | self | ) |
| struct sonar default_sonar |