From 724115cdc0b2383fb0bfa5dc205d02081302ea48 Mon Sep 17 00:00:00 2001
From: Tommy Persson <tommmy.persson@liu.se>
Date: Fri, 2 Jul 2021 13:33:42 +0200
Subject: [PATCH] work on signal server.

---
 README.md                    | 21 ---------------------
 srv/ActivateSignal.srv       |  2 +-
 srv/RegisterNodeToSignal.srv |  4 ++--
 3 files changed, 3 insertions(+), 24 deletions(-)

diff --git a/README.md b/README.md
index 92c0adc..8b13789 100644
--- a/README.md
+++ b/README.md
@@ -1,22 +1 @@
 
-Is the signal server just a server for active signals.
-
-But oneshot means the signal cam be triggered or?
-
-Is the trigger in the signal server?
-
-We can signal a TST node or signal a ROS node. So low battery reaction
-can be triggered on the ground.
-
-Also signal a TST node so we can do the dupication of the mission.
-
-The TST moitor node should trigger on a signal that it registers in the signal server.
-
-The moitor takes a list of signals...
-
-Maye if the monitor mode register the signal "low_battery" then the
-signal server need to know how to generate that.
-
-If "battery_becomes_low" is active then oneshot, new call to activate will do oneshot.
-
-Service call to signal server to activate signal.
\ No newline at end of file
diff --git a/srv/ActivateSignal.srv b/srv/ActivateSignal.srv
index 0480b37..d2c8017 100644
--- a/srv/ActivateSignal.srv
+++ b/srv/ActivateSignal.srv
@@ -2,7 +2,7 @@
 # call to signal server to activate a named signal. Can by an external detector or a TST node detector.
 #
 
-string signal               # Signal to avtivate
+string signal               # Signal to activate
 ---
 bool success             # The call was OK
 int32 error
diff --git a/srv/RegisterNodeToSignal.srv b/srv/RegisterNodeToSignal.srv
index 3a435eb..4063002 100644
--- a/srv/RegisterNodeToSignal.srv
+++ b/srv/RegisterNodeToSignal.srv
@@ -1,8 +1,8 @@
 string uuid                 # uuid for reciever of signal, can be a TST node or a ROS node.
 string signal               # Signal to send
-time   duration             # If oneshot false, send signal regularly with perion duration.
+float64 duration            # If oneshot false, send signal regularly with period duration (given in seconds).
 bool   oneshot              # if true send signal only once
-bool remove                 # If true remove the registration
+bool remove                 # If true remove the registration with uuid
 ---
 bool success             # The call was OK
 int32 error
-- 
GitLab