Thread: Auto Mode Help
View Single Post
  #8   Spotlight this post!  
Unread 05-02-2011, 23:26
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Auto Mode Help

So I assume you have limit switches on a digital input channel then? If so, you can just program the victor with:
Code:
if (limitSwitch->Get() == 0)
{
    armMotor->Set(0.5);
}
else
{
    armMotor->Set(0.0);
}
__________________
Reply With Quote