PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Local functions in support of the shell command. More...
Functions | |
int | start (const uint8_t orientation) |
Attempt to start driver on all available I2C busses. More... | |
int | start_bus (const int i2c_bus, const uint8_t orientation) |
Start the driver on a specific bus. More... | |
int | status () |
Print the driver status. More... | |
int | stop () |
Stop the driver. More... | |
int | usage () |
Prints info about the driver argument usage. More... | |
Variables | |
TERARANGER * | g_dev |
Local functions in support of the shell command.
int teraranger::start | ( | const uint8_t | orientation | ) |
Attempt to start driver on all available I2C busses.
This function will return as soon as the first sensor is detected on one of the available busses or if no sensors are detected.
Definition at line 451 of file teraranger.cpp.
References i2c_bus_options, NUM_I2C_BUS_OPTIONS, and start_bus().
Referenced by teraranger_main().
int teraranger::start_bus | ( | const int | i2c_bus, |
const uint8_t | orientation | ||
) |
Start the driver on a specific bus.
This function only returns if the sensor is up and running or could not be detected successfully.
Definition at line 474 of file teraranger.cpp.
References g_dev, TERARANGER::init(), TERARANGER::start(), and TERARANGER::TERARANGER().
Referenced by start(), and teraranger_main().
int teraranger::status | ( | ) |
Print the driver status.
Definition at line 523 of file teraranger.cpp.
References TERARANGER::print_info().
Referenced by teraranger_main().
int teraranger::stop | ( | ) |
Stop the driver.
Stop the driver.
Definition at line 507 of file teraranger.cpp.
References g_dev.
Referenced by teraranger_main().
int teraranger::usage | ( | void | ) |
Prints info about the driver argument usage.
Prints info about the driver argument usage.
Definition at line 536 of file teraranger.cpp.
Referenced by teraranger_main().
TERARANGER* teraranger::g_dev |
Definition at line 432 of file teraranger.cpp.
Referenced by start_bus(), and stop().