Now you can download a copy of these docs so you can use them offline! Download now
ButtonScheduler.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 "Buttons/ButtonScheduler.h" 00008 00009 #include "Commands/Scheduler.h" 00010 #include "NetworkTables/NetworkTable.h" 00011 00012 ButtonScheduler::ButtonScheduler(bool last, Button *button, Command *orders) : 00013 m_pressedLast(last), 00014 m_button(button), 00015 m_command(orders) 00016 { 00017 } 00018 00019 void ButtonScheduler::Start() 00020 { 00021 Scheduler::GetInstance()->AddButton(this); 00022 }
Generated on Thu Jan 12 2012 22:35:18 for WPILibC++ by
1.7.1