From 445627ec03a00cba7e6a7df42253ac7984e7cfe6 Mon Sep 17 00:00:00 2001 From: Jean-Remy Hok Date: Tue, 6 Apr 2021 14:35:56 +0200 Subject: [PATCH] =?UTF-8?q?Mettre=20=C3=A0=20jour=20'conception/th=5FsendI?= =?UTF-8?q?mageAndPosition.txt'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conception/th_sendImage.txt | 0 conception/th_sendImageAndPosition.txt | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+) delete mode 100644 conception/th_sendImage.txt create mode 100644 conception/th_sendImageAndPosition.txt diff --git a/conception/th_sendImage.txt b/conception/th_sendImage.txt deleted file mode 100644 index e69de29..0000000 diff --git a/conception/th_sendImageAndPosition.txt b/conception/th_sendImageAndPosition.txt new file mode 100644 index 0000000..82d52e7 --- /dev/null +++ b/conception/th_sendImageAndPosition.txt @@ -0,0 +1,21 @@ +@startuml +skinparam monochrome true +start +:start_period(100 ms); +while () + :wait_next_period(); + if(shouldSendImage)then(true) + :Img image=camera.Grab(); + if (shouldComputePosition)then(true) + :Position position=image.SearchRobot(); + :image.DrawRobot(position); + endif + if (arena)then(null) + else + :image.DrawArena(arena); + endif + :messageToMon!image; + endif +endwhile +stop +@enduml \ No newline at end of file