Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "std.h"
Go to the source code of this file.
Data Structures | |
struct | TeraRanger |
Functions | |
void | teraranger_init (void) |
void | teraranger_periodic (void) |
void | teraranger_event (void) |
void | teraranger_downlink (void) |
Variables | |
struct TeraRanger | teraranger |
Definition in file teraranger_one.h.
struct TeraRanger |
Definition at line 31 of file teraranger_one.h.
Data Fields | ||
---|---|---|
bool | data_available | |
float | dist | scaled distance in m |
float | offset | offset in m |
uint16_t | raw | raw distance in mm |
void teraranger_downlink | ( | void | ) |
Definition at line 143 of file teraranger_one.c.
References DefaultChannel, DefaultDevice, TeraRanger::dist, TeraRanger::raw, and teraranger.
void teraranger_event | ( | void | ) |
Definition at line 114 of file teraranger_one.c.
References AGL_TERARANGER_ONE_ID, i2c_transaction::buf, TeraRanger::data_available, TeraRanger::dist, get_sys_time_usec(), I2CTransDone, I2CTransFailed, I2CTransSuccess, TeraRanger::offset, TeraRanger::raw, i2c_transaction::status, teraranger, teraranger_crc8(), teraranger_i2c_trans, and USE_TERARANGER_ONE_AGL.
void teraranger_init | ( | void | ) |
Definition at line 95 of file teraranger_one.c.
References TeraRanger::data_available, TeraRanger::dist, I2CTransDone, TeraRanger::offset, TeraRanger::raw, i2c_transaction::status, teraranger, teraranger_i2c_trans, and TERARANGER_ONE_OFFSET.
void teraranger_periodic | ( | void | ) |
Definition at line 106 of file teraranger_one.c.
References i2c_receive(), I2CTransDone, i2c_transaction::status, teraranger_i2c_trans, and TERARANGER_ONE_I2C_ADDR.
|
extern |
Definition at line 76 of file teraranger_one.c.
Referenced by teraranger_downlink(), teraranger_event(), and teraranger_init().