|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
use the wheel as a throttle
Posted by Joe Johnson at 2/6/2001 1:37 PM EST
Engineer on team #47, Chief Delphi, from Pontiac Central High School and Delphi Automotive Systems. In Reply to: Re: software software software Posted by Matt Leese on 2/6/2001 9:27 AM EST: We often use the wheel on the joystick as a variable throttle for the driver joystick(s). This allows us to have a "training" speed and a competition speed. The code is not difficult, something along the lines of: if y1>127 then aaa pwm1 = 127 - ((127-y1) / NCD (wheel1 + 1) Max 127) goto bbb aaa: pwm1 = 127 + ((y1-127) / NCD (wheel1 + 1)) Max 254 bbb: As a side benefit, we can dial down the throttle when we go for a show where a bunch of 3rd graders are going to be driving our robot. Joe J. P.S. I just wrote that code from memory on the spot, it may not be exactly correct though I believe the concept is substantially correct. JJ |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Interesting "4D" planning software. | Madison | General Forum | 2 | 22-10-2003 09:26 |
| SCRRF Design Classes | Redhead Jokes | Southern California Regional Robotics Forum | 0 | 10-07-2003 17:29 |
| which software | Ryan Foley | 3D Animation and Competition | 5 | 01-03-2003 23:39 |
| any one get the software yet?! | activemx | 3D Animation and Competition | 17 | 28-11-2002 19:06 |
| Reactor software? | Adrian Wong | 3D Animation and Competition | 4 | 15-01-2002 16:45 |