The angle of a robot is dependent on the specific hardware, such as wheel size, encoder size, and vehicle width. Maybe you were lucky with the the other robot that the change in wheel diameter and wheel to wheel distance canceled each other out so the equations were the same, but normally you will not be so lucky

Assuming you have a two wheeled robot the same readings on two different setups can yield different results. In my simple illustration I have the axle of a two wheeled robot both bots have the same wheel_diameter
and use the same rotary encoders. One bot has distance R1
between the wheels the other has distance R2
suppose both robots keep a wheel stationary and the other wheel moves 5 clicks forward on the wheel encoder (and both bots use the same encoder and same size wheel). Using the simple equation for circumference of a semi-circle we can find the distance the wheels moved.
dist_trav = (pi * wheel_diameter) * (#ticks / total ticks on encoder)
Of course since one wheel is stationary, the bot is actually pivoting on another semicircle. We can calculate the new angle using
circumference = 2*pi*dist_between_wheels
dist_between_wheels is the radius of our circle
angle = % of circumference traveled * units = (dist_trav / circumference) * 360
we use 360 so the angle is in degrees, but you could use radians if desired
you will see that even in this example where the robots are identical except for the distance between the wheels the same number of ticks will mean very different angles. If r2=2*r1
we can see that dist_trav
is the same for both bots (since the wheels are the same diameter) but when we figure out the angles we get
black bot
angle_black = (dist_traveled / 2*pi*R1) * 360
red bot
angle_black = (dist_traveled / 2*pi*2*R1 ) * 360
= (dist_traveled / 4*pi *R1 ) * 360
so for the same movement of the wheels the red bot will only have 1/2 the angle change as the black bot did. This is just a toy example, but you can easily see how different diameters of wheels and distance between them can make a huge difference.