|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
Re: EasyC Timer and Gyro questions
Quote:
Your not using it somewhere else are you? In your "other function" is it in the "loop". A While Loop? Your code looks ok to me. We haven't had any timer problems. Try timer 6 for kicks and giggles.... |
|
#3
|
|||
|
|||
|
Re: EasyC Timer and Gyro questions
Quote:
Yeah it is only being used once...I even tried it in the simple gyrotest code and still got nuthin. I guess I will try another one... since your no. 6 timer works, I will try it. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Accelerometer code | ImmortalAres | Programming | 28 | 04-06-2005 01:02 |
| Updated: Example Gyro Interface Code | Kevin Watson | Programming | 2 | 28-03-2005 04:36 |
| Example gyro code released. | Kevin Watson | Programming | 60 | 17-03-2005 18:32 |
| Gyro Calibration | roboticsjenkins | Programming | 11 | 21-02-2005 20:39 |
| Using gyro with other analog sensors...again | demerski | Programming | 0 | 19-02-2005 08:23 |