WPILib 2012
WPILibRoboticsLibraryforFRC
|
00001 /*----------------------------------------------------------------------------*/ 00002 /* Copyright (c) FIRST 2008. 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 #ifndef SOLENOID_H_ 00008 #define SOLENOID_H_ 00009 00010 #include "SolenoidBase.h" 00011 00018 class Solenoid : public SolenoidBase { 00019 public: 00020 explicit Solenoid(UINT32 channel); 00021 Solenoid(UINT8 moduleNumber, UINT32 channel); 00022 virtual ~Solenoid(); 00023 virtual void Set(bool on); 00024 virtual bool Get(); 00025 00026 private: 00027 void InitSolenoid(); 00028 00029 UINT32 m_channel; 00030 }; 00031 00032 #endif