Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PixArt PAW3902 optical motion tracking driver #12576

Merged
merged 1 commit into from
Aug 2, 2019
Merged

Conversation

dagar
Copy link
Member

@dagar dagar commented Jul 29, 2019

This is an initial driver for the new PAW3902 (and PAW3903) optical motion tracking driver from PixArt. It's an update to the popular PMW3901 with much better low light performance. https://www.pixart.com/products-comparison/16/Optical_Motion_Tracking

image

Not quite flight ready, there are issues with the scaling. @RomanBapst @DanielePettenuzzo @priseborough any input on how you determined the proportional factor for the PMW3901 would be appreciated. It doesn't appear to be derived from the datasheet (although it lacks quite a lot of detail).

https://github.com/PX4/Firmware/blob/ca74b3fef11a5fb7e8347e019350f24302ecd9a9/src/drivers/optical_flow/pmw3901/pmw3901.cpp#L570

Copy link
Contributor

@DanielePettenuzzo DanielePettenuzzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good to me! Where did you buy this sensor? I was not able to find any breakout.
For the pmw3901 the proportional factor was measured experimentally by measuring some known distances and rotations. @RomanBapst If we could order one we could try to repeat those measurements and then get this flying.

@mhkabir
Copy link
Member

mhkabir commented Jul 29, 2019

The Thoneflow driver is also stalled on measuring the scale factor. I got it to mostly match the gyro on pure rotations, but the EKF is always unhappy.

@jkflying
Copy link
Contributor

jkflying commented Jul 31, 2019

The Thoneflow driver is also stalled on measuring the scale factor. I got it to mostly match the gyro on pure rotations, but the EKF is always unhappy.

Maybe do some flights, then replay on a hacked version of ECL to determine what scale factor gives lowest innovations?

@dagar
Copy link
Member Author

dagar commented Aug 2, 2019

Safe to merge for continued testing and iteration.

@dagar dagar merged commit eda49a4 into PX4:master Aug 2, 2019
@dagar dagar deleted the pr-paw3902 branch August 2, 2019 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants