View Single Post
  #2   Spotlight this post!  
Unread 17-03-2014, 23:15
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,548
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: trying to get encoders working

Code:
        leftEncoder.setDistancePerPulse(0.000623);
        rightEncoder.setDistancePerPulse(0.000623);
You are calling these methods before creating the leftEncoder and rightEncoder objects, which is causing the code to crash. If you scroll up in the output window, you will see a stack trace which would point to those lines.
Reply With Quote