From 3e3fc21dc9a3984d34f9d835362994e55657a886 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 13 Apr 2025 10:54:54 +0200 Subject: refine diagrams --- .../read_to_EddystoneTLM/read_to_EddystoneTLM.puml | 10 +++++++--- .../voting_from_EddystoneTLM.puml | 15 +++++++++------ 2 files changed, 16 insertions(+), 9 deletions(-) (limited to 'Mussel') diff --git a/Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml b/Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml index 18165ea..e65d30c 100644 --- a/Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml +++ b/Mussel/examples/read_to_EddystoneTLM/read_to_EddystoneTLM.puml @@ -7,16 +7,20 @@ group init :setup network beacon service; end group split -while (each ½s) +while (each 500ms) group loop { -:read gape angle; +:read sensors; +:normalize sensor data +as a gape angle; :add gape angle to beacon; end group endwhile -[hidden]-> kill split again -:publish beacon; +while (each 100ms) +:broadcast beacon; +endwhile -[hidden]-> kill @enduml diff --git a/Mussel/examples/voting_from_EddystoneTLM/voting_from_EddystoneTLM.puml b/Mussel/examples/voting_from_EddystoneTLM/voting_from_EddystoneTLM.puml index 6bb5868..f8270ec 100644 --- a/Mussel/examples/voting_from_EddystoneTLM/voting_from_EddystoneTLM.puml +++ b/Mussel/examples/voting_from_EddystoneTLM/voting_from_EddystoneTLM.puml @@ -7,16 +7,19 @@ group init :setup network beacon scanner; end group split -while (each ½s) -group loop { -:fetch and print voting tally; -end group +while (each beacon detected) +:collect beacon data; endwhile -[hidden]-> kill split again -while (at each beacon detected) -:register vote; +while (each 500ms) +group loop { +:allign beacon data as a ballot; +:qualify ballot for specific vote; +:conclude vote result; +:act on vote result; +end group endwhile -[hidden]-> kill -- cgit v1.2.3