![]() |
Accelerometer class - isn't reading zero at rest?
Do we have a bad KoP board or the code is wrong or missing some setup?
Code:
... |
Re: Accelerometer class - isn't reading zero at rest?
You certainly can.
Before you do, be sure you are telling the class that your center point is 1.5V and your sensitivity is 300mV/g. I *think* the class assumes a different model. |
Re: Accelerometer class - isn't reading zero at rest?
The classes aren't really documented.
How do you set the center point to 1.5V? How do you set the sensitivity to 300mV/g? From what I can tell, the accelerometer class contains the function calls of SetZero() and SetSensitivity(). How do you use these? |
Re: Accelerometer class - isn't reading zero at rest?
If you read the WPILib source code, it gives you some hints.
Code:
/**Code:
myAccelerometer->SetZero(1.5); |
| All times are GMT -5. The time now is 02:31. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi