--**********************
--  EHSD
--  ALIGNMENT DATA
--**********************

-- AIRCRAFT POSITION
local	AC_latitude					= CreateElement "ceStringPoly"
		AC_latitude.name			= "AC_latitude"
		AC_latitude.material		= mpcd_tpod_font
		AC_latitude.init_pos		= { 0.0,  0.35, 0}
		AC_latitude.alignment		= "CenterCenter"
		AC_latitude.formats			= {"%s"}
		AC_latitude.stringdefs		= MPCD_large_font_size
		AC_latitude.controllers		= {{"EHSD_ALIGN_Mode"}, {"EHSD_INS_ALIGN_AC_LAT"}}
Add_MPCD_VIDEO_Element(AC_latitude)

local	AC_longitude				= CreateElement "ceStringPoly"
		AC_longitude.name			= "AC_longitude"
		AC_longitude.material		= mpcd_tpod_font
		AC_longitude.init_pos		= { 0.0,  0.25, 0}
		AC_longitude.alignment		= "CenterCenter"
		AC_longitude.formats		= {"%s"}
		AC_longitude.stringdefs		= MPCD_large_font_size
		AC_longitude.controllers	= {{"EHSD_ALIGN_Mode"}, {"EHSD_INS_ALIGN_AC_LON"}}
Add_MPCD_VIDEO_Element(AC_longitude)

-- CARRIER DATA
local	CV_HDG_Label				= CreateElement "ceStringPoly"
		CV_HDG_Label.name			= "CV_HDG_Label"
		CV_HDG_Label.material		= mpcd_tpod_font
		CV_HDG_Label.init_pos		= { -0.325,  0.05, 0}
		CV_HDG_Label.alignment		= "LeftCenter"
		CV_HDG_Label.value			= "CV HDG:"
		CV_HDG_Label.stringdefs		= MPCD_large_font_size
		CV_HDG_Label.controllers	= {{"EHSD_ALIGN_Mode"}, {"EHSD_INS_ALIGN_MODE_SEA_MANUAL"}}
Add_MPCD_VIDEO_Element(CV_HDG_Label)

local	CV_HDG_Value				= CreateElement "ceStringPoly"
		CV_HDG_Value.name			= "CV_HDG_Value"
		CV_HDG_Value.material		= mpcd_tpod_font
		CV_HDG_Value.init_pos		= { 0.40,  0.05, 0}
		CV_HDG_Value.alignment		= "RightCenter"
		CV_HDG_Value.formats		= {"%03d;"}
		CV_HDG_Value.stringdefs		= MPCD_large_font_size
		CV_HDG_Value.parent_element	= CV_HDG_Label.name
		CV_HDG_Value.controllers	= {{"EHSD_INS_ALIGN_CV_HDG"}}
Add_MPCD_VIDEO_Element(CV_HDG_Value)

local	CV_SPD_Label				= CreateElement "ceStringPoly"
		CV_SPD_Label.name			= "CV_SPD_Label"
		CV_SPD_Label.material		= mpcd_tpod_font
		CV_SPD_Label.init_pos		= { -0.325,  -0.05, 0}
		CV_SPD_Label.alignment		= "LeftCenter"
		CV_SPD_Label.value			= "CV SPD:"
		CV_SPD_Label.stringdefs		= MPCD_large_font_size
		CV_SPD_Label.controllers	= {{"EHSD_ALIGN_Mode"}, {"EHSD_INS_ALIGN_MODE_SEA_MANUAL"}}
Add_MPCD_VIDEO_Element(CV_SPD_Label)

local	CV_SPD_Value				= CreateElement "ceStringPoly"
		CV_SPD_Value.name			= "CV_SPD_Value"
		CV_SPD_Value.material		= mpcd_tpod_font
		CV_SPD_Value.init_pos		= { 0.40,  -0.05, 0}
		CV_SPD_Value.alignment		= "RightCenter"
		CV_SPD_Value.formats		= {"%02d KTS"}
		CV_SPD_Value.stringdefs		= MPCD_large_font_size
		CV_SPD_Value.parent_element	= CV_SPD_Label.name
		CV_SPD_Value.controllers	= {{"EHSD_INS_ALIGN_CV_SPD"}}
