using System; using Vector.Tools; using Vector.CANoe.Runtime; // Import communication model using DataTypes; using NetworkDB.Services; using NetworkDB.Participants; // Implementation of the service interface Navigation public class Navigation_Provider_Impl : Navigation_Interface_ProviderInterface { public override void Get_Navigation_Info(string destination, double longitude, double latitude, out DataTypes.Navigation_Info navigation_info) { navigation_info = new Navigation_Info(); navigation_info.Destination = SysVars.Backend_Panel.Navigation_Info.Destination.Value; navigation_info.Distance.ImplValue = SysVars.Backend_Panel.Navigation_Info.Distance.Value; navigation_info.POIs.Length = 3; navigation_info.POIs[0].Category.ImplValue = SysVars.Backend_Panel.POI_1.Category.Value; navigation_info.POIs[0].Distance.ImplValue = SysVars.Backend_Panel.POI_1.Distance.Value; navigation_info.POIs[0].Message = SysVars.Backend_Panel.POI_1.Message.Value; navigation_info.POIs[1].Category.ImplValue = SysVars.Backend_Panel.POI_2.Category.Value; navigation_info.POIs[1].Distance.ImplValue = SysVars.Backend_Panel.POI_2.Distance.Value; navigation_info.POIs[1].Message = SysVars.Backend_Panel.POI_2.Message.Value; navigation_info.POIs[2].Category.ImplValue = SysVars.Backend_Panel.POI_3.Category.Value; navigation_info.POIs[2].Distance.ImplValue = SysVars.Backend_Panel.POI_3.Distance.Value; navigation_info.POIs[2].Message = SysVars.Backend_Panel.POI_3.Message.Value; } } public class Backend_Model : MeasurementScript { public override void Start() { Navigation.SetProviderImplementation(new Navigation_Provider_Impl()); } }