public MotorSettings(Scale motorScale, float safeOutput, float minimumOutput, float maximumOutput ) { MotorScale = motorScale; SafeOutput = safeOutput; MinimumOutput = minimumOutput; MaximumOutput = maximumOutput; }
public void TestQuadratics() { Scale scale = new Scale(-1500F, 0.0000008F, 0F, 0F, 0F); Assert.AreEqual(scale.Calculate(1000),-100); }
public void ApplyScale(Scale scale) { X = scale.Calculate(X); Y = scale.Calculate(Y); Z = scale.Calculate(Z); }
public AccelerometerSettings(Scale accelerometerScale, RunningAverage accelerometerAverage) { AccelerometerScale = accelerometerScale; AccelerometerAverage = accelerometerAverage; }
public RadioSettings(Scale throttleScale, Scale axesScale, float radioSensitivityFactor) { ThrottleScale = throttleScale; AxesScale = axesScale; RadioSensitivityFactor = radioSensitivityFactor; }
public GyroSettings(Scale gyroScale, RunningAverage gyroAverage) { GyroScale = gyroScale; GyroAverage = gyroAverage; }