[examples] Update Command-based starter project (#4778)

This commit is contained in:
Starlight220
2022-12-15 19:40:14 +02:00
committed by GitHub
parent bf7068ac27
commit 701995d6cc
12 changed files with 104 additions and 26 deletions

View File

@@ -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.
*/