Interface Drivetrain
-
- All Superinterfaces:
Stoppable
- All Known Implementing Classes:
ModularDrivetrain
public interface Drivetrain extends Stoppable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
arcade(double speed, double turn)
Drive in arcade mode.void
tank(double leftSpeed, double rightSpeed)
Drive in tank mode.
-
-
-
Method Detail
-
arcade
void arcade(double speed, double turn)
Drive in arcade mode.- Parameters:
speed
- A percent speed for forward/backward motion between -1 and 1, inclusive. 1 is forward and -1 is reverse.turn
- A percent speed for turning between -1 and 1, inclusive. 1 is clockwise and -1 is counter clockwise.
-
tank
void tank(double leftSpeed, double rightSpeed)
Drive in tank mode.- Parameters:
leftSpeed
- A percent speed for the left side between -1 and 1, inclusive. 1 is forward and -1 is reverse.rightSpeed
- A percent speed for the right side between -1 and 1, inclusive. 1 is forward and -1 is reverse.
-
-