Mettre à jour 'conception/th_manageRobot.txt'
This commit is contained in:
parent
1b216e0cf5
commit
7fcc183012
1 changed files with 29 additions and 30 deletions
|
@ -1,31 +1,30 @@
|
||||||
@startuml
|
@startuml
|
||||||
skinparam monochrome true
|
skinparam monochrome true
|
||||||
start
|
start
|
||||||
|
|
||||||
|
|
||||||
while ()
|
while ()
|
||||||
:startRobot?;
|
:startRobot?;
|
||||||
:err = robot.Open();
|
:err = robot.Open();
|
||||||
if (err) then (robot_ok)
|
if (err) then (robot_ok)
|
||||||
:msgSend = new Message(MESSAGE_ANSWER_ACK);
|
:msgSend = new Message(MESSAGE_ANSWER_ACK);
|
||||||
:messageToMon!msgSend;
|
:messageToMon!msgSend;
|
||||||
if (watchdogMode) then (WITH_WATCHDOG)
|
if (watchdogMode) then (WITH_WATCHDOG)
|
||||||
:msgSend = robot.Write(new Message(MESSAGE_ROBOT_START_WITH_WD));
|
:msgSend = robot.Write(new Message(MESSAGE_ROBOT_START_WITH_WD));
|
||||||
else (WITHOUT_WATCHDOG)
|
else (WITHOUT_WATCHDOG)
|
||||||
:msgSend = robot.Write(new Message(MESSAGE_ROBOT_START_WITHOUT_WD));
|
:msgSend = robot.Write(new Message(MESSAGE_ROBOT_START_WITHOUT_WD));
|
||||||
endif
|
endif
|
||||||
:messageToMon!msgSend;
|
:messageToMon!msgSend;
|
||||||
if (msgSend->getId()) then (MESSAGE_ANSWER_ACK)
|
if (msgSend->getId()) then (MESSAGE_ANSWER_ACK)
|
||||||
:robotStarted = true;
|
:robotStarted = true;
|
||||||
:stopRobot?;
|
:stopRobot?;
|
||||||
:robot.Write(new Message(MESSAGE_ROBOT_STOP));
|
:robot.Write(new Message(MESSAGE_ROBOT_STOP));
|
||||||
:robot.Close();
|
:robot.Close();
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
:msgSend = new Message(MESSAGE_ANSWER_NACK);
|
:msgSend = new Message(MESSAGE_ANSWER_NACK);
|
||||||
:messageToMon!msgSend;
|
:messageToMon!msgSend;
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endwhile
|
endwhile
|
||||||
stop
|
stop
|
||||||
@enduml
|
@enduml
|
Loading…
Reference in a new issue