public void UpdateDisplay() { LabelConsigneX.Content = consigneXList.Average().ToString("N2"); LabelConsigneY.Content = consigneYList.Average().ToString("N2"); LabelConsigneTheta.Content = consigneThetaList.Average().ToString("N2"); LabelConsigneM1.Content = consigneM1List.Average().ToString("N2"); LabelConsigneM2.Content = consigneM2List.Average().ToString("N2"); LabelConsigneM3.Content = consigneM3List.Average().ToString("N2"); LabelConsigneM4.Content = consigneM4List.Average().ToString("N2"); LabelMeasureX.Content = measuredXList.Average().ToString("N2"); LabelMeasureY.Content = measuredYList.Average().ToString("N2"); LabelMeasureTheta.Content = measuredThetaList.Average().ToString("N2"); LabelMeasureM1.Content = measuredM1List.Average().ToString("N2"); LabelMeasureM2.Content = measuredM2List.Average().ToString("N2"); LabelMeasureM3.Content = measuredM3List.Average().ToString("N2"); LabelMeasureM4.Content = measuredM4List.Average().ToString("N2"); LabelErreurX.Content = errorXList.Average().ToString("N2"); LabelErreurY.Content = errorYList.Average().ToString("N2"); LabelErreurTheta.Content = errorThetaList.Average().ToString("N2"); LabelErreurM1.Content = errorM1List.Average().ToString("N2"); LabelErreurM2.Content = errorM2List.Average().ToString("N2"); LabelErreurM3.Content = errorM3List.Average().ToString("N2"); LabelErreurM4.Content = errorM4List.Average().ToString("N2"); LabelCommandX.Content = commandXList.Average().ToString("N2"); LabelCommandY.Content = commandYList.Average().ToString("N2"); LabelCommandTheta.Content = commandThetaList.Average().ToString("N2"); LabelCommandM1.Content = commandM1List.Average().ToString("N2"); LabelCommandM2.Content = commandM2List.Average().ToString("N2"); LabelCommandM3.Content = commandM3List.Average().ToString("N2"); LabelCommandM4.Content = commandM4List.Average().ToString("N2"); LabelKpX.Content = KpX.ToString("N2"); LabelKpY.Content = KpY.ToString("N2"); LabelKpTheta.Content = KpTheta.ToString("N2"); LabelKpM1.Content = KpM1.ToString("N2"); LabelKpM2.Content = KpM2.ToString("N2"); LabelKpM3.Content = KpM3.ToString("N2"); LabelKpM4.Content = KpM4.ToString("N2"); LabelKiX.Content = KiX.ToString("N2"); LabelKiY.Content = KiY.ToString("N2"); LabelKiTheta.Content = KiTheta.ToString("N2"); LabelKiM1.Content = KiM1.ToString("N2"); LabelKiM2.Content = KiM2.ToString("N2"); LabelKiM3.Content = KiM3.ToString("N2"); LabelKiM4.Content = KiM4.ToString("N2"); LabelKdX.Content = KdX.ToString("N2"); LabelKdY.Content = KdY.ToString("N2"); LabelKdTheta.Content = KdTheta.ToString("N2"); LabelKdM1.Content = KdM1.ToString("N2"); LabelKdM2.Content = KdM2.ToString("N2"); LabelKdM3.Content = KdM3.ToString("N2"); LabelKdM4.Content = KdM4.ToString("N2"); LabelCorrMaxPX.Content = corrLimitPX.ToString("N2"); LabelCorrMaxPY.Content = corrLimitPY.ToString("N2"); LabelCorrMaxPTheta.Content = corrLimitPTheta.ToString("N2"); LabelCorrMaxPM1.Content = corrLimitPM1.ToString("N2"); LabelCorrMaxPM2.Content = corrLimitPM2.ToString("N2"); LabelCorrMaxPM3.Content = corrLimitPM3.ToString("N2"); LabelCorrMaxPM4.Content = corrLimitPM4.ToString("N2"); LabelCorrMaxIX.Content = corrLimitIX.ToString("N2"); LabelCorrMaxIY.Content = corrLimitIY.ToString("N2"); LabelCorrMaxITheta.Content = corrLimitITheta.ToString("N2"); LabelCorrMaxIM1.Content = corrLimitIM1.ToString("N2"); LabelCorrMaxIM2.Content = corrLimitIM2.ToString("N2"); LabelCorrMaxIM3.Content = corrLimitIM3.ToString("N2"); LabelCorrMaxIM4.Content = corrLimitIM4.ToString("N2"); LabelCorrMaxDX.Content = corrLimitDX.ToString("N2"); LabelCorrMaxDY.Content = corrLimitDY.ToString("N2"); LabelCorrMaxDTheta.Content = corrLimitDTheta.ToString("N2"); LabelCorrMaxDM1.Content = corrLimitDM1.ToString("N2"); LabelCorrMaxDM2.Content = corrLimitDM2.ToString("N2"); LabelCorrMaxDM3.Content = corrLimitDM3.ToString("N2"); LabelCorrMaxDM4.Content = corrLimitDM4.ToString("N2"); if (corrPXList.Count > 0) { LabelCorrPX.Content = corrPXList.Average().ToString("N2"); LabelCorrPY.Content = corrPYList.Average().ToString("N2"); LabelCorrPTheta.Content = corrPThetaList.Average().ToString("N2"); LabelCorrIX.Content = corrIXList.Average().ToString("N2"); LabelCorrIY.Content = corrIYList.Average().ToString("N2"); LabelCorrITheta.Content = corrIThetaList.Average().ToString("N2"); LabelCorrDX.Content = corrDXList.Average().ToString("N2"); LabelCorrDY.Content = corrDYList.Average().ToString("N2"); LabelCorrDTheta.Content = corrDThetaList.Average().ToString("N2"); } if (corrPM1List.Count > 0) { LabelCorrPM1.Content = corrPM1List.Average().ToString("N2"); LabelCorrPM2.Content = corrPM2List.Average().ToString("N2"); LabelCorrPM3.Content = corrPM3List.Average().ToString("N2"); LabelCorrPM4.Content = corrPM4List.Average().ToString("N2"); LabelCorrIM1.Content = corrIM1List.Average().ToString("N2"); LabelCorrIM2.Content = corrIM2List.Average().ToString("N2"); LabelCorrIM3.Content = corrIM3List.Average().ToString("N2"); LabelCorrIM4.Content = corrIM4List.Average().ToString("N2"); LabelCorrDM1.Content = corrDM1List.Average().ToString("N2"); LabelCorrDM2.Content = corrDM2List.Average().ToString("N2"); LabelCorrDM3.Content = corrDM3List.Average().ToString("N2"); LabelCorrDM4.Content = corrDM4List.Average().ToString("N2"); } }
public void UpdateDisplay() { LabelConsigneX.Content = consigneXList.Average().ToString("N2"); LabelConsigneTheta.Content = consigneThetaList.Average().ToString("N2"); LabelConsigneM1.Content = consigneM1List.Average().ToString("N2"); LabelConsigneM2.Content = consigneM2List.Average().ToString("N2"); LabelMeasureX.Content = measuredXList.Average().ToString("N2"); LabelMeasureTheta.Content = measuredThetaList.Average().ToString("N2"); LabelMeasureM1.Content = measuredM1List.Average().ToString("N2"); LabelMeasureM2.Content = measuredM2List.Average().ToString("N2"); LabelErreurX.Content = errorXList.Average().ToString("N2"); LabelErreurTheta.Content = errorThetaList.Average().ToString("N2"); LabelErreurM1.Content = errorM1List.Average().ToString("N2"); LabelErreurM2.Content = errorM2List.Average().ToString("N2"); LabelCommandX.Content = commandXList.Average().ToString("N2"); LabelCommandTheta.Content = commandThetaList.Average().ToString("N2"); LabelCommandM1.Content = commandM1List.Average().ToString("N2"); LabelCommandM2.Content = commandM2List.Average().ToString("N2"); LabelKpX.Content = KpX.ToString("N2"); LabelKpTheta.Content = KpTheta.ToString("N2"); LabelKpM1.Content = KpM1.ToString("N2"); LabelKpM2.Content = KpM2.ToString("N2"); LabelKiX.Content = KiX.ToString("N2"); LabelKiTheta.Content = KiTheta.ToString("N2"); LabelKiM1.Content = KiM1.ToString("N2"); LabelKiM2.Content = KiM2.ToString("N2"); LabelKdX.Content = KdX.ToString("N2"); LabelKdTheta.Content = KdTheta.ToString("N2"); LabelKdM1.Content = KdM1.ToString("N2"); LabelKdM2.Content = KdM2.ToString("N2"); LabelCorrMaxPX.Content = corrLimitPX.ToString("N2"); LabelCorrMaxPTheta.Content = corrLimitPTheta.ToString("N2"); LabelCorrMaxPM1.Content = corrLimitPM1.ToString("N2"); LabelCorrMaxPM2.Content = corrLimitPM2.ToString("N2"); LabelCorrMaxIX.Content = corrLimitIX.ToString("N2"); LabelCorrMaxITheta.Content = corrLimitITheta.ToString("N2"); LabelCorrMaxIM1.Content = corrLimitIM1.ToString("N2"); LabelCorrMaxIM2.Content = corrLimitIM2.ToString("N2"); LabelCorrMaxDX.Content = corrLimitDX.ToString("N2"); LabelCorrMaxDTheta.Content = corrLimitDTheta.ToString("N2"); LabelCorrMaxDM1.Content = corrLimitDM1.ToString("N2"); LabelCorrMaxDM2.Content = corrLimitDM2.ToString("N2"); if (posXList.Count > 0) { LabelPosX.Content = posXList.Average().ToString("N2"); LabelPosY.Content = posYList.Average().ToString("N2"); LabelAngleRadian.Content = angleRadianList.Average().ToString("N2"); } if (corrPXList.Count > 0) { LabelCorrPX.Content = corrPXList.Average().ToString("N2"); LabelCorrPTheta.Content = corrPThetaList.Average().ToString("N2"); LabelCorrIX.Content = corrIXList.Average().ToString("N2"); LabelCorrITheta.Content = corrIThetaList.Average().ToString("N2"); LabelCorrDX.Content = corrDXList.Average().ToString("N2"); LabelCorrDTheta.Content = corrDThetaList.Average().ToString("N2"); } if (corrPM1List.Count > 0) { LabelCorrPM1.Content = corrPM1List.Average().ToString("N2"); LabelCorrPM2.Content = corrPM2List.Average().ToString("N2"); LabelCorrIM1.Content = corrIM1List.Average().ToString("N2"); LabelCorrIM2.Content = corrIM2List.Average().ToString("N2"); LabelCorrDM1.Content = corrDM1List.Average().ToString("N2"); LabelCorrDM2.Content = corrDM2List.Average().ToString("N2"); } if (IRRigthEndList.Count > 0) { LabelIRRigthEnd.Content = IRRigthEndList.Average().ToString("N2"); LabelIRRigth.Content = IRRigthList.Average().ToString("N2"); LabelIRCenter.Content = IRCenterList.Average().ToString("N2"); LabelIRLeft.Content = IRLeftList.Average().ToString("N2"); LabelIRLeftEnd.Content = IRLeftEndList.Average().ToString("N2"); } if (timestampList.Count > 0) { LabelTimestamp.Content = timestampList.Average().ToString("N2"); } }