42 lines
1.7 KiB
Python
42 lines
1.7 KiB
Python
import ctypes
|
|
from pymsc.lib1553.datatypes.common_extra import TimeTag, StatusWord
|
|
from pymsc.lib1553.datatypes.navigation import Semicircle, Velocity
|
|
|
|
|
|
class TwsStatusAndTargets0102(ctypes.Structure):
|
|
_pack_ = 1
|
|
_fields_ = [
|
|
("validity_word_and_hpt_identifier", StatusWord),
|
|
("track_priority_01_04", ctypes.c_uint16 * 4),
|
|
("track_priority_05_08", ctypes.c_uint16 * 4),
|
|
("track_accurancy_01_04", ctypes.c_uint16 * 4),
|
|
("track_accurancy_05_08", ctypes.c_uint16 * 4),
|
|
("track_id_01_02", ctypes.c_uint16 * 2),
|
|
("track_id_03_04", ctypes.c_uint16 * 2),
|
|
("track_id_05_06", ctypes.c_uint16 * 2),
|
|
("track_id_07_08", ctypes.c_uint16 * 2),
|
|
("x_display_coord_of_the_hpt_target", Semicircle),
|
|
("y_display_coord_of_the_hpt_target", Semicircle),
|
|
("time_tag_of_tracked_target_01_data", TimeTag),
|
|
("range_of_tracked_01_target", ctypes.c_uint16),
|
|
("target_01_position_x", Semicircle),
|
|
("target_01_position_y", Semicircle),
|
|
("target_01_position_z", Semicircle),
|
|
("target_01_velocity_magnitude", Velocity),
|
|
("target_01_velocity_x", Velocity),
|
|
("target_01_velocity_y", Velocity),
|
|
("target_01_velocity_z", Velocity),
|
|
("time_tag_of_tracked_target_02_data", TimeTag),
|
|
("range_of_tracked_02_target", ctypes.c_uint16),
|
|
("target_02_position_x", Semicircle),
|
|
("target_02_position_y", Semicircle),
|
|
("target_02_position_z", Semicircle),
|
|
("target_02_velocity_magnitude", Velocity),
|
|
("target_02_velocity_x", Velocity),
|
|
("target_02_velocity_y", Velocity),
|
|
("target_02_velocity_z", Velocity),
|
|
]
|
|
|
|
def __init__(self):
|
|
super().__init__()
|