View Single Post
  #3   Spotlight this post!  
Unread 23-02-2004, 13:14
Greg's Avatar
Greg Greg is offline
Registered User
FRC #1075 (Sinclair Sprockets)
Team Role: College Student
 
Join Date: Nov 2002
Rookie Year: 2003
Location: Whitby, Ontario, Canada
Posts: 108
Greg is on a distinguished road
Send a message via ICQ to Greg Send a message via MSN to Greg
Re: interrupts and putdata()

I just finished testing exactly this code on the EDU controller. It works fine as long as there are no conflicts with the values that your fast and slow code sections output. I wrote the code for the fast section, and forgot that the slow section would output 127 every 26 msec The edu motor sounded really weird as a result. As soon as I figured this out though everything worked.

I am not sure if updating the values that quickly will actually do any good, however. Even if the speed controller can respond this quickly to the change in PWM, the motors and the drivetrain certainly won't. Inertia in the drivetrain will erase all difference between fast and slow updates, I think. If I'm wrong please correct me on this.