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

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

Functions

void start (bool fake_gps, bool enable_sat_info, int fix_type, int num_sat, int noise_multiplier)
 Start the driver. More...
 
void stop ()
 Stop the driver. More...
 
void test ()
 Perform some basic functional tests on the driver; make sure we can collect data from the sensor in polled and automatic modes. More...
 
void reset ()
 Reset the driver. More...
 
void info ()
 Print the status of the driver. More...
 
void usage (const char *reason)
 Print the correct usage. More...
 

Variables

GPSSIMg_dev = nullptr
 

Detailed Description

Local functions in support of the shell command.

Function Documentation

◆ info()

void gpssim::info ( )

Print the status of the driver.

Print a little info about the driver.

Definition at line 485 of file gpssim.cpp.

References lps22hb::bus_options, NUM_BUS_OPTIONS, GPSSIM::print_info(), and warnx.

Referenced by gpssim_main().

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

◆ reset()

void gpssim::reset ( )

Reset the driver.

Definition at line 467 of file gpssim.cpp.

References ETS_PATH, fd, GPSSIM_DEVICE_PATH, px4_ioctl(), px4_open(), SENSOR_POLLRATE_DEFAULT, SENSORIOCRESET, and SENSORIOCSPOLLRATE.

Referenced by gpssim_main().

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

◆ start()

void gpssim::start ( bool  fake_gps,
bool  enable_sat_info,
int  fix_type,
int  num_sat,
int  noise_multiplier 
)

Start the driver.

Definition at line 407 of file gpssim.cpp.

References g_dev, GPSSIM::GPSSIM(), GPSSIM_DEVICE_PATH, GPSSIM::init(), and OK.

Referenced by gpssim_main().

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

◆ stop()

void gpssim::stop ( )

Stop the driver.

Stop the driver.

Definition at line 446 of file gpssim.cpp.

References bmp280::bus_options, bmp280::bmp280_bus_option::dev, g_dev, and NUM_BUS_OPTIONS.

Referenced by gpssim_main(), and rm3100_main().

Here is the caller graph for this function:

◆ test()

void gpssim::test ( )

Perform some basic functional tests on the driver; make sure we can collect data from the sensor in polled and automatic modes.

Definition at line 458 of file gpssim.cpp.

References fd, MB12XX_DEVICE_PATH, px4_open(), and read().

Referenced by gpssim_main().

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

◆ usage()

void gpssim::usage ( const char *  reason)

Print the correct usage.

Definition at line 496 of file gpssim.cpp.

Referenced by gpssim_main().

Here is the caller graph for this function:

Variable Documentation

◆ g_dev

GPSSIM* gpssim::g_dev = nullptr