TeamCode / org.firstinspires.ftc.teamcode.movement / MecanumDrive / move

move

open fun move(power: Double, vector: Vector2D, turn: Double, turnBehavior: TurnBehavior): Unit

Moves in a given direction at a given power while turning towards a given direction

Parameters

power - the power to move in

vector - the direction to move in

turn - the direction at which to turn

turnBehavior - how turning should be calculated

open fun move(power: Double, vector: Vector2D, turn: Double): Unit

Moves in a given direction at a given power while turning towards a given direction. Uses MULTIPLY for the turn behavior.

Parameters

power - the power to move in

vector - the direction to move in

turn - the direction at which to turn