mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
Disabled camera, changed values
This commit is contained in:
parent
aa42984de1
commit
d2c4205bbc
@ -8,7 +8,7 @@ void RollOut::Initialize(){
|
|||||||
void RollOut::Execute(){
|
void RollOut::Execute(){
|
||||||
//TODO check this value to move the motors in the right direction
|
//TODO check this value to move the motors in the right direction
|
||||||
// Devide by 2 twice because this speed should be half the collector speed
|
// Devide by 2 twice because this speed should be half the collector speed
|
||||||
DentRobot::collector->MoveRollers(-DentRobot::oi->GetLeftThrottle());
|
DentRobot::collector->MoveRollers(-DentRobot::oi->GetLeftThrottle()*.5);
|
||||||
}
|
}
|
||||||
bool RollOut::IsFinished(){
|
bool RollOut::IsFinished(){
|
||||||
return IsTimedOut();
|
return IsTimedOut();
|
||||||
|
@ -16,8 +16,8 @@ DentRobot::DentRobot(){
|
|||||||
elevator=new Elevator();
|
elevator=new Elevator();
|
||||||
binElevator=new BinElevator();
|
binElevator=new BinElevator();
|
||||||
pneumatics=new Pneumatics();
|
pneumatics=new Pneumatics();
|
||||||
CameraServer::GetInstance()->SetQuality(25);
|
//CameraServer::GetInstance()->SetQuality(25);
|
||||||
CameraServer::GetInstance()->StartAutomaticCapture("cam0");
|
//CameraServer::GetInstance()->StartAutomaticCapture("cam0");
|
||||||
//SmartDashboard::PutNumber("Auto Wait Time", 1.0);
|
//SmartDashboard::PutNumber("Auto Wait Time", 1.0);
|
||||||
//SmartDashboard::PutNumber("Auto Sequence", 0);
|
//SmartDashboard::PutNumber("Auto Sequence", 0);
|
||||||
printf("The robot is on\n");
|
printf("The robot is on\n");
|
||||||
@ -48,9 +48,9 @@ void DentRobot::DisabledPeriodic(){
|
|||||||
void DentRobot::AutonomousInit(){
|
void DentRobot::AutonomousInit(){
|
||||||
aut=new Autonomous(SmartDashboard::GetNumber("Auto Sequence"));
|
aut=new Autonomous(SmartDashboard::GetNumber("Auto Sequence"));
|
||||||
printf("Enabling Auto Sequence %f\n",SmartDashboard::GetNumber("Auto Sequence"));
|
printf("Enabling Auto Sequence %f\n",SmartDashboard::GetNumber("Auto Sequence"));
|
||||||
if(aut != NULL){
|
//if(aut != NULL){
|
||||||
aut->Start();
|
// aut->Start();
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
void DentRobot::AutonomousPeriodic(){
|
void DentRobot::AutonomousPeriodic(){
|
||||||
printf("Running auto.\n");
|
printf("Running auto.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user