Ejemplo n.º 1
0
 private void setUpTexts()
 {
     paramHandler.loadXMLParameters();
     paramHandler.loadMagnetometerParams();
     paramHandler.loadGyroscopeParams();
     double[] param = paramHandler.getMagnetometerOffsets();
     this.xOff.Text     = param[0].ToString();
     this.yOff.Text     = param[1].ToString();
     this.zOff.Text     = param[2].ToString();
     param              = paramHandler.getMagnetometerScaleFactors();
     this.xScale.Text   = param[0].ToString();
     this.yScale.Text   = param[1].ToString();
     this.zScale.Text   = param[2].ToString();
     param              = paramHandler.getGyroOffsets();
     this.gyroXOff.Text = param[0].ToString();
     this.gyroYOff.Text = param[1].ToString();
     this.gyroZOff.Text = param[2].ToString();
 }
Ejemplo n.º 2
0
        protected double magnSFZ  = 1;                  //1.04;

        public void loadParameters()
        {
            ParametersHandler paramHandler = ParametersHandler.getIntance();

            paramHandler.loadXMLParameters();
            paramHandler.loadMagnetometerParams();
            paramHandler.loadGyroscopeParams();

            double[] param = paramHandler.getMagnetometerOffsets();
            this.magnOffX     = param[0];
            this.magnOffY     = param[1];
            this.magnOffZ     = param[2];
            param             = paramHandler.getMagnetometerScaleFactors();
            this.magnSFX      = param[0];
            this.magnSFY      = param[1];
            this.magnSFZ      = param[2];
            param             = paramHandler.getGyroOffsets();
            this.gyroOffRoll  = param[0];
            this.gyroOffPitch = param[1];
            this.gyroOffYaw   = param[2];
        }