
Re: Reversing return value of nMotorEncoder
I don't know of any way intrinsic to the ROBOTC, but you could make your own wrapper on nMotorEncoder that accomplishes this. You could make a nicer, general form if ROBOTC supported preprocessor token pasting, but here's an idea that will work:
Then you can use them like:
You can define similar sets of macros for each of your motors.
Cheers,
--Ryan