In most cases, the WPI Robotics Library is equivalent between LabVIEW and C++, although the documentation isn't always as good for one or the other. 99% of the time, you should be able to look at the LabVIEW documentation if the C++ documentation isn't clear (and vice versa). Don't get caught up in the name of the document.
Quote:
|
Returning values between 0 and 255 will lower your precision, as a floating point variable can hold much more data than an unsigned character.
|
I don't believe that is true in this case. I'm pretty sure that DS sends the values to the cRIO as a single byte integer. In this case, they should be equivilent.
If you are trying to directly copy an algorithm from the IFI controller, it may be easier if you use the raw joystick values and the PWM class, but for implementing new things, you'll probably find it easier to work with the floating point values.