Estimations of magnetic flux linkages, either between the stationary windings of the stator for the direct torque control (DTC), or between the stationary windings and the rotor for the sensorless field-oriented control (FOC), are based on integration of corresponding voltages. Integration of voltages with offsets that come from improperly calibrated measurements as well as from transient states generally produces unwanted drifts in the resulting magnetic flux linkages, which when used within any type of control of sensorless electrical drives results in instability. This paper addresses that problem and proposes a simple self-contained solution based on orthogonal properties of waveforms of input voltages and resulting magnetic flux linkages in the frame of reference fixed to the geometry of the stator. The proposed solution requires only two periodic orthogonal input waveforms with a distinct common fundamental harmonic, which as such is independent of the type and parameters of the used machine. The idea of the proposed solution is presented analytically, its stability is proven by means of the quadratic Lyapunov theory, and its functionality is demonstrated by standalone simulations and experiments within the sensorless FOC of a permanent magnet synchronous machine (PMSM). limited because the drift for larger transients can become too large within one period to be successfully compensated. The standard solution to the problem of the drift is the replacement of the integrators by low-pass filters (LPFs), where the idea is to asymptotically match the magnitude characteristic of the integrators above 1 rad·s −1 in the frequency domain so that the gain for the frequencies below 1 rad·s −1 is one, or equivalently 0 dB. The same effect can be achieved with a high-pass filter (HPF) in a cascade with each of the integrators. Such solutions with the fixed cut-off frequencies of the filters affect both the magnitude and the phase of the output waveforms of the magnetic flux linkages, as it can be seen from the results presented in [5][6][7][8][9][10][11]. The influence of the cut-off frequency on the magnitude for the frequencies more than two octaves above it is practically negligible, while the influence on the phase can be considered negligible for the frequencies more than two decades above the cut-off frequency. Since the dynamics of the filters is proportional to their cut-off frequency, cascaded LPFs presented in [12,13] vary their cut-off frequency to achieve better dynamics, while the influence on the magnitude and the phase of the resulting magnetic flux linkages is compensated according to the frequency of the input voltages. Similar solutions based on programmable LPFs with variable cut-off frequencies are presented in [14][15][16][17], where the dynamics are defined by the ratio of the cut-off frequencies to the frequency of the input voltages, while the magnitude and the phase of the resulting waveforms are constant and as such are easily compensable. Solutions based on orthogonality between the input vol...