-
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 branch 'main' of https://github.com/4698RaiderRobotics/FRC-2023
- Loading branch information
Showing
11 changed files
with
81 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) FIRST and other WPILib contributors. | ||
// Open Source Software; you can modify and/or share it under the terms of | ||
// the WPILib BSD license file in the root directory of this project. | ||
|
||
#include "commands/autonomous/DoNothingAuto.h" | ||
|
||
#include <frc2/command/WaitCommand.h> | ||
#include <frc2/command/InstantCommand.h> | ||
#include <frc2/command/ParallelCommandGroup.h> | ||
|
||
// NOTE: Consider using this command inline, rather than writing a subclass. | ||
// For more information, see: | ||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html | ||
DoNothingAuto::DoNothingAuto( Drivetrain *drive, ArmSubsystem *arm, GrabberSubsystem *grabber ) { | ||
// Add your commands here, e.g. | ||
// AddCommands(FooCommand{}, BarCommand{}); | ||
AddCommands( | ||
frc2::WaitCommand(0.5_s), | ||
frc2::InstantCommand([this, arm] {arm->ArmOn(-0.75, 0.5); }, { arm }), | ||
frc2::WaitCommand(0.4_s), | ||
frc2::InstantCommand([this, arm] {arm->ArmOn(0.0, 0.0); }, { arm }) | ||
); | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) FIRST and other WPILib contributors. | ||
// Open Source Software; you can modify and/or share it under the terms of | ||
// the WPILib BSD license file in the root directory of this project. | ||
|
||
#pragma once | ||
|
||
#include <frc2/command/CommandHelper.h> | ||
#include <frc2/command/SequentialCommandGroup.h> | ||
|
||
#include "subsystems/Drivetrain.h" | ||
#include "subsystems/ArmSubsystem.h" | ||
#include "subsystems/GrabberSubsystem.h" | ||
|
||
class DoNothingAuto | ||
: public frc2::CommandHelper<frc2::SequentialCommandGroup, | ||
DoNothingAuto> { | ||
public: | ||
DoNothingAuto( Drivetrain *drive, ArmSubsystem *arm, GrabberSubsystem *grabber ); | ||
}; |