|
Re: GTS strange behavior
A few pointers:
Kevin's code uses the C Library printf with his buffered, interrupt driven serial port routines. The default code has it's own printf and serial port initialization. You need to use one or the other but not both.
Kevin's encoder code is for a quadrature encoder. The gear tooth sensor is not a quadrature encoder, so there is no Phase B signal. This means that you cannot determine the direction of rotation from the gear tooth sensor.
__________________
FRC 623 2003,2004,2005,2006,2007,2008, 2009, 2010, 2011
FRC 1900 2007
FVC 60 and 193 2006
FVC 3271 2007
FTC 226 and 369 2008, 2009, 2010, 2011
FTC 3806 2010
|