I am currently working on creating an acceleration function for my programming skills, particularly while my robot is strafing. Simply put, the robot will strafe faster the further away it is from the encoder tick goal, and strafe slower as it gets closer to that goal. However, for some reason, in my calculations, I keep getting 0 as my final result for the ideal strafing speed, which is not correct. I was hoping that with a fresh set of eyes, someone would be able to spot the issue in my calculations, since I have not been able to for the past hour and a half.
Thank you so much for your time!

