Quote:
Originally Posted by Anorak
No, we have a cRIO to control it, and are programming it in C++
|
Are you using the correct variable types in your code? It sounds like you are using an int or char, which would only allow you to use three speeds.
You should be using a float, which can contain nearly any* decimal value. The speed controller classes, such as Victor, require a value between -1.0 and 1.0. To run at any speed other than full, simply send values like -0.62 or 0.48 or 0.11 or -0.88.
* Within a reasonable magnitude. See this for more info: http://en.wikipedia.org/wiki/Floating_point