How to configure the accelerometer (P3-ROC)
Related Config File Sections:
THe P3-ROC includes an accelerometer which you can use with MPF to detect g-force changes (to use as a tilt) as well as 3-axis leveling (to use to determine whether the machine is level).
To use the accelerometer on the P3-ROC, add it to your machine-wide config file like this:
accelerometers: p3_roc_accelerometer: number: 1
The name (which is "p3_roc_accelerometer" in the example above) doesn't really matter.
Other than that, use it like you would any accelerometer in MPF, by following the docs and guides in the Accelerometers section of the documentation.
What if it did not work?
Have a look at our troubleshooting guide for the P/P3-Roc.
Something missing or wrong? You can fix it!
This website is edited by people like you! Is something wrong or missing? Is something out of date, or can you explain it better?
Please help us! You can fix it yourself and be an official "open source" contributor!
It's easy! See our Beginner's guide to editing the docs.
Page navigation via the keyboard: < >
You can navigate this site via the keyboard. There are two modes:
General navigation, when search is not focused:
- F , S , / : open search dialog
- P , , : go to previous page
- N , . : go to next page
While using the search function:
- Down , Up : select next / previous result
- Esc , Tab : close search
- Enter : go to highlighted page in the results