2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00
dent/Commands/Autonomous/AutoDrive.cpp

23 lines
539 B
C++
Raw Normal View History

2015-02-06 13:45:01 -05:00
#include "AutoDrive.h"
#include <cmath>
#include "../../DentRobot.h"
2015-02-06 20:38:02 -05:00
// Drive for a short while then stop. Just for testing
2015-02-06 13:45:01 -05:00
AutoDrive::AutoDrive() : Command("AutoDrive"){
Requires(DentRobot::drivetrain);
SetTimeout(1.0);
}
void AutoDrive::Initialize(){
}
void AutoDrive::Execute(){
//X axis, Y axis, Z axis, sensitivity, speed threshold (usually throttle), gyro
DentRobot::drivetrain->DriveMecanum(0.5,0,0,0.9,0);
}
bool AutoDrive::IsFinished(){
return false;
}
void AutoDrive::End(){
}
void AutoDrive::Interrupted(){
End();
}