View Single Post
  #2   Spotlight this post!  
Unread 10-01-2008, 13:21
TubaMorg TubaMorg is offline
Programmermechanicalelect ricalcoach
AKA: Dan
FRC #1480 (Robatos Locos)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Houston
Posts: 450
TubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond repute
Re: Gyro Heading always zero, yet operating?

I had to look up the printTextToGD function call from WPLib.

Quote:
void PrintTextToGD(unsigned char ucRow, unsigned char ucCol, unsigned long ulColor, rom const char *szText, ...);
Usually when we have a problem like yours, it is a typecast problem.
Other things to check:
Is your color valid?
Is your gyro type set correctly? You have the 300 deg/sec gyro?
What affect does the wait(200) have on your program? I always prefer to wrap my print statements in a if block for what you are trying to do:

if (time%$200 == 0)
{
printTextToGD.....
}

That way the program can continue to process gyro data, although WPLib documentation implies that sensor data is still processed during the wait.