View Single Post
  #2   Spotlight this post!  
Unread 11-02-2013, 18:19
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,073
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Talon not responding

operatorControl() is only called once. If you want to actually do something, you have to make a loop.

Code:
public void tele()
{
   frisbeeIndexer.set(1.0);
}


//Don't modify the following method
public void operatorControl()
{
 while (isOperatorControl())
 {
    tele();
    Timer.delay(3/1000); //this prevents the cRIO from becoming overloaded, especially if tele() is empty
 }
}
Having tele() as a separate method keeps things clearer and keeps inexperienced programmers from messing with something they shouldn't, but you're more than welcome to have everything in operatorControl().
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote