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