|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||||
|
||||||
|
Re: Wierd gyro code problems...pls help
You will find your answer on page 16 of the 2004 Programming Reference guide, or in several other threads here on chiefdelphi.
edit: Ken beat me by seconds ![]() |
|
#2
|
|||
|
|||
|
Re: Wierd gyro code problems...pls help
haha ......lol i'm a noob.......thanx both of you
one more question........you know how it says : gyro1=>>gyro1 (or whatever) ..... will it shift every time the cycle loops.....like one loop it is 8 bit then 6 then 4????I hope not!....we have the shift in our program loop (outside of initilization) because we have to shift it after making it equal to the analog ....is that correct? Last edited by Salik Syed : 09-03-2004 at 21:28. |
|
#3
|
||||
|
||||
|
Re: Wierd gyro code problems...pls help
Quote:
if you put shift right (gyro>>2) statements after each other, then yes, each statement will shift it right another two places but in your code Im sure you are reading in new data on each loop, the old data is overwritten, so the new data is whats getting shifted. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IR reflective (tape) sensor code problems | Argoth | Programming | 8 | 07-02-2004 21:32 |
| problems assigning unsigned chars in FRC Code | LoyolaCubs | Programming | 6 | 26-01-2004 23:21 |
| ADC problems with C library and new code | Larry Barello | Programming | 1 | 09-01-2004 22:31 |
| gyro code | odin892 | Programming | 2 | 08-04-2003 14:50 |
| [white paper] Auto-Balance Gyro Code | Brandon Martus | Technical Discussion | 3 | 21-06-2001 10:36 |