PX4 Firmware
PX4 Autopilot Software http://px4.io
PMW3901.hpp File Reference
#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>
Include dependency graph for PMW3901.hpp:
This graph shows which files directly or indirectly include this file:

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 */
 

Detailed Description

Author
Daniele Pettenuzzo

Driver for the pmw3901 optical flow sensor connected via SPI.

Definition in file PMW3901.hpp.

Macro Definition Documentation

◆ DIR_READ

#define DIR_READ (   a)    ((a) & 0x7f)

Definition at line 78 of file PMW3901.hpp.

◆ DIR_WRITE

#define DIR_WRITE (   a)    ((a) | (1 << 7))

Definition at line 77 of file PMW3901.hpp.

◆ PMW3901_DEVICE_PATH

#define PMW3901_DEVICE_PATH   "/dev/pmw3901"

Definition at line 80 of file PMW3901.hpp.

◆ PMW3901_SAMPLE_INTERVAL

#define PMW3901_SAMPLE_INTERVAL   10000 /* 10 ms */

Definition at line 84 of file PMW3901.hpp.

Referenced by PMW3901::start().

◆ PMW3901_SPI_BUS_SPEED

#define PMW3901_SPI_BUS_SPEED   (2000000L)

Definition at line 75 of file PMW3901.hpp.

◆ PMW3901_US

#define PMW3901_US   1000 /* 1 ms */

Definition at line 83 of file PMW3901.hpp.

Referenced by PMW3901::start().