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