Thread: Will this work?
View Single Post
  #1   Spotlight this post!  
Unread 13-01-2017, 12:04
GavinL GavinL is offline
intensely stares at program
FRC #5726 (RhumBotz)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: San Antonio, Texas
Posts: 42
GavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to behold
Question Will this work?

To set the drive to tankdrive I put this in my DriveWithJoysticks command file, right?
(had to put spaces on oi because it would make the face)
void DriveWithJoysticks::Execute() {
Robot::driveTrain->robotDrive41->TankDrive(
Robot:: oi->getopStick()->GetRawAxis(1),
Robot:: oi->getopStick()->GetRawAxis(5));
}

OR

Should I just create an if statement that checks if getrawaxis(1) > deadZone, then set left motor outputs to 1.
Reply With Quote