WPILib 2012
WPILibRoboticsLibraryforFRC
CInterfaces/CServo.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_SERVO_H
00008 #define C_SERVO_H
00009 
00010 void SetServo(UINT32 slot, UINT32 channel, float value);
00011 float GetGetServo(UINT32 slot, UINT32 channel);
00012 void SetServoAngle(UINT32 slot, UINT32 channel, float angle);
00013 float GetServoAngle(UINT32 slot, UINT32 channel);
00014 float GetServoMaxAngle(UINT32 slot, UINT32 channel);
00015 float GetServoMinAngle(UINT32 slot, UINT32 channel);
00016 void SetServo(UINT32 channel, float value);
00017 float GetGetServo(UINT32 channel);
00018 void SetServoAngle(UINT32 channel, float angle);
00019 float GetServoAngle(UINT32 channel);
00020 float GetServoMaxAngle(UINT32 channel);
00021 float GetServoMinAngle(UINT32 channel);
00022 void DeleteServo(UINT32 slot, UINT32 channel);
00023 void DeleteServo(UINT32 channel);
00024 
00025 typedef void *ServoObject;
00026 
00027 ServoObject CreateServo(UINT32 slot, UINT32 channel);
00028 ServoObject CreateServo(UINT32 channel);
00029 void SetServo(ServoObject o, float value);
00030 float GetGetServo(ServoObject o);
00031 void SetServoAngle(ServoObject o, float angle);
00032 float GetServoAngle(ServoObject o);
00033 float GetServoMaxAngle(ServoObject o);
00034 float GetServoMinAngle(ServoObject o);
00035 void DeleteServo(ServoObject o);
00036 
00037 #endif
00038 
 All Classes Functions Variables