From 7fcc183012af0187f726806f1c8c87ac5f913e77 Mon Sep 17 00:00:00 2001 From: Jean-Remy Hok Date: Mon, 15 Mar 2021 10:44:36 +0100 Subject: [PATCH] =?UTF-8?q?Mettre=20=C3=A0=20jour=20'conception/th=5Fmanag?= =?UTF-8?q?eRobot.txt'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conception/th_manageRobot.txt | 59 +++++++++++++++++------------------ 1 file changed, 29 insertions(+), 30 deletions(-) diff --git a/conception/th_manageRobot.txt b/conception/th_manageRobot.txt index 6c908d3..61a55af 100644 --- a/conception/th_manageRobot.txt +++ b/conception/th_manageRobot.txt @@ -1,31 +1,30 @@ - @startuml - skinparam monochrome true - start - +@startuml +skinparam monochrome true +start - while () - :startRobot?; - :err = robot.Open(); - if (err) then (robot_ok) - :msgSend = new Message(MESSAGE_ANSWER_ACK); - :messageToMon!msgSend; - if (watchdogMode) then (WITH_WATCHDOG) - :msgSend = robot.Write(new Message(MESSAGE_ROBOT_START_WITH_WD)); - else (WITHOUT_WATCHDOG) - :msgSend = robot.Write(new Message(MESSAGE_ROBOT_START_WITHOUT_WD)); - endif - :messageToMon!msgSend; - if (msgSend->getId()) then (MESSAGE_ANSWER_ACK) - :robotStarted = true; - :stopRobot?; - :robot.Write(new Message(MESSAGE_ROBOT_STOP)); - :robot.Close(); - endif - else - :msgSend = new Message(MESSAGE_ANSWER_NACK); - :messageToMon!msgSend; - endif - - endwhile - stop - @enduml \ No newline at end of file +while () + :startRobot?; + :err = robot.Open(); + if (err) then (robot_ok) + :msgSend = new Message(MESSAGE_ANSWER_ACK); + :messageToMon!msgSend; + if (watchdogMode) then (WITH_WATCHDOG) + :msgSend = robot.Write(new Message(MESSAGE_ROBOT_START_WITH_WD)); + else (WITHOUT_WATCHDOG) + :msgSend = robot.Write(new Message(MESSAGE_ROBOT_START_WITHOUT_WD)); + endif + :messageToMon!msgSend; + if (msgSend->getId()) then (MESSAGE_ANSWER_ACK) + :robotStarted = true; + :stopRobot?; + :robot.Write(new Message(MESSAGE_ROBOT_STOP)); + :robot.Close(); + endif + else + :msgSend = new Message(MESSAGE_ANSWER_NACK); + :messageToMon!msgSend; + endif + +endwhile +stop +@enduml \ No newline at end of file