|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <mecanum_calculator.hpp>
Public Member Functions | |
| MecanumCalculator (const Meters &horizontalWheelDistance, const Meters &verticalWheelDistance, const Meters &wheelRadius) | |
| void | setWheelSpeeds (const QuadRPM &quadDriveData) |
| Velocity2D | getTranslation () const |
| RPM | getRotation () const |
This uses the equations from this paper https://research.ijcaonline.org/volume113/number3/pxc3901586.pdf
| fang::chassis::MecanumCalculator::MecanumCalculator | ( | const Meters & | horizontalWheelDistance, |
| const Meters & | verticalWheelDistance, | ||
| const Meters & | wheelRadius | ||
| ) |
| RPM fang::chassis::MecanumCalculator::getRotation | ( | ) | const |
Counterclockwise is positive
| Velocity2D fang::chassis::MecanumCalculator::getTranslation | ( | ) | const |
Returns the movement of the robot relative to the robot.