2020-12-26 14:12:05 -08:00
|
|
|
// 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.
|
2017-10-17 21:37:58 -07:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2022-12-15 19:40:14 +02:00
|
|
|
#include <frc2/command/CommandPtr.h>
|
2019-08-25 23:55:59 -04:00
|
|
|
#include <frc2/command/SubsystemBase.h>
|
2017-10-17 21:37:58 -07:00
|
|
|
|
2019-08-25 23:55:59 -04:00
|
|
|
class ExampleSubsystem : public frc2::SubsystemBase {
|
2018-05-13 17:09:56 -07:00
|
|
|
public:
|
|
|
|
|
ExampleSubsystem();
|
2019-08-25 23:55:59 -04:00
|
|
|
|
2022-12-15 19:40:14 +02:00
|
|
|
/**
|
|
|
|
|
* Example command factory method.
|
|
|
|
|
*/
|
|
|
|
|
frc2::CommandPtr ExampleMethodCommand();
|
|
|
|
|
|
2019-08-25 23:55:59 -04:00
|
|
|
/**
|
|
|
|
|
* Will be called periodically whenever the CommandScheduler runs.
|
|
|
|
|
*/
|
|
|
|
|
void Periodic() override;
|
|
|
|
|
|
2020-07-10 21:21:31 -07:00
|
|
|
/**
|
|
|
|
|
* Will be called periodically whenever the CommandScheduler runs during
|
|
|
|
|
* simulation.
|
|
|
|
|
*/
|
|
|
|
|
void SimulationPeriodic() override;
|
|
|
|
|
|
2018-05-13 17:09:56 -07:00
|
|
|
private:
|
2019-08-25 23:55:59 -04:00
|
|
|
// Components (e.g. motor controllers and sensors) should generally be
|
|
|
|
|
// declared private and exposed only through public methods.
|
2017-10-17 21:37:58 -07:00
|
|
|
};
|