public static ParametersHandler getIntance() { if (instance == null) { instance = new ParametersHandler(); } return(instance); }
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]; }
public ParametersForm() { InitializeComponent(); paramHandler = ParametersHandler.getIntance(); setUpTexts(); }