public static ParametersHandler getIntance()
        {
            if(instance==null)
                instance=new ParametersHandler();

            return instance;
        }
        public static ParametersHandler getIntance()
        {
            if (instance == null)
            {
                instance = new ParametersHandler();
            }

            return(instance);
        }
예제 #3
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];
        }
예제 #4
0
 public ParametersForm()
 {
     InitializeComponent();
     paramHandler = ParametersHandler.getIntance();
     setUpTexts();
 }
예제 #5
0
 public ParametersForm()
 {
     InitializeComponent();
     paramHandler = ParametersHandler.getIntance();
     setUpTexts();
 }