mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Improved Command-based examples (#906)
Robot.cpp has been split into header-source pairs and the Command-based examples now define an example subsystem in the Robot class.
This commit is contained in:
committed by
Peter Johnson
parent
14228d82f3
commit
96e9a6989c
@@ -7,9 +7,11 @@
|
||||
|
||||
#include "ExampleCommand.h"
|
||||
|
||||
#include "../Robot.h"
|
||||
|
||||
ExampleCommand::ExampleCommand() {
|
||||
// Use Requires() here to declare subsystem dependencies
|
||||
// eg. Requires(&Robot::chassis);
|
||||
Requires(&Robot::m_subsystem);
|
||||
}
|
||||
|
||||
// Called just before this Command runs the first time
|
||||
|
||||
Reference in New Issue
Block a user