Skip to content

Commit 3f24ec1

Browse files
authored
Merge pull request #143 from technototes/revert-141-OspreyBranch
accident
2 parents 614a1eb + fbad3ba commit 3f24ec1

File tree

123 files changed

+776
-5786
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+776
-5786
lines changed
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.firstinspires.ftc.hoops;
22

3-
import com.technototes.library.hardware.servo.ServoGroup;
3+
import com.technototes.library.hardware.servo.Servo;
44
import org.firstinspires.ftc.hoops.subsystems.ClawAndWristSubsystem;
55

66
//@Config
@@ -13,10 +13,6 @@ public class ClawAndWristBot {
1313
public ClawAndWristSubsystem caw;
1414

1515
public ClawAndWristBot() {
16-
caw = new ClawAndWristSubsystem(
17-
new ServoGroup(CLAW1),
18-
new ServoGroup(CLAW2),
19-
new ServoGroup(WRIST)
20-
);
16+
caw = new ClawAndWristSubsystem(new Servo(CLAW1), new Servo(CLAW2), new Servo(WRIST));
2117
}
2218
}

LearnBot/src/main/java/org/firstinspires/ftc/hoops/Hardware.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import com.technototes.library.hardware.sensor.IGyro;
1212
import com.technototes.library.hardware.sensor.IMU;
1313
import com.technototes.library.hardware.sensor.Rev2MDistanceSensor;
14-
import com.technototes.library.hardware.servo.ServoGroup;
14+
import com.technototes.library.hardware.servo.Servo;
1515
import com.technototes.library.logger.Loggable;
1616
import com.technototes.vision.hardware.Webcam;
1717
import java.util.List;
@@ -25,8 +25,8 @@ public class Hardware implements Loggable {
2525
public Motor<DcMotorEx> placeholder1;
2626
public DcMotorEx liftMotor;
2727

28-
public ServoGroup placeholder2;
29-
public ServoGroup servo;
28+
public Servo placeholder2;
29+
public Servo servo;
3030

3131
public IGyro imu;
3232
public Webcam camera;
@@ -67,7 +67,7 @@ public Hardware(HardwareMap hwmap) {
6767
}
6868
if (Setup.Connected.TESTSUBSYSTEM) {
6969
if (Setup.Connected.SERVO) {
70-
this.servo = new ServoGroup(Setup.HardwareNames.SERVO);
70+
this.servo = new Servo(Setup.HardwareNames.SERVO);
7171
}
7272
// if (Setup.Connected.COLOR_SENSOR) {
7373
// this.colorSensor = new ColorDistanceSensor(Setup.HardwareNames.COLOR);

LearnBot/src/main/java/org/firstinspires/ftc/hoops/subsystems/ClawAndWristSubsystem.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.firstinspires.ftc.hoops.subsystems;
22

33
import com.qualcomm.robotcore.util.Range;
4-
import com.technototes.library.hardware.servo.ServoGroup;
4+
import com.technototes.library.hardware.servo.Servo;
55
import com.technototes.library.logger.Log;
66
import com.technototes.library.logger.Loggable;
77
import com.technototes.library.subsystem.Subsystem;
@@ -31,11 +31,11 @@ public class ClawAndWristSubsystem implements Subsystem, Loggable {
3131
@Log(name = "Wrist")
3232
public double WristPos;
3333

34-
private ServoGroup claw1;
35-
private ServoGroup claw2;
36-
private ServoGroup wrist;
34+
private Servo claw1;
35+
private Servo claw2;
36+
private Servo wrist;
3737

38-
public ClawAndWristSubsystem(ServoGroup c1, ServoGroup c2, ServoGroup w) {
38+
public ClawAndWristSubsystem(Servo c1, Servo c2, Servo w) {
3939
claw1 = c1;
4040
claw2 = c2;
4141
wrist = w;

LearnBot/src/main/java/org/firstinspires/ftc/hoops/subsystems/PlacementSubsystem.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.qualcomm.robotcore.hardware.DcMotor;
44
import com.qualcomm.robotcore.hardware.DcMotorEx;
5-
import com.technototes.library.hardware.servo.ServoGroup;
5+
import com.technototes.library.hardware.servo.Servo;
66
import com.technototes.library.logger.Log;
77
import com.technototes.library.logger.Loggable;
88
import com.technototes.library.subsystem.Subsystem;
@@ -17,7 +17,7 @@ public class PlacementSubsystem implements Subsystem, Loggable {
1717
public static double ScoreServo = 0.5;
1818

1919
public static double ArmServo = 0.5;
20-
public ServoGroup armServo;
20+
public Servo armServo;
2121

2222
public static double ScoreServoInput = 0.5;
2323

@@ -27,7 +27,7 @@ public class PlacementSubsystem implements Subsystem, Loggable {
2727

2828
public static double ArmServoOutput = 0.5;
2929

30-
public ServoGroup scoreServo;
30+
public Servo scoreServo;
3131
public DcMotorEx liftMotor;
3232
private boolean isHardware;
3333

LearnBot/src/main/java/org/firstinspires/ftc/hoops/subsystems/TestSubsystem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import com.qualcomm.robotcore.util.Range;
77
import com.technototes.library.hardware.motor.EncodedMotor;
88
import com.technototes.library.hardware.sensor.Rev2MDistanceSensor;
9-
import com.technototes.library.hardware.servo.ServoGroup;
9+
import com.technototes.library.hardware.servo.Servo;
1010
import com.technototes.library.logger.Log;
1111
import com.technototes.library.logger.Loggable;
1212
import com.technototes.library.subsystem.Subsystem;
@@ -37,7 +37,7 @@ public class TestSubsystem implements Subsystem, Loggable {
3737
// but only while/if the the distance is greater than 10cm
3838
private EncodedMotor<DcMotorEx> theMotor;
3939

40-
private ServoGroup servo;
40+
private Servo servo;
4141

4242
private Rev2MDistanceSensor theSensor;
4343
private boolean running;

0 commit comments

Comments
 (0)