-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made hangsubsystem and named arm and hang properly to match the drive…
…rstation and made it setup correctly for when it turns on (#34) * added hang subsystem * forgot to change the command names * hang subsystem * made the strings for Hardware.java and setup.java. also i made setup on Robot.java and Hardware.java work also this builds * fixed your complaints
- Loading branch information
1 parent
c6209b5
commit 8d275ff
Showing
5 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
Twenty403/src/main/java/org/firstinspires/ftc/twenty403/subsystems/HangSubsystem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.firstinspires.ftc.twenty403.subsystems; | ||
|
||
import com.acmerobotics.dashboard.config.Config; | ||
import com.technototes.library.hardware.servo.Servo; | ||
import com.technototes.library.logger.Log; | ||
import com.technototes.library.logger.Loggable; | ||
import com.technototes.library.subsystem.Subsystem; | ||
import com.technototes.library.hardware.motor.Motor; | ||
import org.firstinspires.ftc.robotcore.external.navigation.DistanceUnit; | ||
import org.firstinspires.ftc.twenty403.Hardware; | ||
|
||
@Config | ||
public class HangSubsystem implements Subsystem, Loggable { | ||
|
||
private Motor suspend; | ||
|
||
|
||
public static double SUSPEND_POSITION = .4; | ||
|
||
public HangSubsystem(Hardware hw) { | ||
suspend = hw.suspend; | ||
} | ||
|
||
|
||
public void suspend() { | ||
suspend.setPower(SUSPEND_POSITION); | ||
} | ||
|
||
|
||
} |