Skip to content

Commit

Permalink
Revert "Wait for FRI feedback when switching control mode"
Browse files Browse the repository at this point in the history
This reverts commit d0981d6
as it introduces hang out in FRI communication
  • Loading branch information
shak committed Feb 11, 2014
1 parent 84679b8 commit e0a7387
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/friExampleAbstract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,7 @@ void FriExampleAbstract::setControlStrategy(int mode){
else{
fri_to_krl.intData[1] = mode;
controlMode = mode;
//Asking for a mode change
port_fri_to_krl.write(fri_to_krl);

//Check that fri has changed its mode and is ready
RTT::FlowStatus fri_frm_krl_fs = port_fri_frm_krl.read(fri_frm_krl);
bool fri_ready = false;
while(fri_ready == false){
if(fri_frm_krl_fs == RTT::NewData){
//If current fri mode is desired mode and fri is back to command mode
if(fri_frm_krl.intData[1] == mode && fri_frm_krl.intData[0] == 1){
fri_ready = true;
}
}
}
controlModeUpdated = 1;
}
}
Expand Down

0 comments on commit e0a7387

Please sign in to comment.