|
PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <px4_platform_common/px4_config.h>#include <px4_platform_common/defines.h>#include <px4_platform_common/getopt.h>#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>#include <px4_platform_common/module.h>#include <drivers/device/i2c.h>#include <sys/types.h>#include <stdint.h>#include <stdlib.h>#include <stdbool.h>#include <semaphore.h>#include <string.h>#include <fcntl.h>#include <poll.h>#include <stdio.h>#include <math.h>#include <unistd.h>#include <lib/parameters/param.h>#include <perf/perf_counter.h>#include <drivers/drv_hrt.h>#include <drivers/drv_range_finder.h>#include <drivers/device/ringbuffer.h>#include <uORB/uORB.h>#include <uORB/topics/distance_sensor.h>#include <board_config.h>Go to the source code of this file.
Classes | |
| class | SF1XX |
Namespaces | |
| sf1xx | |
| Local functions in support of the shell command. | |
Macros | |
| #define | SF1XX_BUS_DEFAULT PX4_I2C_BUS_EXPANSION |
| #define | SF1XX_BASEADDR 0x66 |
| #define | SF1XX_DEVICE_PATH "/dev/sf1xx" |
Functions | |
| __EXPORT int | sf1xx_main (int argc, char *argv[]) |
| int | sf1xx::start (uint8_t rotation) |
| Attempt to start driver on all available I2C busses. More... | |
| int | sf1xx::start_bus (uint8_t rotation, int i2c_bus) |
| Start the driver on a specific bus. More... | |
| int | sf1xx::stop () |
| Stop the driver. More... | |
| int | sf1xx::test () |
| Perform some basic functional tests on the driver; make sure we can collect data from the sensor in polled and automatic modes. More... | |
| int | sf1xx::reset () |
| Reset the driver. More... | |
| int | sf1xx::info () |
| Print a little info about the driver. More... | |
| static void | sf1xx_usage () |
Variables | |
| SF1XX * | sf1xx::g_dev |
Driver for the Lightware SF1xx lidar range finder series. Default I2C address 0x66 is used.
Definition in file sf1xx.cpp.
| #define SF1XX_BASEADDR 0x66 |
Definition at line 78 of file sf1xx.cpp.
Referenced by SF1XX::init().
| #define SF1XX_BUS_DEFAULT PX4_I2C_BUS_EXPANSION |
Definition at line 77 of file sf1xx.cpp.
Referenced by sf1xx_main().
| #define SF1XX_DEVICE_PATH "/dev/sf1xx" |
Definition at line 79 of file sf1xx.cpp.
Referenced by sf1xx::reset(), sf1xx::start_bus(), and sf1xx::test().
| int sf1xx_main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 824 of file sf1xx.cpp.
References sf1xx::info(), sf1xx::reset(), SF1XX_BUS_DEFAULT, sf1xx_usage(), sf1xx::start(), sf1xx::start_bus(), sf1xx::stop(), and sf1xx::test().
|
static |
Definition at line 792 of file sf1xx.cpp.
Referenced by sf1xx_main().