Quote:
Originally Posted by GeeTwo
If you were using something other than a Talon, you would only have to change the initial attach call; the rest of the code wouldn't need to be modified. For example, a jaguar would be attached with:
Code:
driveServo.attach(3, 670, 2330); // Jaguar
Of course, for a motor controller, you'd ideally like the input limits to be a float ranging from -1 to +1.
|
Depending on how fast all this is running (and what else is going on) using floats may be out of the question due to the slower math.