PX4 Firmware
PX4 Autopilot Software http://px4.io
px4flow Namespace Reference

Local functions in support of the shell command. More...

Functions

int start (int argc, char *argv[])
 Start the driver. More...
 
int stop ()
 Stop the driver. More...
 
int info ()
 Print a little info about the driver. More...
 
void usage ()
 Prints info about the driver argument usage. More...
 

Variables

PX4FLOWg_dev = nullptr
 
bool start_in_progress = false
 
const int START_RETRY_COUNT = 5
 
const int START_RETRY_TIMEOUT = 1000
 

Detailed Description

Local functions in support of the shell command.

Function Documentation

◆ info()

int px4flow::info ( )

Print a little info about the driver.

Definition at line 608 of file px4flow.cpp.

References PX4FLOW::print_info().

Referenced by px4flow_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ start()

int px4flow::start ( int  argc,
char *  argv[] 
)

Start the driver.

Definition at line 432 of file px4flow.cpp.

References g_dev, I2C_FLOW_ADDRESS_DEFAULT, I2C_FLOW_ADDRESS_MAX, PX4FLOW::init(), OK, PX4FLOW::PX4FLOW(), PX4FLOW_CONVERSION_INTERVAL_DEFAULT, PX4FLOW_CONVERSION_INTERVAL_MAX, and usage().

Referenced by px4flow_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stop()

int px4flow::stop ( )

Stop the driver.

Stop the driver.

Definition at line 587 of file px4flow.cpp.

References g_dev.

Referenced by px4flow_main().

Here is the caller graph for this function:

◆ usage()

void px4flow::usage ( void  )

Prints info about the driver argument usage.

Prints info about the driver argument usage.

Definition at line 620 of file px4flow.cpp.

Referenced by px4flow_main().

Here is the caller graph for this function:

Variable Documentation

◆ g_dev

PX4FLOW* px4flow::g_dev = nullptr

Definition at line 417 of file px4flow.cpp.

Referenced by start(), and stop().

◆ start_in_progress

bool px4flow::start_in_progress = false

Definition at line 418 of file px4flow.cpp.

◆ START_RETRY_COUNT

const int px4flow::START_RETRY_COUNT = 5

Definition at line 420 of file px4flow.cpp.

◆ START_RETRY_TIMEOUT

const int px4flow::START_RETRY_TIMEOUT = 1000

Definition at line 421 of file px4flow.cpp.