From 99e62036fd92bf0d7b5f4b5272ce374fea0591a2 Mon Sep 17 00:00:00 2001 From: MaD_CaT Date: Tue, 2 Sep 2025 13:37:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0.=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=B2=D1=80=D0=B5=D0=BC=D1=8F=20=D0=B2=208=20?= =?UTF-8?q?=D0=BF=D0=B0=D0=BA=D0=B5=D1=82=20=D0=B4=D0=BB=D1=8F=20=D0=9A?= =?UTF-8?q?=D0=90=D0=9F=D0=A1=20=D0=A0=D0=9F=D0=91.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/interfer.gd | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/interfer.gd b/scripts/interfer.gd index 4649d91d..a9e7689c 100644 --- a/scripts/interfer.gd +++ b/scripts/interfer.gd @@ -185,6 +185,7 @@ func _ready() -> void: func on_nav_data_received(coords: Dictionary, unit_caps): + var ship_time = Time.get_datetime_dict_from_system() var data_to_json = { 'ts': 8, 'ss': msg8_num, @@ -193,7 +194,13 @@ func on_nav_data_received(coords: Dictionary, unit_caps): 'long': coords.get('longitude', 0), 'lat': coords.get('latitude', 0), 'course': coords.get('k', 0), - 'speed': coords.get('speed', 0) } + 'speed': coords.get('speed', 0), + 'year': ship_time['year'], + 'month': ship_time['month'], + 'day': ship_time['day'], + 'hour': ship_time['hour'], + 'minute': ship_time['minute'], + 'second': ship_time['second'],} var json_data = JSON.stringify(data_to_json).to_utf8_buffer() unit_caps.tx_stack.append(json_data) msg8_num += 1