View Single Post
  #11   Spotlight this post!  
Unread 30-01-2007, 12:33
pheadxdll pheadxdll is offline
Registered User
AKA: Alex
FRC #1225 (Amperage Robotics)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: North Carolina
Posts: 168
pheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud of
Re: Moving bot once targeted on the light

I found that CAMERA_ON_TARGET state goes on and off too much to do any good. I've tried this state and it works realiby:

Code:
if( Get_Tracking_State() == SEARCHING)
{
    pwm10 = pwm08 = 127;
}
else
{
    pwm10 = pwm08 = 135; // 135 is nothing unless its a really geared down motor :)
}
The SEARCHING state works great and I was able to keep a spike on with relay output.
__________________
Amperage Robotics Team 1225
Site under-going revamp. :/