コード例 #1
0
        //handling external events
        void CarComunicator_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args)
        {
            currentSpeedLocalCopy = args.GetSpeedInfo();
            Logger.Log(this, String.Format("new current speed value acquired: {0}", args.GetSpeedInfo()));

            //this setter also sends event "evNewSpeedSettingCalculated"
            SpeedSteering = regulator.ProvideObjectCurrentValueToRegulator(currentSpeedLocalCopy);
        }
コード例 #2
0
ファイル: RealCarCommunicator.cs プロジェクト: rAum/auton_net
 void speedometer_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args)
 {
     SpeedInfoReceivedEventHander temp = evSpeedInfoReceived;
     if (temp != null)
     {
         temp(this, new SpeedInfoReceivedEventArgs(args.GetSpeedInfo()));
     }
 }
コード例 #3
0
ファイル: RealCarCommunicator.cs プロジェクト: Spawek/valeo
        void speedometer_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args)
        {
            SpeedInfoReceivedEventHander temp = evSpeedInfoReceived;

            if (temp != null)
            {
                temp(this, new SpeedInfoReceivedEventArgs(args.GetSpeedInfo()));
            }
        }
コード例 #4
0
ファイル: PIDSpeedRegulator.cs プロジェクト: Spawek/valeo
        //handling external events
        void CarComunicator_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args)
        {
            currentSpeedLocalCopy = args.GetSpeedInfo();
            Logger.Log(this, String.Format("new current speed value acquired: {0}", args.GetSpeedInfo()));

            //this setter also sends event "evNewSpeedSettingCalculated"
            SpeedSteering = regulator.ProvideObjectCurrentValueToRegulator(currentSpeedLocalCopy);
        }
コード例 #5
0
ファイル: CarController.cs プロジェクト: Spawek/valeo
 private void CarComunicator_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args)
 {
     Model.CarInfo.CurrentSpeed = args.GetSpeedInfo();
 }
コード例 #6
0
 private void CarComunicator_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args)
 {
     Model.CarInfo.CurrentSpeed = args.GetSpeedInfo();
 }
コード例 #7
0
 void CarComunicator_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args)
 {
     UpdateTextBlock(textBlock_currentSpeed, args.GetSpeedInfo(), currentSpeedLabelData);
 }
コード例 #8
0
ファイル: MainWindow.xaml.cs プロジェクト: rAum/auton_net
 void CarComunicator_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args)
 {
     UpdateTextBlock(textBlock_currentSpeed, args.GetSpeedInfo(), currentSpeedLabelData);
 }