Thread
:
problems with multiple encoders, please help!
View Single Post
#
7
13-02-2009, 00:22
Alan Anderson
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Re: problems with multiple encoders, please help!
Code:
printf("%d %d\n", front.Get(), back.Get());
Shouldn't you be using the
%f
format specification instead of
%d
? I thought encoders returned floating point values.
__________________
::
qo'mey poSmoH Hol
:: language opens worlds
Alan Anderson
View Public Profile
Visit Alan Anderson's homepage!
Find all posts by Alan Anderson
Find CD-Media Photos by Alan Anderson
Find CD-Media Papers by Alan Anderson