Go to Post thats like having 24 young men going wild for 2 minutes - thats how much power is available during a match. - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 14-01-2012, 17:47
nazgul42 nazgul42 is offline
Registered User
FTC #4115
 
Join Date: Jan 2012
Location: Mequon
Posts: 3
nazgul42 is an unknown quantity at this point
Tetrix Encoders not returning consistent values

On the robot that my team built, there are two motors with encoders on them. The software running on the NXT brick is written in robotC. It looks like:
Code:
// Motor definitions here
task main()
{
  nMotorEncoder[leftArm] = 0;
  nMotorEncoder[rightArm] = 0;
  while (true)
  {
    nxtDisplayTextLine(1,"RArm: %d", nMotorEncoder[rightArm]);
    nxtDisplayTextLine(3,"LArm: %d", nMotorEncoder[leftArm]);
  }
}
If I rotate one of the motors about 90 degrees, the displayed encoder value changes to about -200. If I then rotate the motor back to the position where it was at zero, the encoder value changes to about 250. Since the encoder changes faster in one direction than another, there is no actual 'zero position'. The other encoder displays this same behavior. Why does this happen?
Reply With Quote
 


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 07:03.

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