Merge remote-tracking branch 'origin/cmake' into cmake
This commit is contained in:
commit
ebe5dc44de
3 changed files with 49 additions and 64 deletions
|
@ -1,18 +0,0 @@
|
|||
@startuml
|
||||
skinparam monochrome true
|
||||
start
|
||||
while ()
|
||||
:openComRobot?;
|
||||
:err = robot.Open();
|
||||
if (err) then (robot_ok)
|
||||
:msgSend = new Message(MESSAGE_ANSWER_ACK);
|
||||
else
|
||||
:msgSend = new Message(MESSAGE_ANSWER_NACK);
|
||||
endif
|
||||
:messageToMon!msgSend;
|
||||
|
||||
:closeComRobot?;
|
||||
:robot.Close();
|
||||
endwhile
|
||||
stop
|
||||
@enduml
|
|
@ -19,6 +19,7 @@ while ()
|
|||
:stopRobot?;
|
||||
:robot.Write(new Message(MESSAGE_ROBOT_STOP));
|
||||
:robot.Close();
|
||||
:robotStarted = false;
|
||||
endif
|
||||
else
|
||||
:msgSend = new Message(MESSAGE_ANSWER_NACK);
|
||||
|
|
|
@ -8,7 +8,6 @@ while ()
|
|||
:printf("Connection avec le moniteur perdue");
|
||||
:stopCamera!;
|
||||
:stopRobot!;
|
||||
:stopComRobot!;
|
||||
:stopServer!;
|
||||
endif
|
||||
if (msgRcv.CompareID(MESSAGE_ROBOT_COM_OPEN)) then (true)
|
||||
|
@ -22,6 +21,9 @@ while ()
|
|||
:watchdogMode = WITH_WATCHDOG;
|
||||
:startRobot!;
|
||||
endif
|
||||
if (msgRcv.CompareID(MESSAGE_ROBOT_RESET)) then (true)
|
||||
:stopRobot!;
|
||||
endif
|
||||
if (msgRcv.CompareID(MESSAGE_ROBOT_GO_FORWARD
|
||||
|| msgRcv.CompareID(MESSAGE_ROBOT_GO_BACKWARD
|
||||
|| msgRcv.CompareID(MESSAGE_ROBOT_GO_LEFT
|
||||
|
|
Loading…
Reference in a new issue