Hello,
I’m having trouble getting the Absolute value as ticks in the CTRE CANcoder Mag. It always shows the absolute value in decimal places, for example, .472 when I use this command CANcoder.getAbsolutePosition(). And we are using the Phoenix v6.
Thanks,
The getAbsolutePosition method returns a value in units of rotations. The range depends on the configuration of AbsoluteSensorRange. The new Phoenix 6 docs do a great job specifying the units, which has been awesome.
But I want in ticks. How to convert it to ticks?
Never mind, I figured it out. Thanks.
1 Like