View Single Post
  #5   Spotlight this post!  
Unread 08-04-2014, 13:06
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: How to loop peices of code forever?

Quote:
Originally Posted by Spacemonkey619 View Post
still it only [...] line tracked forward forever
Your code will keep line tracking while SensorValue[Encoder] < 210 in the forward-moving phase and SensorValue[Encoder] > -450 in the backward-moving phase. How did you arrive at these conditions? Are you sure that Encoder counts in the positive direction when you're moving forward, and the negative direction when moving backward?
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor