Package org.firstinspires.ftc.teamcode
Class MovementAPI
- java.lang.Object
-
- org.firstinspires.ftc.teamcode.MovementAPI
-
public class MovementAPI extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MovementAPI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
init(API.Motor _fl, API.Motor _fr, API.Motor _bl, API.Motor _br)
Initializes the APIstatic void
move(double direction, double speed)
static void
move(double direction, double speed, boolean verbose)
Moves the robot given a direction and a speedstatic void
move(double power, double turn, double strafe, double speed)
static void
move(double powerY, double powerX, double turn, double speed, boolean verbose)
Moves the robot given the speed to move forward/back and left/rightstatic void
stop()
Stops the robot
-
-
-
Method Detail
-
init
public static void init(API.Motor _fl, API.Motor _fr, API.Motor _bl, API.Motor _br)
Initializes the API- Parameters:
_fl
- the front-left wheel_fr
- the front-right wheel_bl
- the back-left wheel_br
- the back-right wheel
-
move
public static void move(double powerY, double powerX, double turn, double speed, boolean verbose)
Moves the robot given the speed to move forward/back and left/right- Parameters:
powerY
- the speed to move forward/back, -1 to 1, positive being forwardpowerX
- the speed to move left/right, -1 to 1, positive being to the rightturn
- the speed to turn at, -1 to 1, positive being clockwisespeed
- the speed to move atverbose
- whether or not to log extra data to telemetry
-
move
public static void move(double power, double turn, double strafe, double speed)
-
move
public static void move(double direction, double speed, boolean verbose)
Moves the robot given a direction and a speed- Parameters:
direction
- the direction to move in, in degrees, with positive being to the leftspeed
- the speed to move atverbose
- whether or not to log extra data to telemetry
-
move
public static void move(double direction, double speed)
- See Also:
move(double, double)
-
stop
public static void stop()
Stops the robot
-
-