MecanumKinematics

class MecanumKinematics @JvmOverloads constructor(strafeCompensation: Double = 1.1) : DriveKinematics<MecanumWheelPowers> (source)

Converts raw drive inputs into mecanum wheel powers.

Applies a strafe compensation factor to account for mecanum wheels being physically less efficient strafing than driving forward/backward.

Constructors

Link copied to clipboard
constructor(strafeCompensation: Double = 1.1)

Functions

Link copied to clipboard
open override fun calculate(input: DriveInput): MecanumWheelPowers

Converts input into this drivetrain's output type.