mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
Minor command improvements
This commit is contained in:
parent
60963fe2a6
commit
9cb891b90a
@ -1,7 +1,7 @@
|
||||
#include "Turn.h"
|
||||
#include "../../DentRobot.h"
|
||||
// Drive for a short while then stop. Just for testing
|
||||
Turn::Turn(int k) : Command("Turn"){
|
||||
Turn::Turn(double k) : Command("Turn"){
|
||||
Requires(DentRobot::drivetrain);
|
||||
SetTimeout(k);
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ class Turn: public Command{
|
||||
private:
|
||||
int degrees;
|
||||
public:
|
||||
Turn(int);
|
||||
Turn(double);
|
||||
void Initialize();
|
||||
void Execute();
|
||||
bool IsFinished();
|
||||
|
@ -4,11 +4,10 @@
|
||||
BinCloseArms::BinCloseArms() : Command("BinCloseArms"){
|
||||
}
|
||||
void BinCloseArms::Initialize(){
|
||||
//Should never need to use this
|
||||
SetTimeout(0.5);
|
||||
}
|
||||
void BinCloseArms::Execute(){
|
||||
DentRobot::pneumatics->SetOpen(true);
|
||||
DentRobot::pneumatics->SetOpen(false);
|
||||
}
|
||||
bool BinCloseArms::IsFinished(){
|
||||
return true;
|
||||
|
@ -4,7 +4,6 @@
|
||||
BinOpenArms::BinOpenArms() : Command("BinOpenArms"){
|
||||
}
|
||||
void BinOpenArms::Initialize(){
|
||||
//Should never need to use this
|
||||
SetTimeout(0.5);
|
||||
}
|
||||
void BinOpenArms::Execute(){
|
||||
|
Loading…
Reference in New Issue
Block a user