WPILib 2012
WPILibRoboticsLibraryforFRC
CInterfaces/CGyro.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_GYRO_H
00008 #define C_GYRO_H
00009 
00010 #include <VxWorks.h>
00011 
00012 typedef void *GyroObject;
00013 
00014 GyroObject CreateGyro(UINT32 slot, UINT32 channel);
00015 GyroObject CreateGyro(UINT32 channel);
00016 float GetGyroAngle(GyroObject o);
00017 void ResetGyro(GyroObject o);
00018 void SetGyroSensitivity(GyroObject o, float voltsPerDegreePerSecond);
00019 void Delete(GyroObject o);
00020 
00021 void InitGyro(UINT32 slot, UINT32 channel);
00022 void InitGyro(UINT32 channel);
00023 float GetGyroAngle(UINT32 channel);
00024 float GetGyroAngle(UINT32 slot, UINT32 channel);
00025 void ResetGyro(UINT32 channel);
00026 void ResetGyro(UINT32 slot, UINT32 channel);
00027 void SetGyroSensitivity(UINT32 slot, UINT32 channel, float voltsPerDegreePerSecond);
00028 void SetGyroSensitivity(UINT32 channel, float voltsPerDegreePerSecond);
00029 void DeleteGyro(UINT32 slot, UINT32 channel);
00030 void DeleteGyro(UINT32 channel);
00031 
00032 #endif
00033 
 All Classes Functions Variables