Beispiel #1
0
        private void Notify(int line)
        {
            FlightControllerEventArgs e_args = new FlightControllerEventArgs(parser.Parse(line));

            if (dataUpdated != null)
            {
                dataUpdated(this, e_args);
            }
        }
Beispiel #2
0
 private void Fc_dataUpdated(object sender, FlightControllerEventArgs e)
 {
     Dispatcher.BeginInvoke(new Action(() => {
         rotate_trans.CenterX = ecc.ActualWidth / 2;
         rotate_trans.CenterY = ecc.ActualHeight / 2;
         rotate_trans.Angle   = -1 * float.Parse(e.GetData("roll-deg"));
         setPitch(float.Parse(e.GetData("pitch-deg")));
     }));
 }
Beispiel #3
0
 private void Update(object sender, FlightControllerEventArgs e)
 {
     VM_Airspeed    = float.Parse(e.GetData("airspeed-kt"));
     VM_Altitude    = float.Parse(e.GetData("altitude-ft"));
     VM_HeadingDeg  = float.Parse(e.GetData("heading-deg"));
     VM_RollDeg     = float.Parse(e.GetData("roll-deg"));
     VM_PitchDeg    = float.Parse(e.GetData("pitch-deg"));
     VM_SideSlipDeg = float.Parse(e.GetData("side-slip-deg"));
     VM_throttle    = float.Parse(e.GetData("throttle"));
     VM_rudder      = float.Parse(e.GetData("rudder"));
     VM_aileron     = float.Parse(e.GetData("aileron"));
     VM_elevator    = float.Parse(e.GetData("elevator"));
     //NotifyPropertyChanged("VM_Airspeed");
 }
Beispiel #4
0
        private void Update(object sender, FlightControllerEventArgs e)
        {
            if (dc == null)
            {
                dc = fc.getDataCalculations;
            }
            for (int i = 0; i < Names.Length; i++)
            {
                datalists[Names[i]].AddLast(new DataPoint(mc.getCurrentTimeInMilisecs(), float.Parse(e.GetData(Names[i]))));
            }
            NotifyPropertyChanged("list");

            //NotifyPropertyChanged("CorralatedList");
            // NotifyPropertyChanged("CorralatedName");
            timeStamp++;
        }