|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Iterative Project
I have a question about simple project. I was messing around with it and how do you start stuff when the robot is initialized. Kind of like how iterative has RobotInit, TeleopInit, and AutonomousInit. Does the simple robot project have something like this?
|
|
#2
|
||||||
|
||||||
|
Re: Iterative Project
Quote:
|
|
#3
|
||||
|
||||
|
Re: Iterative Project
Do I just put the Drive system in the while loop to update it or everything.
|
|
#4
|
||||
|
||||
|
Re: Iterative Project
Quote:
The standard usage of Simple Robot is something like this: Code:
public OperatorControl(){
while (isOperatorControl() and isEnabled()){
try {
Thread.sleep(10L);
} catch (Exception e){
e.printStackTrace();
}
//insert code here, to be called every time through the while loop
}
}
|
|
#5
|
||||
|
||||
|
Re: Iterative Project
Ok thanks i will start working on this more
|
|
#6
|
||||
|
||||
|
Re: Iterative Project
Quote:
I'd also recommend looking into Command-based, it may look hard at first but once you get the hang of it its so much neater and easier to write. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|