View Single Post
  #2   Spotlight this post!  
Unread 01-02-2006, 22:05
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: EasyC Timer and Gyro questions

Hmmm right after I posted my question I think I may have figured out the solution. We can access the gyro output directly with GetAnalogInput(1) which is, of course, the yaw rate, right? Have to wait til tomorrow to try it though. It just figures that after two hours of head scratching that it would be this easy (get it? EasyC!).

That just leaves me with the question of why the timer isn't timing?

In the Intialize block:
StartTimer(1)

In another function:

timer = GetTimer(1);
PrintToScreen ("Time is %ld\n", (long)timer);


I've tried various permutations of casting but get 0 almost every time. Sometimes, if I'm patient, it will go to 1. Any ideas? I should add all of this is taking place on the 2005 RC.