forked from FIRST-Tech-Challenge/FtcRobotController
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDriverControl.java
More file actions
27 lines (19 loc) · 829 Bytes
/
DriverControl.java
File metadata and controls
27 lines (19 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorEx;
@TeleOp(name = "Driver", group = "TeleOp")
public class DriverControl extends LinearOpMode {
private PushBot pushBot;
public void runOpMode () {
/**
* Instantiate hardware objects before waitForStart();
* */
waitForStart();
while (opModeIsActive()) {
//TODO: Control the push bot using gamepad1's joystick, the left bumper should override the joysticks input and force the robot to stop
//the joystick returns normalized double values from -1 and 1 for both the x and y axis
}
}
}