|
Re: Need help programming our swerve with feedback?
You are probably going to need a trig table in order to interpret the x and y axes of the joystick. This can be a slow process and dramatically slow down your performance, the same (or worse) as using floating point numbers. I don't really know all the machinations of EEPROM (Ajay knows more than I), or much about swerve, but you are going to need to find that angle if you want to get anywhere...
From there I would use a proportional value to move the motors that decreases as you close on the right position.
__________________
~Alex Baxter
Programming, Arms operation, Team 254
|