Esempio n. 1
0
        private void BindFrameA(FrameA frameA)
        {
            this.gyroscopeUserControl1.f俯仰角 = frameA.f俯仰角;
            this.gyroscopeUserControl1.f俯仰角速率 = frameA.f俯仰角速率;
            this.gyroscopeUserControl1.g滚转角 = frameA.g滚转角;
            this.gyroscopeUserControl1.g滚转角速率 = frameA.g滚转角速率;
            this.gyroscopeUserControl1.c磁航向 = frameA.c磁航向;
            this.gyroscopeUserControl1.p偏航角速率 = frameA.p偏航角速率;

            this.dashboardUserControl1.CurrentValue = frameA.y油门舵量 / 10D;

            this.directionDashboardUserControl1.k空速方向 = frameA.c磁航向;

            if (this.frameForm != null)
            {
                this.frameForm.BindFrameA(frameA);
            }
        }
Esempio n. 2
0
 public void BindFrameA(FrameA frame)
 {
     this.label_f俯仰角_value.Text = frame.f俯仰角.ToString("F1");
     this.label_f滚转角_value.Text = frame.g滚转角.ToString("F1");
     this.label_c磁航向_value.Text = frame.c磁航向.ToString("F1");
     this.label_g滚转角速率_value.Text = frame.g滚转角速率.ToString("F1");
     this.label_p偏航角速率_value.Text = frame.p偏航角速率.ToString("F1");
     this.label_f俯仰角速率_value.Text = frame.f俯仰角速率.ToString("F1");
     this.label_X轴线加速度_value.Text = frame.X轴线加速度.ToString("F2");
     this.label_Y轴线加速度_value.Text = frame.Y轴线加速度.ToString("F2");
     this.label_Z轴线加速度_value.Text = frame.Z轴线加速度.ToString("F2");
     this.label_s升降舵量_value.Text = frame.s升降舵量.ToString("F1");
     this.label_f副翼舵量_value.Text = frame.f副翼舵量.ToString("F1");
     this.label_f方向舵量_value.Text = frame.f方向舵量.ToString("F1");
     this.label_y油门舵量_value.Text = frame.y油门舵量.ToString();
     this.label_s升降速度_value.Text = frame.s升降速度.ToString("F1");
     this.label_c超声波高度_value.Text = frame.c超声波高度.ToString("F1");
     this.label_GPS时_value.Text = frame.GPS时.ToString();
     this.label_GPS分_value.Text = frame.GPS分.ToString();
     this.label_GPS秒_value.Text = frame.GPS秒.ToString();
     this.label_z帧计数_value.Text = frame.z帧计数.ToString();
 }