-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBot.java
33 lines (25 loc) · 883 Bytes
/
Bot.java
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
28
29
30
31
32
33
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robotcore.hardware.Servo;
import com.qualcomm.robotcore.util.ElapsedTime;
@Disabled
public class Bot
{
public DcMotor FRMotor = null;
public DcMotor FLMotor = null;
public DcMotor BRMotor = null;
public DcMotor BLMotor = null;
public Servo Hook = null;
HardwareMap hwMap = null;
public void init(HardwareMap ahwMap)
{
hwMap = ahwMap;
FRMotor = hwMap.dcMotor.get("FRMotor");
FLMotor = hwMap.dcMotor.get("FLMotor");
BRMotor = hwMap.dcMotor.get("BRMotor");
BLMotor = hwMap.dcMotor.get("BLMotor");
Hook = hwMap.servo.get("Hook");
}
}