View Single Post
  #2   Spotlight this post!  
Unread 28-03-2015, 18:07
Nyxyxylyth Nyxyxylyth is offline
Registered User
AKA: Neal Manson
FRC #1481 (The Riveters)
Team Role: Mentor
 
Join Date: Mar 2013
Rookie Year: 2013
Location: Southfield, MI
Posts: 70
Nyxyxylyth is just really niceNyxyxylyth is just really niceNyxyxylyth is just really niceNyxyxylyth is just really niceNyxyxylyth is just really nice
Re: Autonomous Inconsistencies

Quote:
Originally Posted by Sav01027 View Post
We have our code set up so that it calls methods into the autonomous code (i.e. drive() would make it drive forward a set number of encoder rotations).

The issue that we're having is that when we enable the robot to run Auto, it acts unpredictably. Say, one time it would do it perfectly, but the next it would turn for a different number of degrees, or drive for a different distance, while running on identical code.
Are you calling SetPosition(0) in your AutonomousInit() for the encoders, etc? Or whatever the appropriate equivalent initialization spot is in your setup.
Reply With Quote