View Single Post
  #2   Spotlight this post!  
Unread 13-01-2008, 20:02
tseres's Avatar
tseres tseres is offline
obsessed with FIRST...
FRC #1565 (Think Tank Tech)
Team Role: Leadership
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Cambridge, ON
Posts: 305
tseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of light
Re: Controller Speed programming

not sure about easyC, but the code woud look like this:

if((pwm1>127) && (pwm1<200)){
pwm1=150;
}
else if(pwm1>200){
pwm1=pwm1;
}


the last "if" is somewhat unnecessary, but i put it there to show you. i'm not sure, but in easyc can you still edit the actual code? if so, this should work.

PS
i dont use easyC because it has the word 'easy' in it
__________________