View Single Post
  #4   Spotlight this post!  
Unread 28-03-2004, 23:52
Biff Biff is offline
Registered User
AKA: Tom Cooper
#1227 (Techno Gremlins)
Team Role: Mentor
 
Join Date: Jan 2004
Location: Grand Rapids MI
Posts: 214
Biff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the rough
Re: Speed limiting code from last year in C?

Our coder came up with a thing that may help (I hope)
this is in the header file:

#define Grabber_Speed p4_x /*port 4 x on OI */
#define Forward_Speed (127 + (Grabber_Speed / 2))
#define Reverse_Speed (127 - (Grabber_Speed / 2))

The Grabber_Speed is linked to a Knob (pot) on the IO

We are now just using IO switches to go Forward and Reverse So forward and reverse get pluged in with if statements.
The Range for Grabber_Speed is 0 to 254 as it comes from The OI

Last edited by Biff : 28-03-2004 at 23:54.