Thread
:
Auto Mode Help
View Single Post
#
8
05-02-2011, 23:26
mikets
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
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); }
__________________
mikets
View Public Profile
Visit mikets's homepage!
Find all posts by mikets
Find CD-Media Photos by mikets
Find CD-Media Papers by mikets