![]() |
How to Make the Robot Drive Forward in Autonomous
This may seem like a simple question but I can't get it to work. I am using commandbase java.
I have a chassis subsystem here: Code:
package edu.wpi.first.LFRobot2014.subsystems;THANKS! |
Re: How to Make the Robot Drive Forward in Autonomous
You use the same subsystem.
Add the following method: Code:
public void driveAuton(double speed, double turnRate)To implement timing is also pretty simple. In the init of your command, type: setTimeout(timeToRun); (replace timeToRun with the amount of time you want to drive forward. Then, in the isFinished of your command, type: return isTimedOut(); |
Re: How to Make the Robot Drive Forward in Autonomous
I think this should work...
Add this method to Chassis.java Code:
public void driveAuto(double speed) { |
Re: How to Make the Robot Drive Forward in Autonomous
Okay - THANKS guys!
|
| All times are GMT -5. The time now is 11:00. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi