Change drivePower to 1, driveTime to 3 (seconds)
This commit is contained in:
parent
9c3a89684c
commit
5d85047728
@ -238,7 +238,8 @@ public:
|
|||||||
|
|
||||||
void AutonomousPeriodic()
|
void AutonomousPeriodic()
|
||||||
{
|
{
|
||||||
const float drivePower = 0.7;
|
const float drivePower = 1;
|
||||||
|
const float driveTime = 3; //Seconds to drive forward
|
||||||
LogCSVData();
|
LogCSVData();
|
||||||
if(autoSelected == autoNameCustom){
|
if(autoSelected == autoNameCustom){
|
||||||
//Custom Auto goes here
|
//Custom Auto goes here
|
||||||
@ -254,7 +255,7 @@ public:
|
|||||||
}
|
}
|
||||||
case DRIVING_FORWARD:
|
case DRIVING_FORWARD:
|
||||||
{
|
{
|
||||||
if (auto_clock.Get() > 5.0 )
|
if (auto_clock.Get() > driveTime)
|
||||||
{
|
{
|
||||||
drive.TankDrive(0.0, 0.0);
|
drive.TankDrive(0.0, 0.0);
|
||||||
auto_status = STOP;
|
auto_status = STOP;
|
||||||
|
Reference in New Issue
Block a user