From a4ced971b392d3438d91d2aac6c87e2cfec1a5aa Mon Sep 17 00:00:00 2001
From: Tommy Persson <tommy.persson@liu.se>
Date: Sun, 4 Jun 2023 18:57:41 +0200
Subject: [PATCH] Setting initial pitch from command line..

---
 lrs_exec/tst_command.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lrs_exec/tst_command.py b/lrs_exec/tst_command.py
index 048addd..c2f895a 100644
--- a/lrs_exec/tst_command.py
+++ b/lrs_exec/tst_command.py
@@ -422,7 +422,10 @@ class TstCommand(ExecTree):
         try:
             node_uuid = str(uuid.uuid4())
 
-            look = JsonExecNode(self.unit, name="look-at-bearing", bearing=bearing, tilt=tilt, node_uuid=node_uuid)
+            # exec_unit = "/dji56"
+            exec_unit = self.unit
+
+            look = JsonExecNode(exec_unit, name="look-at-bearing", bearing=bearing, tilt=tilt, node_uuid=node_uuid)
             wait = JsonExecNode(self.unit, name="wait", duration=10)
             send_signal = JsonExecNode(self.unit, name="send-signal", signal_uuid=node_uuid, signal="$enough")
             
-- 
GitLab