|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Autonomous timeout
We are trying to program autonomous code for our robot and in our commands we have
Code:
public turnLeft() {
m_timeout = timeout;
requires(chassis);
cannot find symbol symbol: variable timeout location:class edu.wpi.first.wpilibj.templates.commands.turnLeft any ideas as to why? thanks. |
|
#2
|
||||
|
||||
|
Re: Autonomous timeout
Our (error-free) code looks like this --
Code:
public class TurnLeft extends CommandBase {
private double m_timeout;
private double m_speed;
public TurnLeft(double speed, double timeout) {
m_timeout = timeout;
m_speed = speed;
// Use requires() here to declare subsystem dependencies
// eg. requires(chassis);
requires(drivetrain);
}
If you want you can just copy/paste my code in (remove the "speed" stuff) and see if it works. Last edited by F22Rapture : 27-09-2012 at 22:25. |
|
#3
|
||||
|
||||
|
Re: Autonomous timeout
Quote:
Code:
public turnLeft(double timeout) {
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|