Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 739 Bytes

File metadata and controls

20 lines (17 loc) · 739 Bytes

Encoder

switch to Russian

Simulates the operation of an absolute and incremental encoder with a built-in pulse counter.

Fields

Field Description Type
type Type of device being modeled RSMA.EncoderType
resolution The resolution of the encoder. Number of pulses per revolution System.Int32
connectedBody Body connected to encoder shaft UnityEngine.GameObject
axis Represents the encoder axis, emanating from origin UnityEngine.Vector3

Methods

SendData

 Sends the number of pulses measured by the encoder

Declaration:

public override string SendData()

Returns:

 Number of pulses measured by the encoder counter