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

22 lines
425 B
C++
Raw Normal View History

#include "Turn.h"
#include "../../DentRobot.h"
2015-03-09 07:25:11 -04:00
Turn::Turn(double timeout): Command("Turn"){
Requires(DentRobot::drivetrain);
2015-03-07 13:27:11 -05:00
SetTimeout(timeout);
}
void Turn::Initialize(){
}
void Turn::Execute(){
2015-03-10 20:14:38 -04:00
//X axis, Y axis, Z axis, sensitivity, speed threshold (usually throttle)
}
bool Turn::IsFinished(){
return IsTimedOut();
}
void Turn::End(){
// Stop driving
}
void Turn::Interrupted(){
End();
}
// vim: ts=2:sw=2:et