WPILib 2012
WPILibRoboticsLibraryforFRC
CInterfaces/CRobotDrive.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_ROBOT_DRIVE_H
00008 #define C_ROBOT_DRIVE_H
00009 
00010 #include <VxWorks.h>
00011 
00012 void CreateRobotDrive(UINT32 leftMotor, UINT32 rightMotor);
00013 void CreateRobotDrive(UINT32 frontLeftMotor, UINT32 rearLeftMotor,
00014                 UINT32 frontRightMotor, UINT32 rearRightMotor);
00015 void Drive(float speed, float curve);
00016 void TankDrive(UINT32 leftStickPort, UINT32 rightStickPort);
00017 void ArcadeDrive(UINT32 stickPort, bool squaredInputs = false);
00018 void TankByValue(float leftSpeed, float rightSpeed);
00019 void ArcadeByValue(float moveSpeed, float rotateSpeed, bool squaredInputs = false);
00020 
00021 #endif
00022 
 All Classes Functions Variables