mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[examples] Update Command-based starter project (#4778)
This commit is contained in:
@@ -4,12 +4,18 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc2/command/CommandPtr.h>
|
||||
#include <frc2/command/SubsystemBase.h>
|
||||
|
||||
class ExampleSubsystem : public frc2::SubsystemBase {
|
||||
public:
|
||||
ExampleSubsystem();
|
||||
|
||||
/**
|
||||
* Example command factory method.
|
||||
*/
|
||||
frc2::CommandPtr ExampleMethodCommand();
|
||||
|
||||
/**
|
||||
* Will be called periodically whenever the CommandScheduler runs.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user