opticflow_pmw3901

Driver for PMW3901 optical flow sensor

Configures

Name

Value

Description

OPTICFLOW_PMW3901_SPI_DEV

SPIx

SPI device

OPTICFLOW_PMW3901_SPI_SLAVE_IDX

2

SPI slave index

Defines

Name

Value

Description

OPTICFLOW_PMW3901_SENSOR_ANGLE

90

Sensor mounting angle in degrees

OPTICFLOW_PMW3901_SUBPIXEL_FACTOR

100

Subpixel factor

OPTICFLOW_PMW3901_STD_PX

50

Standard deviation of flow measurement in px

OPTICFLOW_PMW3901_AGL_ID

ABI_BROADCAST

AGL source to listen to for velocity estimation

OPTICFLOW_PMW3901_AGL_TIMEOUT_US

500000

Lifetime of AGL measurements

PMW3901_RAD_PER_PX

0.002443389

Rad-per-px for ALL PMW3901 sensors

PMW3901_SPI_CDIV

SPIDiv256

SPI Clock divisor to adjust according to PCLK, don’t exceeed 2MHz

OPTICFLOW_PMW3901_RAD_PER_PX

(undefined)

Override rad-per-px only for the PMW3901 used by this module

SENSOR_SYNC_SEND_OPTICFLOW_PMW3901

FALSE

Send all new measurements over telemetry

Depends

  • spi_master