Thread
:
Thanks for all your help...and a question
View Single Post
#
11
07-06-2007, 12:14
tseres
obsessed with FIRST...
FRC #1565 (Think Tank Tech)
Team Role: Leadership
Join Date: Apr 2007
Rookie Year: 2007
Location: Cambridge, ON
Posts: 305
Re: Thanks for all your help...and a question
make a function for it
[from regular code]
if(p1_sw_trig){
dim_down(pwm01);
}
unsigned char dim_down(int input,float factor){
input-=127;
input*=factor //the factor to dim down the output
return input;
}
__________________
tseres
View Public Profile
Find all posts by tseres
Find CD-Media Photos by tseres
Find CD-Media Papers by tseres