Adds command examples to built examples (#1062)

This commit is contained in:
Thad House
2018-05-15 23:56:03 -07:00
committed by Peter Johnson
parent 7cd15aa049
commit 938d5379e6
26 changed files with 771 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* 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. */
/*----------------------------------------------------------------------------*/
#include "ReplaceMeSubsystem.h"
ReplaceMeSubsystem::ReplaceMeSubsystem() : Subsystem("ExampleSubsystem") {}
void ReplaceMeSubsystem::InitDefaultCommand() {
// Set the default command for a subsystem here.
// SetDefaultCommand(new MySpecialCommand());
}
// Put methods for controlling this subsystem
// here. Call these from Commands.

View File

@@ -0,0 +1,20 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* 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
#include <Commands/Subsystem.h>
class ReplaceMeSubsystem : public frc::Subsystem {
private:
// It's desirable that everything possible under private except
// for methods that implement subsystem capabilities
public:
ReplaceMeSubsystem();
void InitDefaultCommand() override;
};