Ajout envoi position
This commit is contained in:
parent
445627ec03
commit
0017802e4d
1 changed files with 4 additions and 1 deletions
|
@ -9,12 +9,15 @@ while ()
|
||||||
if (shouldComputePosition)then(true)
|
if (shouldComputePosition)then(true)
|
||||||
:Position position=image.SearchRobot();
|
:Position position=image.SearchRobot();
|
||||||
:image.DrawRobot(position);
|
:image.DrawRobot(position);
|
||||||
|
:MessagePosition msgToSend=new MessagePosition(MESSAGE_CAM_POSITION,position);
|
||||||
|
:messageToMon!msgToSend;
|
||||||
endif
|
endif
|
||||||
if (arena)then(null)
|
if (arena)then(null)
|
||||||
else
|
else
|
||||||
:image.DrawArena(arena);
|
:image.DrawArena(arena);
|
||||||
endif
|
endif
|
||||||
:messageToMon!image;
|
:MessageImg msgToSend=new MessageImg(MESSAGE_CAM_IMAGE,&image);
|
||||||
|
:messageToMon!msgToSend;
|
||||||
endif
|
endif
|
||||||
endwhile
|
endwhile
|
||||||
stop
|
stop
|
||||||
|
|
Loading…
Reference in a new issue