Mettre à jour 'conception/th_sendImageAndPosition.txt'
This commit is contained in:
parent
721ecb61f5
commit
445627ec03
2 changed files with 21 additions and 0 deletions
21
conception/th_sendImageAndPosition.txt
Normal file
21
conception/th_sendImageAndPosition.txt
Normal file
|
@ -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
|
Loading…
Reference in a new issue