mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
Minor fixes
This commit is contained in:
parent
e68dc00c21
commit
b26a63bcc1
4
.env
4
.env
@ -2,7 +2,7 @@ function mb(){
|
||||
vagrant ssh -c "cd /vagrant/src;make clean 2>&1 >/dev/null;make"
|
||||
}
|
||||
function mc(){
|
||||
vagrant ssh -c "cd /vagrant/src;make clean"
|
||||
vagrant ssh -c "cd /vagrant/src;make clean 2>&1 >/dev/null"
|
||||
}
|
||||
function mk(){
|
||||
vagrant ssh -c "cd /vagrant/src;make"
|
||||
@ -11,5 +11,5 @@ function md(){
|
||||
vagrant ssh -c "cd /vagrant/src;make deploy"
|
||||
}
|
||||
function ma(){
|
||||
vagrant ssh -c "cd /vagrant/src;make clean;make;make deploy"
|
||||
vagrant ssh -c "cd /vagrant/src;make clean 2>&1 >/dev/null;make;make deploy"
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include "Autonomous.h"
|
||||
#include "AutoDrive.h"
|
||||
#include "../../DentRobot.h"
|
||||
#include "../Elevator/Raise.h"
|
||||
Autonomous::Autonomous(){
|
||||
AddSequential(new AutoDrive());
|
||||
}
|
||||
|
@ -4,16 +4,16 @@
|
||||
Lower::Lower() : Command("Lower"){
|
||||
}
|
||||
void Lower::Initialize(){
|
||||
SetTimeout(2.0);
|
||||
SetTimeout(2.0);
|
||||
}
|
||||
void Lower::Execute(){
|
||||
DentRobot::elevator->Run((-DentRobot::oi->GetLeftStick()->GetRawAxis(3)+1.0)/2);
|
||||
}
|
||||
bool Lower::IsFinished(){
|
||||
if (!DentRobot::dio->Get(DentRobot::dio->ELEVATORBOTTOM) || IsTimedOut()){
|
||||
return true;
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
void Lower::End(){
|
||||
|
@ -4,16 +4,16 @@
|
||||
Raise::Raise() : Command("Raise"){
|
||||
}
|
||||
void Raise::Initialize(){
|
||||
SetTimeout(2.0);
|
||||
SetTimeout(2.0);
|
||||
}
|
||||
void Raise::Execute(){
|
||||
DentRobot::elevator->Run(-(-DentRobot::oi->GetLeftStick()->GetRawAxis(3)+1.0)/2);
|
||||
}
|
||||
bool Raise::IsFinished(){
|
||||
if (!DentRobot::dio->Get(DentRobot::dio->ELEVATORBOTTOM) || IsTimedOut()){
|
||||
return true;
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
void Raise::End(){
|
||||
|
@ -6,7 +6,7 @@ Drivetrain* DentRobot::drivetrain=NULL;
|
||||
Elevator* DentRobot::elevator=NULL;
|
||||
DIO* DentRobot::dio = NULL;
|
||||
AirCompressor* DentRobot::airCompressor=NULL;
|
||||
Autonomous* DentRobot::aut=NULL;
|
||||
CommandGroup* DentRobot::aut=NULL;
|
||||
DentRobot::DentRobot(){
|
||||
oi=new OI();
|
||||
collector=new Collector();
|
||||
|
@ -19,7 +19,7 @@ class DentRobot: public IterativeRobot {
|
||||
static Elevator* elevator;
|
||||
static DIO* dio;
|
||||
static AirCompressor* airCompressor;
|
||||
static Autonomous* aut;
|
||||
static CommandGroup* aut;
|
||||
void RobotInit();
|
||||
void DisabledPeriodic();
|
||||
void AutonomousInit();
|
||||
|
Loading…
Reference in New Issue
Block a user