Thread: Encoder Code
View Single Post
  #8   Spotlight this post!  
Unread 13-02-2009, 18:05
dboisvert dboisvert is offline
Registered User
AKA: Dan Boisvert
FRC #2405 (Divided by Zero)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Michigan
Posts: 57
dboisvert is an unknown quantity at this point
Re: Encoder Code

I was wondering about a few lines of code.

Code:
		printf("Encoder Motor 1: %E\n", encoderMotor1->Get());
		printf("Encoder Motor 2: %E\n", encoderMotor2->Get());
		printf("EM1 Distance: %e\n", encoderMotor1->GetDistance());
The first two lines providing the warning

warning: double format, different type arg (arg 2)

I was wondering if this would affect the data at all

Note - I also tried lowercase f instead of capital E
Reply With Quote