Create

Create

86M Downloads

Rotation Speed Controller - Floating point precision

blastgoggles opened this issue ยท 1 comments

commented

Hello team! First time posting a bug, love the mod so far!

I've encountered a strange error that I think might be internally a rounding error?

If you try and use the Rotation Speed Controller set to 150RPM if your input speed to the following, the RSC just.. Explodes off. Even without any load on the other end. Just Speed/stress/ometers.
5,10,20,27(??),40, 54,80,99,108,127,160.

Ready for something weird? If I set the motor to the following Speeds the Driving cog pops off if it has ANYTHING attached to the opposite side of it. (I had a speedo and stresso attached on that side for visiblity):
49, 63, 89,98,117,126.

Also: thank you for the Nice achievement. got a giggle while testing. XD

I thought it was multiples of 10, but the more I tested the weirder the numbers go.

My full test parameters were: increment from 1 to 150 in single increments.
I also tested these individual numbers: 160, 170,180,190,200,210,220,230,240,250,256.

So for fun I tried the trouble numbers in reverse. I set the motor to 150RPM and tried them as settings on the RSC. It blew up at these numbers:
5,10,20,40,80,99,127,160 (but NOT 27,54, and 108??)

The following speeds caused the cog to pop off:
49, 63, 89,98,126. (but NOT 117??)

As part of the testing I also tried a few of the motor speed numbers and the RSC set to 150 with NOTHING attached to the RSC and it still popped off.

hopefully this is helpfull, I'm sure you're knee-deep in other fixes and prep work.

thanks for reading!

commented

This issue has been addressed in 0.2.2a. Thanks for the report and feel free to re-open if need be.