Thread: Programming
View Single Post
  #3   Spotlight this post!  
Unread 23-06-2002, 22:55
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: This is not too hard to do

Posted by Russell Pauley.

Coach on team #344 from Phoebus High School.

Posted on 1/31/2000 6:36 AM MST


In Reply to: This is not too hard to do posted by Joe Johnson on 1/31/2000 5:31 AM MST:



Innovation First has a paper on there web site that gives you the code to run a PWM with a button.

Russell


: Justin,

: I think that this is not all that difficult.

: Basically, you need a few IF statements.

: Something like:
: .
: .
: .
: IF (THUMB1.eq.1) then MaxSpeed
: Goto NoThumb
: MaxSpeed:
: if (Y1.gt.127) then FullAhead
: FullRev:
: Y1=00
: Goto NoThumb
: FullAhead:
: Y1=254
: NoThumb:
: .
: .
: .

: .gt. = greater than
: .eq. = equal

: (html sometimes gets confused if we use the real symbols)

: Hope this helps.

: Joe J.


__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.