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(){
|
||||
//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
|
||||
DentRobot::collector->MoveRollers(-DentRobot::oi->GetLeftThrottle());
|
||||
DentRobot::collector->MoveRollers(-DentRobot::oi->GetLeftThrottle()*.5);
|
||||
}
|
||||
bool RollOut::IsFinished(){
|
||||
return IsTimedOut();
|
||||
|
@ -16,8 +16,8 @@ DentRobot::DentRobot(){
|
||||
elevator=new Elevator();
|
||||
binElevator=new BinElevator();
|
||||
pneumatics=new Pneumatics();
|
||||
CameraServer::GetInstance()->SetQuality(25);
|
||||
CameraServer::GetInstance()->StartAutomaticCapture("cam0");
|
||||
//CameraServer::GetInstance()->SetQuality(25);
|
||||
//CameraServer::GetInstance()->StartAutomaticCapture("cam0");
|
||||
//SmartDashboard::PutNumber("Auto Wait Time", 1.0);
|
||||
//SmartDashboard::PutNumber("Auto Sequence", 0);
|
||||
printf("The robot is on\n");
|
||||
@ -48,9 +48,9 @@ void DentRobot::DisabledPeriodic(){
|
||||
void DentRobot::AutonomousInit(){
|
||||
aut=new Autonomous(SmartDashboard::GetNumber("Auto Sequence"));
|
||||
printf("Enabling Auto Sequence %f\n",SmartDashboard::GetNumber("Auto Sequence"));
|
||||
if(aut != NULL){
|
||||
aut->Start();
|
||||
}
|
||||
//if(aut != NULL){
|
||||
// aut->Start();
|
||||
//}
|
||||
}
|
||||
void DentRobot::AutonomousPeriodic(){
|
||||
printf("Running auto.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user