Odometry data message (Encoders)

As you can see in the picture, the magnetic encoder contains twenty-four poles, but the distance calculations were calculated on 12 poles only. Why is this?

Hello @amrshaheen882,

We can’t see any image in the post. Could you update the post in order to include it? Also, what course/exercise are you following?