-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from ftc16072/TestingTeleOpTree
Testing tele op tree
- Loading branch information
Showing
12 changed files
with
219 additions
and
44 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...main/java/org/firstinspires/ftc/teamcode/ftc16072/BehaviorTrees/Actions/AddTelemetry.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,12 @@ | ||
package org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Actions; | ||
|
||
import org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Node; | ||
import org.firstinspires.ftc.teamcode.ftc16072.OpModes.QQOpMode; | ||
|
||
public class AddTelemetry extends Node { | ||
@Override | ||
public State tick(QQOpMode opmode) { | ||
opmode.telemetry.addData("behavior tree is here: ", 11); | ||
return State.SUCCESS; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...g/firstinspires/ftc/teamcode/ftc16072/BehaviorTrees/Actions/MoveLiftToIntakePosition.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,12 @@ | ||
package org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Actions; | ||
|
||
import org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Node; | ||
import org.firstinspires.ftc.teamcode.ftc16072.OpModes.QQOpMode; | ||
|
||
public class MoveLiftToIntakePosition extends Node { | ||
@Override | ||
public State tick(QQOpMode opmode) { | ||
opmode.robot.lift.goToIntake(); | ||
return State.SUCCESS; | ||
} | ||
} |
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
12 changes: 12 additions & 0 deletions
12
...ain/java/org/firstinspires/ftc/teamcode/ftc16072/BehaviorTrees/Actions/RumbleGamepad.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,12 @@ | ||
package org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Actions; | ||
|
||
import org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Node; | ||
import org.firstinspires.ftc.teamcode.ftc16072.OpModes.QQOpMode; | ||
|
||
public class RumbleGamepad extends Node { | ||
@Override | ||
public State tick(QQOpMode opmode) { | ||
opmode.gamepad1.rumbleBlips(2); | ||
return State.SUCCESS; | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
...java/org/firstinspires/ftc/teamcode/ftc16072/BehaviorTrees/Conditions/IfLiftAtBottom.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,17 @@ | ||
package org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Conditions; | ||
|
||
import org.firstinspires.ftc.teamcode.ftc16072.BehaviorTrees.Node; | ||
import org.firstinspires.ftc.teamcode.ftc16072.OpModes.QQOpMode; | ||
|
||
public class IfLiftAtBottom extends Node { | ||
@Override | ||
public State tick(QQOpMode opmode) { | ||
opmode.telemetry.addData("limit switch", opmode.robot.holdingCell.isLimitSwitchDetected()); | ||
if(opmode.robot.holdingCell.isLimitSwitchDetected()){ | ||
return State.SUCCESS; | ||
|
||
|
||
} | ||
return State.FAILURE; | ||
} | ||
} |
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
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