msoe-vex / SpinUp-ros2

This repository contains the ROS2 project that will be running on Raspberry Pi's on our robots.
3 stars 2 forks source link

Fix field-oriented control #13

Open Dylan-Powers opened 2 years ago

Dylan-Powers commented 2 years ago

At the moment, the 18in (mechanum drive) robot has a gyro installed, but the field oriented control is not working. We need to get this working for accurate driving during competition.

m_fieldOrientedControl in HolonomicDriveNode is what should do field oriented control. One difference between now and when it was working 2 years ago is that we are using a V5 sensor instead of a NavX over ROS. The InertialSensorNode may handle this but it is worth looking into.