This is my first time programming and I’m a little confused about odometry functions, especially driveToPoint() function. I have been trying to figure it out but I cannot understand how to get the values to put in the parameters. I found this under tutorials:
// turn 45 degrees and turn approximately 1.4 ft
chassis->driveToPoint({1_ft, 1_ft});
I understand the 1.4 feet part (sqrt(1^2 + 1^2)), but how do they calculate the degrees? Does it have something to do with unit circle? Any help will be greatly appreciated.
Thank you!