MecanumDriveWheelSpeeds
- class wpimath.kinematics.MecanumDriveWheelSpeeds(frontLeft: meters_per_second = 0, frontRight: meters_per_second = 0, rearLeft: meters_per_second = 0, rearRight: meters_per_second = 0)
Bases:
pybind11_object
Represents the wheel speeds for a mecanum drive drivetrain.
- desaturate(attainableMaxSpeed: meters_per_second) None
Renormalizes the wheel speeds if any individual speed is above the specified maximum.
Sometimes, after inverse kinematics, the requested speed from one or more wheels may be above the max attainable speed for the driving motor on that wheel. To fix this issue, one can reduce all the wheel speeds to make sure that all requested module speeds are at-or-below the absolute threshold, while maintaining the ratio of speeds between wheels.
- Parameters:
attainableMaxSpeed – The absolute max speed that a wheel can reach.
- static fromFeet(frontLeft: feet_per_second, frontRight: feet_per_second, rearLeft: feet_per_second, rearRight: feet_per_second) wpimath.kinematics._kinematics.MecanumDriveWheelSpeeds
- property frontLeft
Speed of the front-left wheel.
- property frontLeft_fps
- property frontRight
Speed of the front-right wheel.
- property frontRight_fps
- property rearLeft
Speed of the rear-left wheel.
- property rearLeft_fps
- property rearRight
Speed of the rear-right wheel.
- property rearRight_fps