From 0017802e4d0ba5685020e934067de2ab03f806dd Mon Sep 17 00:00:00 2001 From: Jean-Remy Hok Date: Tue, 6 Apr 2021 14:43:54 +0200 Subject: [PATCH] Ajout envoi position --- conception/th_sendImageAndPosition.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conception/th_sendImageAndPosition.txt b/conception/th_sendImageAndPosition.txt index 82d52e7..04e9aaa 100644 --- a/conception/th_sendImageAndPosition.txt +++ b/conception/th_sendImageAndPosition.txt @@ -9,12 +9,15 @@ while () if (shouldComputePosition)then(true) :Position position=image.SearchRobot(); :image.DrawRobot(position); + :MessagePosition msgToSend=new MessagePosition(MESSAGE_CAM_POSITION,position); + :messageToMon!msgToSend; endif if (arena)then(null) else :image.DrawArena(arena); endif - :messageToMon!image; + :MessageImg msgToSend=new MessageImg(MESSAGE_CAM_IMAGE,&image); + :messageToMon!msgToSend; endif endwhile stop