View Single Post
  #24   Spotlight this post!  
Unread 17-03-2004, 23:20
Anthony Kesich's Avatar
Anthony Kesich Anthony Kesich is offline
Programmer Turned Engineer
AKA: SonKenshin
#1097 (Site 3 Engineernig)
Team Role: Leadership
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Sacramento, CA
Posts: 186
Anthony Kesich has a spectacular aura aboutAnthony Kesich has a spectacular aura about
Send a message via AIM to Anthony Kesich
Re: Help! Programming question with triggers

Code:
pwm07 = pwm08 = 127 + ((p3_sw_trig - p3_sw_top) * 40);
One line. I found it very useful this year. You can changew the numher at the end (40) to whatever scale you want. trig will make it go forward, top will make it go back, and either both or none will make it just sit there.

-Kesich
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;

Horray for most things! -George Carlin

"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year