ScaledQuadratureEncoder.Acceleration(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Calculate the amount of acceleration to be applied to the increment of the encoder.
protected virtual int Acceleration (int milliSecondsSinceLastPulse);
abstract member Acceleration : int -> int
override this.Acceleration : int -> int
Protected Overridable Function Acceleration (milliSecondsSinceLastPulse As Integer) As Integer
Parameters
- milliSecondsSinceLastPulse
- Int32
The amount of time elapsed since the last data pulse from the encoder in milliseconds.
Returns
A value that can be used to apply acceleration to the rotary encoder.
Remarks
This uses a straight line function output = input * AccelerationSlope + Acceleration offset but can be overridden to perform different algorithms.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for