|
Re: Only one side moves!?!?
Quote:
|
Originally Posted by kiettyyyy
They are just normal int's. I tried sticking 0.59 as a floating point value by putting an F at the end, but that still didn’t work. I'll give it a try tomorrow afternoon. Thanks Matt!
|
Even so, integers could still make for flaky numbers. My recommendation is multiply it by 59, then divide by 100, fundamentally it's still the same, but that operation is much faster, and more supported by the processor, with minimal (and predictable) data loss in the form of rounding error.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!
I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
|