mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
default values from the end of palmetto
This commit is contained in:
parent
60963fe2a6
commit
e47bc6c1d4
@ -22,6 +22,7 @@ Autonomous::Autonomous(int seq){
|
||||
// Drive to Auto Zone (TM)
|
||||
Wait(SmartDashboard::GetNumber("Auto Wait Time"));
|
||||
AddSequential(new AutoDrive(SmartDashboard::GetNumber("Auto Zone Distance"), 0.0, -0.8));
|
||||
AddSequential(new Turn(SmartDashboard::GetNumber("TurnAmount")));
|
||||
break;
|
||||
case 2:
|
||||
// Collect a tote, turn, drive to Auto Zone (TM)
|
||||
|
@ -9,6 +9,7 @@ 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() * 0.8);
|
||||
SmartDashboard::PutNumber("DriveThrottle",-DentRobot::oi->GetLeftThrottle());
|
||||
}
|
||||
bool RollOut::IsFinished(){
|
||||
return IsTimedOut();
|
||||
|
@ -24,16 +24,16 @@ void DentRobot::RobotInit(){
|
||||
SmartDashboard::PutNumber("CodeVersion", CODE_VERSION);
|
||||
// Autonomous
|
||||
// Sequence of autonomous command
|
||||
SmartDashboard::PutNumber("Auto Sequence", 2.0);
|
||||
SmartDashboard::PutNumber("Auto Sequence", 1.0);
|
||||
SmartDashboard::PutNumber("Auto Wait Time", 3.0);
|
||||
// If the robot will be picking up three totes in sequence 3
|
||||
SmartDashboard::PutBoolean("Three totes", true);
|
||||
// TODO: Calibrate the following two values
|
||||
// Distance (in time) to auto zone
|
||||
SmartDashboard::PutNumber("Auto Zone Distance", 2.8);
|
||||
SmartDashboard::PutNumber("Auto Zone Distance", 2.1);
|
||||
// Distance (in time) to auto tote (used in sequence 3)
|
||||
SmartDashboard::PutNumber("Auto Tote Distance", 0.5);
|
||||
SmartDashboard::PutNumber("TurnAmount", 2.0);
|
||||
SmartDashboard::PutNumber("TurnAmount", 1.8);
|
||||
|
||||
// Elevators
|
||||
SmartDashboard::PutBoolean("Bin Elevator Bottom", false);
|
||||
|
Loading…
Reference in New Issue
Block a user