Quote:
|
Originally Posted by thinkpad
I apologize, Ill try to explain better:
The print of the gyro angle increments at a very slow rate, for example when i start the program the gyro angle stays at 0 till i actually move the gyro(as expected), after I turn the gyro slowly to say 90 deg, the gyro angle starts to change, but at a very slow rate. It increases by 1 for every 5-6 print outs of the gyro angle, so if it has to reach 900 (90 deg with setting at tenths of a degree), it will take a long time to increment to that value. Isnt the gyro angle supposed change faster?
I am using the frc_gyro code version 0.4 from your website, without any changes other than gyro sample ratte at 1600Hz and samples per update at 64 (Ive tried other values to but with same results). I have not changed anything with user_routines.
Hope this makes it clearer,
Thanks.
|
Yes, it should change much faster than that. When you assembled the gyro, did you connect a jumper wire between the AVCC (pin 1) and PDD pins (pin 13)? If not, connect the two pins together and it should start working.
-Kevin