mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[examples] HatchbotInlined: Use Subsystem factories (#4765)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user