Add_MPCD_VIDEO_Element(CV_SPD_Value)

-- ALIGNMENT QUALITY
local	QUAL_NMB_Label				= CreateElement "ceStringPoly"
		QUAL_NMB_Label.name			= "QUAL_NMB_Label"
		QUAL_NMB_Label.material		= mpcd_tpod_font
		QUAL_NMB_Label.init_pos		= { -0.325,  -0.25, 0}
		QUAL_NMB_Label.alignment	= "LeftCenter"
		QUAL_NMB_Label.value		= "QUAL:"
		QUAL_NMB_Label.stringdefs	= MPCD_large_font_size
		QUAL_NMB_Label.controllers	= {{"EHSD_ALIGN_Mode"}}
Add_MPCD_VIDEO_Element(QUAL_NMB_Label)

local	QUAL_NMB_Value				= CreateElement "ceStringPoly"
		QUAL_NMB_Value.name			= "QUAL_NMB_Value"
		QUAL_NMB_Value.material		= mpcd_tpod_font
		QUAL_NMB_Value.init_pos		= { 0.20,  -0.25, 0}
		QUAL_NMB_Value.alignment	= "RightCenter"
		QUAL_NMB_Value.formats		= {"%1.1f"}
		QUAL_NMB_Value.stringdefs	= MPCD_large_font_size
		QUAL_NMB_Value.controllers	= {{"EHSD_ALIGN_Mode"}, {"EHSD_INS_ALIGN_QUAL_VAL"}}
Add_MPCD_VIDEO_Element(QUAL_NMB_Value)

local	QUAL_NMB_Mesage				= CreateElement "ceStringPoly"
		QUAL_NMB_Mesage.name		= "QUAL_NMB_Mesage"
		QUAL_NMB_Mesage.material	= mpcd_tpod_font
		QUAL_NMB_Mesage.init_pos	= { 0.45,  -0.25, 0}
		QUAL_NMB_Mesage.alignment	= "RightCenter"
		QUAL_NMB_Mesage.formats		= {"%s"}
		QUAL_NMB_Mesage.stringdefs	= MPCD_large_font_size
		QUAL_NMB_Mesage.controllers	= {{"EHSD_ALIGN_Mode"}, {"EHSD_INS_ALIGN_QUAL_MSG"}}
Add_MPCD_VIDEO_Element(QUAL_NMB_Mesage)

-- ALIGNMENT ELAPSED TIME
local	ALIGN_ETIME_Label				= CreateElement "ceStringPoly"
		ALIGN_ETIME_Label.name			= "ALIGN_ETIME_Label"
		ALIGN_ETIME_Label.material		= mpcd_tpod_font
		ALIGN_ETIME_Label.init_pos		= { -0.325,  -0.35, 0}
		ALIGN_ETIME_Label.alignment		= "LeftCenter"
		ALIGN_ETIME_Label.value			= "TIME:"
		ALIGN_ETIME_Label.stringdefs	= MPCD_large_font_size
		ALIGN_ETIME_Label.controllers	= {{"EHSD_ALIGN_Mode"}}
Add_MPCD_VIDEO_Element(ALIGN_ETIME_Label)

local	ALIGN_ETIME_Value				= CreateElement "ceStringPoly"
		ALIGN_ETIME_Value.name			= "ALIGN_ETIME_Value"
		ALIGN_ETIME_Value.material		= mpcd_tpod_font
		ALIGN_ETIME_Value.init_pos		= { 0.25,  -0.35, 0}
		ALIGN_ETIME_Value.alignment		= "RightCenter"
		ALIGN_ETIME_Value.formats		= {"%02d:%02d"}
		ALIGN_ETIME_Value.stringdefs	= MPCD_large_font_size
		ALIGN_ETIME_Value.controllers	= {{"EHSD_ALIGN_Mode"}, {"EHSD_INS_ALIGN_ELAPSED_TIME"}}
Add_MPCD_VIDEO_Element(ALIGN_ETIME_Value)
