📄 cdriverstation.h
字号:
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
/*----------------------------------------------------------------------------*/
#ifndef _C_DRIVER_STATION_H
#define _C_DRIVER_STATION_H
float GetStickAxis(UINT32 stick, UINT32 axis);
short GetStickButtons(UINT32 stick);
float GetAnalogIn(UINT32 channel);
bool GetDigitalIn(UINT32 channel);
void SetDigitalOut(UINT32 channel, bool value);
bool GetDigitalOut(UINT32 channel);
bool IsDisabled();
bool IsAutonomous();
bool IsOperatorControl();
UINT32 GetPacketNumber();
UINT32 GetAlliance();
UINT32 GetLocation();
float GetBatteryVoltage();
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -