[examples] HatchbotInlined: Use Subsystem factories (#4765)

This commit is contained in:
Starlight220
2022-12-07 01:10:39 +02:00
committed by GitHub
parent 8618dd4160
commit 3149dc64b8
7 changed files with 24 additions and 22 deletions

View File

@@ -6,6 +6,7 @@
#include <frc/DoubleSolenoid.h>
#include <frc/PneumaticsControlModule.h>
#include <frc2/command/CommandPtr.h>
#include <frc2/command/SubsystemBase.h>
#include "Constants.h"
@@ -19,12 +20,12 @@ class HatchSubsystem : public frc2::SubsystemBase {
/**
* Grabs the hatch.
*/
void GrabHatch();
frc2::CommandPtr GrabHatchCommand();
/**
* Releases the hatch.
*/
void ReleaseHatch();
frc2::CommandPtr ReleaseHatchCommand();
private:
// Components (e.g. motor controllers and sensors) should generally be