1
0
Fork 0

Support for runway guard lights (wig-wag) from apt.dat spec

This commit is contained in:
Christian Schmitt 2012-11-22 16:45:09 +01:00
parent 41e65fe6fa
commit bc63d72de5

View file

@ -104,6 +104,18 @@ void LightingObj::BuildBtg( tglightcontour_list& lights )
// only one light here
light_contour.AddLight( ref, normal );
}
else if (type == 6)
{
SG_LOG(SG_GENERAL, SG_DEBUG, "Generating runway guard light = " << assoc_rw);
light_contour.SetType( "RWY_GUARD_LIGHTS" );
// unit 1
light_contour.AddLight( SGGeodesy::direct( ref, left_hdg, 0.2 ), normal );
// unit 2
light_contour.AddLight( SGGeodesy::direct( ref, left_hdg, -0.2 ), normal );
}
else
{
SG_LOG(SG_GENERAL, SG_ALERT, "Unknown lighting object (PAPI/VASI...) code: " << type);