aboutsummaryrefslogtreecommitdiff
path: root/sensor/sensor.puml
diff options
context:
space:
mode:
Diffstat (limited to 'sensor/sensor.puml')
-rw-r--r--sensor/sensor.puml26
1 files changed, 26 insertions, 0 deletions
diff --git a/sensor/sensor.puml b/sensor/sensor.puml
new file mode 100644
index 0000000..3f033d1
--- /dev/null
+++ b/sensor/sensor.puml
@@ -0,0 +1,26 @@
+@startuml
+'start
+:instantiate mussel object;
+:instantiate bluetooth object;
+group init
+:setup mussel sensors;
+:setup bluetooth beacon;
+end group
+split
+while (each 500ms)
+group loop {
+:read sensors;
+:normalize sensor data
+as a gape angle;
+:add gape angle to beacon;
+end group
+endwhile
+-[hidden]->
+kill
+split again
+while (each 100ms)
+:broadcast beacon;
+endwhile
+-[hidden]->
+kill
+@enduml