Compute electrical angular position of resolver
Motor Control Blockset / Sensor Decoders
The Resolver Decoder block calculates the electrical angular position of the resolver from the resolver sine and cosine output signals.
The resolver uses a primary sinusoidal excitation input signal to generate the modulated secondary sine and cosine waveforms.
You must normalize these waveforms (within the range of [-1,1] and centered at 0) and sample them to obtain the secondary sine and cosine input signals of the Resolver Decoder block.
The block computes and outputs the resolver position in [0, 2π] radians. The block can also add a phase delay to the sampled sine and cosine signals with respect to the excitation signal.
Note
The block inputs should have identical amplitude and data types (either signed fixed or floating point).
The block computes the average, peak amplitude values, and the sign of the peak amplitude of a signal cycle as
where:
is the average amplitude value of a signal cycle
is the number of samples per excitation cycle
is the peak amplitude value of a signal cycle
The block computes the electrical angular position of the resolver as
where:
is the of the secondary sine signal
is the of the secondary cosine signal
is the electrical angular position of the resolver