|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Command stops my teleop process
Sounds like you have a loop in the commands initialize or execute method
|
|
#2
|
|||
|
|||
|
Re: Command stops my teleop process
If I place a return statement at the end of the execute statement, should I be okay? Because at the moment I have something like this
Code:
TeleopDefault::Initialize(){
//some code
button->WhenPressed(new DropGear());
button->WhenReleased(this);
}
|
|
#3
|
|||
|
|||
|
Re: Command stops my teleop process
Are you sure the "button->WhenPressed" stuff should be in initialized?
I'm a bit new to command based but I feel like that should belong in your Execute. It should go in OI, above text is wrong. Last edited by GavinL : Yesterday at 00:53. Reason: wrong info |
|
#4
|
||||||
|
||||||
|
Re: Command stops my teleop process
It should go in OI, not in a command.
|
|
#5
|
|||
|
|||
|
Re: Command stops my teleop process
|
|
#6
|
|||||
|
|||||
|
Re: Command stops my teleop process
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|