-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathRobot.java
More file actions
37 lines (33 loc) · 1.21 KB
/
Robot.java
File metadata and controls
37 lines (33 loc) · 1.21 KB
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
34
35
36
37
package org.firstinspires.ftc.hoops;
import com.technototes.library.logger.Loggable;
import com.technototes.library.util.Alliance;
import org.firstinspires.ftc.hoops.helpers.StartingPosition;
import org.firstinspires.ftc.hoops.subsystems.DrivebaseSubsystem;
import org.firstinspires.ftc.hoops.subsystems.IntakeSubsystem;
import org.firstinspires.ftc.hoops.subsystems.LauncherSubsystem;
public class Robot implements Loggable {
public StartingPosition position;
public Alliance alliance;
public double initialVoltage;
public DrivebaseSubsystem drivebaseSubsystem;
public LauncherSubsystem launcherSubsystem;
public IntakeSubsystem intakeSubsystem;
public Robot(Hardware hw) {
this.initialVoltage = hw.voltage();
if (Setup.Connected.DRIVEBASE) {
this.drivebaseSubsystem = new DrivebaseSubsystem(
hw.flMotor,
hw.frMotor,
hw.rlMotor,
hw.rrMotor,
hw.imu
);
}
if (Setup.Connected.LAUNCHER) {
this.launcherSubsystem = new LauncherSubsystem(hw);
}
if (Setup.Connected.INTAKE) {
this.intakeSubsystem = new IntakeSubsystem(hw);
}
}
}