Can someone help me understand how to render the mk4i turn motor gear ratio as a decimal?
The gear ratio for the angle motor is listed as 150/7:1. How is that made into a decimal? Would it be 1/(150/7) or .04667? Or does it just mean 150/7 which is 21.4286?
The 150/7:1 is indicating that for every 150 spins of the motor shaft, the swerve module will spin 7 times. So, both decimal values are correct, just the units are different. 0.04667 swerve rotation / motor rotations or 21.4286 motor rotations / swerve rotation.
If you’re converting from output shaft (azimuth) rotations to motor rotations, then multiply by 150/7. If you’re converting from motor rotations to azimuth rotations, then multiply by 7/150.