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 <drivers/device/spi.h>
#include <conversion/rotation.h>
#include <lib/perf/perf_counter.h>
#include <lib/parameters/param.h>
#include <drivers/drv_hrt.h>
#include <uORB/PublicationMulti.hpp>
#include <uORB/topics/optical_flow.h>
Go to the source code of this file.
Classes | |
class | PMW3901 |
Macros | |
#define | PMW3901_SPI_BUS_SPEED (2000000L) |
#define | DIR_WRITE(a) ((a) | (1 << 7)) |
#define | DIR_READ(a) ((a) & 0x7f) |
#define | PMW3901_DEVICE_PATH "/dev/pmw3901" |
#define | PMW3901_US 1000 /* 1 ms */ |
#define | PMW3901_SAMPLE_INTERVAL 10000 /* 10 ms */ |
Driver for the pmw3901 optical flow sensor connected via SPI.
Definition in file PMW3901.hpp.
#define DIR_READ | ( | a | ) | ((a) & 0x7f) |
Definition at line 78 of file PMW3901.hpp.
#define DIR_WRITE | ( | a | ) | ((a) | (1 << 7)) |
Definition at line 77 of file PMW3901.hpp.
#define PMW3901_DEVICE_PATH "/dev/pmw3901" |
Definition at line 80 of file PMW3901.hpp.
#define PMW3901_SAMPLE_INTERVAL 10000 /* 10 ms */ |
Definition at line 84 of file PMW3901.hpp.
Referenced by PMW3901::start().
#define PMW3901_SPI_BUS_SPEED (2000000L) |
Definition at line 75 of file PMW3901.hpp.
#define PMW3901_US 1000 /* 1 ms */ |
Definition at line 83 of file PMW3901.hpp.
Referenced by PMW3901::start().