Thread: Encoder code...
View Single Post
  #1   Spotlight this post!  
Unread 08-07-2011, 21:20
Mk.32's Avatar
Mk.32 Mk.32 is offline
Registered User
AKA: Mark
FRC #2485 (W.A.R. Lords)
Team Role: Engineer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: San Diego
Posts: 770
Mk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud of
Encoder code...

Hello all, more java questions.

Working with the encoders, after wiring them up. I used the following code.

Quote:
public static Encoder left_encoder = new Encoder(6,7);

public static void encoder_print() {
System.out.println(left_encoder.get());
}
With all the necessary stuff between.

However it just prints a string of zeros.
Is there something wrong with the code or should I go check my wiring again?
__________________
Engineering mentor: Team 2485: WARLords 2013-

Team President: Team 3647 2010-2013
Reply With Quote