JaciBrunning / Pathfinder

Cross-Platform, Multi-Use Motion Profiling and Trajectory Generation
MIT License
255 stars 78 forks source link

Gyro Affecting Paths #64

Closed javacafe01 closed 5 years ago

javacafe01 commented 5 years ago

Alright, so Pathfinder was working perfectly on our old bot, which had cims and an Analog Devices Gyro. Our new bot contains Neos and a Nav-X Micro. After adjusting all the values, the robot didn't even follow the path. However, once I took out the gyro code, The robot followed the path pretty well. So I isolated the problem to the Nav-X gyro. Should I use getAngle() (Continous degrees) or getYaw() (180 to -180)? And should I put a negative in the calculations to reverse the gyro addressed in the problem here? Thanks a lot, this is the first year our team is using your library.

JaciBrunning commented 5 years ago

Either GetAngle or GetYaw should work just fine. I can't provide any specific support for technical problems with hardware, check the gyro is exporting data correctly