We go together like a Drill motor, reduced by 3.6:1, and a CIM motor.
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread Today, 15:16
Lesafian Lesafian is online now
Registered User
AKA: Jeremy Styma
FRC #6077 (Wiking Kujon)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2016
Location: Posen, Michigan
Posts: 42
Lesafian is an unknown quantity at this point
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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