Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   ADXRS450 Gyroscope Not Reading 360 Degrees per Rotation (http://www.chiefdelphi.com/forums/showthread.php?t=155335)

Lesafian 14-02-2017 15:16

ADXRS450 Gyroscope Not Reading 360 Degrees per Rotation
 
I'm calculating a gyro angle to turn to based on the centerX of a contour, and the center of my image

Code:

if (!isTurning) {
        turn = (centerX[0] - imageCenter) * degreesPerPixel;
}
isTurning = true;

(Using the LifeCam, and a 320x240 res, degreesPerPixel = 0.18


It seems as if the ADXRS450 does not read 360 degrees per rotation. If I reset the gyro, and spin the robot 360 degrees, the value is somewhere around 320 degrees. I tried multiplying the equation above by 0.8 to compensate, and that worked alright, but it doesn't seem like the optimal solution.


All times are GMT -5. The time now is 15:28.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi