public bool InitializeVariables() { INU newINUSample = new INU(); newINUSample.INUTimeStampID = 0; newINUSample.PitchCmd = 0; newINUSample.PitchVal = 0; newINUSample.YawCmd = 0; newINUSample.YawVal = 0; newINUSample.RollVal = 0; newINUSample.RollCmd = 0; myINUHistory.Add(newINUSample); timebase = Convert.ToDouble(tTimeBase.Text); timedelay = Convert.ToDouble(tDelay.Text); /*for(int i = 0; i < VehiclePylons.Count; i++) * { * kP[i] = 1; * kI[i] = 0; * kD[i] = 0; * Ierror[i] = 0; * }*/ kP = Convert.ToDouble(tkP.Text); kI = Convert.ToDouble(tkI.Text); kD = Convert.ToDouble(tkD.Text); accuracy = Convert.ToDouble(tAccuracyPercent.Text); Ps = Convert.ToDouble(nPitchCmd.Text); Ys = Convert.ToDouble(nYawCmd.Text); Rs = Convert.ToDouble(nRollCmd.Text); Ts = Convert.ToDouble(nThrottleCmd.Text); return(true); }
public bool InitializeVariables() { INU newINUSample = new INU(); newINUSample.INUTimeStampID = 0; newINUSample.PitchCmd = 0; newINUSample.PitchVal = 0; newINUSample.YawCmd = 0; newINUSample.YawVal = 0; newINUSample.RollVal = 0; newINUSample.RollCmd = 0; myINUHistory.Add(newINUSample); timebase = Convert.ToDouble(tTimeBase.Text); timedelay = Convert.ToDouble(tDelay.Text); /*for(int i = 0; i < VehiclePylons.Count; i++) { kP[i] = 1; kI[i] = 0; kD[i] = 0; Ierror[i] = 0; }*/ kP = Convert.ToDouble(tkP.Text); kI = Convert.ToDouble(tkI.Text); kD = Convert.ToDouble(tkD.Text); accuracy = Convert.ToDouble(tAccuracyPercent.Text); Ps = Convert.ToDouble(nPitchCmd.Text); Ys = Convert.ToDouble(nYawCmd.Text); Rs = Convert.ToDouble(nRollCmd.Text); Ts = Convert.ToDouble(nThrottleCmd.Text); return true; }