コード例 #1
0
        public static ParametersHandler getIntance()
        {
            if (instance == null)
            {
                instance = new ParametersHandler();
            }

            return(instance);
        }
コード例 #2
0
        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];
        }
コード例 #3
0
 public ParametersForm()
 {
     InitializeComponent();
     paramHandler = ParametersHandler.getIntance();
     setUpTexts();
 }