NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sonar.h File Reference
Include dependency graph for sonar.h:
This graph shows which files directly or indirectly include this file:

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
 

Macro Definition Documentation

#define SONAR_OUT_OF_RANGE   (-1)

Function Documentation

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)

Variable Documentation

struct sonar default_sonar