From da9ae138369a3bc6f56e67d43fe17486e57f7a9c Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Mon, 14 Aug 2023 15:55:39 +0200
Subject: [PATCH] Fix start time, add early start latency to start a bit
 earlier

---
 .../backend/src/tmss/tmssapp/adapters/l2stationspecs.py  | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/adapters/l2stationspecs.py b/SAS/TMSS/backend/src/tmss/tmssapp/adapters/l2stationspecs.py
index 9743e354b91..40ca93d391f 100644
--- a/SAS/TMSS/backend/src/tmss/tmssapp/adapters/l2stationspecs.py
+++ b/SAS/TMSS/backend/src/tmss/tmssapp/adapters/l2stationspecs.py
@@ -44,12 +44,19 @@ schema = """
     },
     "start_time": {
       "type": "string",
-      "format": "date-time"
+      "format": "date-time",
+      "default": "1970-01-01T00:00:00"
     },
     "stop_time": {
       "type": "string",
       "format": "date-time"
     },
+    "early_start_latency": {
+      "type": "number",
+      "description": "Number of seconds to start before the provided start time, to account for initialising the on-line signal chain, and for possibly negative geometrical delay compensation.",
+      "default": 2.0,
+      "minimum": 0
+    },
     "antenna_field": {
       "default": "HBA",
       "description": "Antenna field to use",
-- 
GitLab