Esempio n. 1
0
 /// <summary>
 /// Called after <see cref="SnapToStepOnRelease"/> has been changed.
 /// </summary>
 protected virtual void OnAfterSnapToStepOnRelease()
 {
     Drive.ToggleSnapToStepLogic(SnapToStepOnRelease);
 }
Esempio n. 2
0
 /// <summary>
 /// Called after <see cref="StepRange"/> has been changed.
 /// </summary>
 protected virtual void OnAfterStepRangeChange()
 {
     Drive.SetUp();
 }
Esempio n. 3
0
 /// <summary>
 /// Called after <see cref="StepIncrement"/> has been changed.
 /// </summary>
 protected virtual void OnAfterStepIncrementChange()
 {
     Drive.SetUp();
 }
Esempio n. 4
0
 /// <summary>
 /// Called after <see cref="TargetValue"/> has been changed.
 /// </summary>
 protected virtual void OnAfterTargetValueChange()
 {
     Drive.SetUp();
 }
Esempio n. 5
0
 /// <summary>
 /// Called after <see cref="DriveSpeed"/> has been changed.
 /// </summary>
 protected virtual void OnAfterDriveSpeedChange()
 {
     Drive.SetUp();
 }
Esempio n. 6
0
 /// <summary>
 /// Called after <see cref="DriveAxis"/> has been changed.
 /// </summary>
 protected virtual void OnAfterDriveAxisChange()
 {
     Drive.ResetDriveOnSetup = true;
     Drive.SetUp();
 }
Esempio n. 7
0
 /// <summary>
 /// Processes the changes to the <see cref="DriveSpeed"/>.
 /// </summary>
 /// <param name="driveSpeed">The new value.</param>
 /// <param name="moveToTargetValue">Whether the new value should be processed.</param>
 protected virtual void ProcessDriveSpeed(float driveSpeed, bool moveToTargetValue)
 {
     Drive.ProcessDriveSpeed(driveSpeed, moveToTargetValue);
 }
Esempio n. 8
0
 /// <summary>
 /// Sets the new <see cref="TargetValue"/>.
 /// </summary>
 /// <param name="targetValue">The new value.</param>
 protected virtual void SetTargetValue(float targetValue)
 {
     Drive.SetTargetValue(targetValue);
 }
Esempio n. 9
0
 /// <summary>
 /// Processes the drive's ability to automatically drive the control.
 /// </summary>
 /// <param name="autoDrive">Whether the drive can automatically drive the control.</param>
 protected virtual void ProcessAutoDrive(bool autoDrive)
 {
     Drive.ConfigureAutoDrive(autoDrive);
 }
Esempio n. 10
0
 /// <summary>
 /// Calculates the axis to use for the given <see cref="DriveAxis.Axis"/>.
 /// </summary>
 /// <param name="driveAxis">The new value.</param>
 protected virtual void CalculateDriveAxis(DriveAxis.Axis driveAxis)
 {
     Drive.CalculateDriveAxis(driveAxis);
 }