WPILib 2012
WPILibRoboticsLibraryforFRC
CInterfaces/CDriverStation.h
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 _C_DRIVER_STATION_H
00008 #define _C_DRIVER_STATION_H
00009 
00010 float GetStickAxis(UINT32 stick, UINT32 axis);
00011 short GetStickButtons(UINT32 stick);
00012 
00013 float GetAnalogIn(UINT32 channel);
00014 bool GetDigitalIn(UINT32 channel);
00015 void SetDigitalOut(UINT32 channel, bool value);
00016 bool GetDigitalOut(UINT32 channel);
00017 
00018 bool IsDisabled();
00019 bool IsAutonomous();
00020 bool IsOperatorControl();
00021 
00022 UINT32 GetPacketNumber();
00023 UINT32 GetAlliance();
00024 UINT32 GetLocation();
00025 
00026 float GetBatteryVoltage();
00027 
00028 #endif
 All Classes Functions Variables