Skip to content
This repository was archived by the owner on Sep 12, 2023. It is now read-only.

Commit 013daf5

Browse files
committed
more basic skeleton code for autonomous
1 parent f1fa488 commit 013daf5

11 files changed

+146
-9
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package org.firstinspires.ftc.teamcode.commands.autonomous;
2+
3+
import com.technototes.library.command.SequentialCommandGroup;
4+
5+
import org.firstinspires.ftc.teamcode.subsystems.BucketSubsystem;
6+
import org.firstinspires.ftc.teamcode.subsystems.DrivebaseSubsystem;
7+
8+
public class AutonomousLoopCommandGroup extends SequentialCommandGroup {
9+
public AutonomousLoopCommandGroup(DrivebaseSubsystem drivebaseSystem, BucketSubsystem bucketSystem){
10+
// new GoToDepotFromShelfCommand(),
11+
// new DepotLoadingBlockCommand(),
12+
// new GoToShelfFromDepotCommand(),
13+
// new ShelfUnloadingLevel3Command(),
14+
}
15+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* equivalent to AutonomousCycleCommand.java in TechnoOne
3+
*/
4+
package org.firstinspires.ftc.teamcode.commands.autonomous;
5+
6+
import com.technototes.library.command.SequentialCommandGroup;
7+
8+
import org.firstinspires.ftc.teamcode.subsystems.BucketSubsystem;
9+
import org.firstinspires.ftc.teamcode.subsystems.CarouselSubsystem;
10+
import org.firstinspires.ftc.teamcode.subsystems.DrivebaseSubsystem;
11+
12+
public class AutonomousPhaseCommand extends SequentialCommandGroup {
13+
public AutonomousPhaseCommand(DrivebaseSubsystem drivebaseSystem, CarouselSubsystem carouselSystem, BucketSubsystem bucketSystem){
14+
super(new AutonomousDuckCommand(drivebaseSystem, carouselSystem), //goto carousel and spin it
15+
new GoToShelfFromCarouselCommand(), //after finish the duck
16+
new ShelfUnloadingLevel3Command(), //unload the preloaded cube
17+
new AutonomousLoopCommandGroup(drivebaseSystem, bucketSystem), //assuming running for three loops
18+
new AutonomousLoopCommandGroup(drivebaseSystem, bucketSystem),
19+
new AutonomousLoopCommandGroup(drivebaseSystem, bucketSystem),
20+
new GoToParkingFromShelfCommand()); //goto parking
21+
}
22+
}
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
package org.firstinspires.ftc.teamcode.commands.autonomous;
22

3-
public class DepotLoadingBlockCommand {
3+
import com.technototes.library.command.Command;
4+
5+
public class DepotLoadingBlockCommand implements Command {
6+
@Override
7+
public void init() {
8+
9+
}
10+
11+
@Override
12+
public void execute() {
13+
14+
}
415
}
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
package org.firstinspires.ftc.teamcode.commands.autonomous;
22

3+
import com.technototes.library.command.Command;
34
import com.technototes.path.command.TrajectorySequenceCommand;
45

5-
public class GoToCarouselFromSpawnCommand {
6+
public class GoToCarouselFromSpawnCommand implements Command {
7+
@Override
8+
public void init() {
9+
10+
}
11+
12+
@Override
13+
public void execute() {
14+
15+
}
616
}
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
package org.firstinspires.ftc.teamcode.commands.autonomous;
22

3-
public class GoToDepotFromShelfCommand {
3+
import com.technototes.library.command.Command;
4+
5+
public class GoToDepotFromShelfCommand implements Command {
6+
@Override
7+
public void init() {
8+
9+
}
10+
11+
@Override
12+
public void execute() {
13+
14+
}
415
}
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
package org.firstinspires.ftc.teamcode.commands.autonomous;
22

3-
public class GoToParkingFromShelfCommand {
3+
import com.technototes.library.command.Command;
4+
5+
public class GoToParkingFromShelfCommand implements Command {
6+
@Override
7+
public void init() {
8+
9+
}
10+
11+
@Override
12+
public void execute() {
13+
14+
}
415
}
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
package org.firstinspires.ftc.teamcode.commands.autonomous;
22

3-
public class GoToShelfFromCarouselCommand {
3+
import com.technototes.library.command.Command;
4+
5+
public class GoToShelfFromCarouselCommand implements Command {
6+
@Override
7+
public void init() {
8+
9+
}
10+
11+
@Override
12+
public void execute() {
13+
14+
}
415
}
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
package org.firstinspires.ftc.teamcode.commands.autonomous;
22

3-
public class GoToShelfFromDepotCommand {
3+
import com.technototes.library.command.Command;
4+
5+
public class GoToShelfFromDepotCommand implements Command {
6+
@Override
7+
public void init() {
8+
9+
}
10+
11+
@Override
12+
public void execute() {
13+
14+
}
415
}
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
package org.firstinspires.ftc.teamcode.commands.autonomous;
22

3-
public class ShelfUnloadingLevel1Command {
3+
import com.technototes.library.command.Command;
4+
import com.technototes.library.subsystem.Subsystem;
5+
6+
public class ShelfUnloadingLevel1Command implements Command {
7+
8+
@Override
9+
public void init() {
10+
11+
}
12+
13+
@Override
14+
public void execute() {
15+
16+
}
417
}
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
package org.firstinspires.ftc.teamcode.commands.autonomous;
22

3-
public class ShelfUnloadingLevel2Command {
3+
import com.technototes.library.command.Command;
4+
5+
public class ShelfUnloadingLevel2Command implements Command {
6+
@Override
7+
public void init() {
8+
9+
}
10+
11+
@Override
12+
public void execute() {
13+
14+
}
415
}

0 commit comments

Comments
 (0)