2017-10-17 21:37:58 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2020-07-10 21:21:31 -07:00
|
|
|
/* Copyright (c) 2019-2020 FIRST. All Rights Reserved. */
|
2017-10-17 21:37:58 -07:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
};
|