|
Re: Using an Non First Microcontroller with Victor 884 Motor Controller
The Jaguar spec wants 5.0125ms or greater period, according to Joe.
5ms would be a nice round number of milliseconds to use for timing the DIO loop. It's not 5ms, it's 5.05ms, which is clearly intentional because the timing is determined (in LabVIEW at least) by multiplying/dividing a bunch of things together, one of which is a 5.05 double-precision float constant. Even if it was the nearest round number, since they used a float it would have to round when converting to integer later in the math anyway since the period has to be a whole number of ticks, which itself is a whole number of 40mhz clock cycles.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor
"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
|