Now you can download a copy of these docs so you can use them offline! Download now
StartCommand.cpp
00001 /*----------------------------------------------------------------------------*/ 00002 /* Copyright (c) FIRST 2011. All Rights Reserved. */ 00003 /* Open Source Software - may be modified and shared by FRC teams. The code */ 00004 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */ 00005 /*----------------------------------------------------------------------------*/ 00006 00007 #include "Commands/StartCommand.h" 00008 00009 StartCommand::StartCommand(Command *commandToStart) : 00010 Command("StartCommand") 00011 { 00012 m_commandToFork = commandToStart; 00013 } 00014 00015 void StartCommand::Initialize() 00016 { 00017 m_commandToFork->Start(); 00018 } 00019 00020 void StartCommand::Execute() 00021 { 00022 } 00023 00024 void StartCommand::End() 00025 { 00026 } 00027 00028 void StartCommand::Interrupted() 00029 { 00030 } 00031 00032 bool StartCommand::IsFinished() 00033 { 00034 return true; 00035 }
Generated on Thu Jan 12 2012 22:35:24 for WPILibC++ by
1.7.1