PX4 Firmware
PX4 Autopilot Software http://px4.io
|
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 | |
GPSSIM * | g_dev = nullptr |
Local functions in support of the shell command.
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().
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().
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().
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().
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().
void gpssim::usage | ( | const char * | reason | ) |
Print the correct usage.
Definition at line 496 of file gpssim.cpp.
Referenced by gpssim_main().
GPSSIM* gpssim::g_dev = nullptr |
Definition at line 393 of file gpssim.cpp.
Referenced by GPSSIM::GPSSIM(), gpssim_main(), start(), stop(), GPSSIM::task_main_trampoline(), and GPSSIM::~GPSSIM().