Resolver angle tracking system based on adaptive predictive feedforward

By using an adaptive predictive feedforward rotary transformer angle tracking system, which combines reference angle generation, angle tracking observer, and dynamic predictive feedforward compensation unit, the problems of high cost, poor flexibility, and large angle tracking error in traditional schemes are solved. It achieves both noise suppression and dynamic response under different operating conditions, and improves the accuracy and consistency of angle estimation.

CN123144656APending Publication Date: 2026-11-20HARBIN INST OF TECH AT WEIHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611207113.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-10
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Traditional rotary transformer decoding solutions suffer from high cost, poor flexibility, and low hardware integration. Furthermore, existing angle tracking observers struggle to balance noise suppression and dynamic response under both low-speed and high-speed operating conditions, leading to increased angle tracking errors.

Method used

An adaptive predictive feedforward-based rotary transformer angle tracking system is adopted, which includes a reference angle generation unit, an angle tracking observer, and a dynamic predictive feedforward compensation unit. The system performs feedforward compensation within the observer through an adaptive compensation gain control strategy to achieve full-state synchronous correction.

Benefits of technology

It achieves a balance between noise suppression and dynamic response under different operating conditions, reduces angle tracking error, and improves the accuracy and consistency of angle estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123144656A_ABST
    Figure CN123144656A_ABST
Patent Text Reader

Abstract

The application provides a resolver angle tracking system based on adaptive prediction feedforward, which comprises a reference angle generating unit, an angle tracking observer and a dynamic prediction feedforward compensation unit, wherein: the reference angle generating unit generates an angle reference value of a motor rotor based on sine envelope signals and cosine envelope signals output by a resolver; the angle tracking observer generates an angle estimation value of the motor rotor based on a total drive error; the dynamic prediction feedforward compensation unit generates an angle prediction value of the motor rotor based on the angle reference value, and determines a feedforward compensation amount for feedforward compensation of the angle estimation value through an adaptive compensation gain control strategy based on an error between the angle prediction value and the angle estimation value; and the total drive error is determined based on the angle reference value, the angle estimation value and the feedforward compensation amount. The application can realize internal full-state synchronous correction of the observer, and solve the problem of poor full-state consistency of a traditional output end feedforward compensation scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of motor control technology and relates to motor rotation angle measurement technology, specifically providing a rotary transformer angle tracking system based on adaptive predictive feedforward. Background Technology

[0002] Resolvers, as high-precision angle sensors, are widely used in electric drive systems for new energy vehicles, industrial servo motor control, and other fields. Traditional resolver decoding solutions mainly use dedicated resolver-to-digital converter (RDC) chips, but these suffer from high cost, poor flexibility, and low hardware integration. Software decoding technology for resolvers based on general-purpose microcontrollers, which replaces dedicated decoding chips with software algorithms, has become an industry trend. Among these technologies, the Angle Tracking Observer (ATO) is the core component for achieving resolver signal noise smoothing and dynamic tracking.

[0003] However, traditional angle tracking observers have inherent limitations due to their fixed bandwidth: in low-speed scenarios, bandwidth needs to be reduced to ensure noise suppression, while in high-speed conditions, fixed bandwidth is prone to phase lag, causing the angle tracking error to increase with increasing rotational speed. Furthermore, existing improvement schemes mostly employ output-side feedforward compensation strategies, only superimposing and correcting the final angle output of the angle tracking observer without synchronously correcting the velocity and acceleration states within the observer. This results in poor consistency across all states and limited steady-state error optimization.

[0004] Therefore, there is an urgent need for a rotary transformer angle tracking method that can balance noise suppression and dynamic response and achieve synchronous correction across all states. Summary of the Invention

[0005] To address the aforementioned problems, this application provides an adaptive predictive feedforward-based rotary transformer angle tracking system through embodiments. The system includes a reference angle generation unit, an angle tracking observer, and a dynamic predictive feedforward compensation unit, wherein: The reference angle generation unit generates an angle reference value for the motor rotor based on the sine and cosine envelope signals output by the rotary transformer. The angle tracking observer generates an estimated value of the motor rotor angle based on the total drive error; The dynamic prediction feedforward compensation unit generates a predicted angle value of the motor rotor based on the angle reference value, and determines the feedforward compensation amount for the estimated angle value based on the error between the predicted angle value and the estimated angle value through an adaptive compensation gain control strategy. The total driving error is determined based on the angle reference value, the angle estimate, and the feedforward compensation amount.

[0006] The embodiments of this application provide an adaptive predictive feedforward-based rotary transformer angle tracking system. Based on several historical angle reference values, the system performs forward angle prediction according to the motor motion characteristics. The compensation amount is determined based on the prediction error between the predicted value and the estimated value of the angle tracking observer. Simultaneously, this compensation amount is injected into the control loop of the angle tracking observer instead of being directly compensated on the output side. This achieves synchronous correction of the entire state of angle, velocity, and acceleration within the observer, solving the problem of poor consistency of the entire state in traditional output-side feedforward compensation. Attached Figure Description

[0007] Figure 1 A schematic diagram illustrating the working principle of a rotary transformer and the principle of motor rotor angle estimation; Figure 2 This is a schematic diagram of the architecture of a rotary transformer angle tracking system based on adaptive predictive feedforward provided in the embodiments of this application; Figure 3 This is a schematic diagram of the internal architecture of the reference unit generated according to the embodiments of this application; Figure 4 This is a schematic diagram illustrating the amplitude difference between the sine and cosine envelope signals output by the DSADC in one embodiment; Figure 5 This is a schematic diagram illustrating the principle of angle estimation delay compensation in one embodiment; Figure 6 This is a schematic diagram of the internal architecture of an angle tracking observer provided according to an embodiment of this application; Figure 7 This is a schematic diagram of the transfer function of the angle tracking observer provided according to an embodiment of this application; Figure 8 This is a schematic diagram of the process for adaptive predictive feedforward-based rotary transformer angle tracking according to an embodiment of this application; Figure 9 This is a schematic diagram illustrating the principle of determining control coefficients based on the compensated gain control law according to an embodiment of this application. Figure 10 This is a schematic diagram of an architecture for standard feedforward compensation of an angle tracking observer; Figure 11 This is a schematic diagram of the architecture of a rotary transformer angle tracking system based on adaptive prediction feedforward, according to some preferred embodiments. Figure 12 This is a schematic diagram of the tracking effect of adaptive compensation under the condition of uniform motor operation superimposed with sinusoidal disturbance according to specific embodiment 1; Figure 13 This is a schematic diagram comparing the tracking effects of adaptive compensation and no compensation under the condition of uniform motor operation with superimposed sinusoidal disturbance, according to Specific Embodiment 1. Figure 14 This is a schematic diagram illustrating the tracking effects of adaptive compensation and no compensation under uniform acceleration conditions according to Specific Embodiment 2. Figure 15 This is a schematic diagram illustrating the changes in tracking error under adaptive compensation and no compensation, according to specific embodiment 2. Figure 16 This is a schematic diagram comparing the error analysis results of adaptive compensation and no compensation according to specific embodiment 2. Detailed Implementation

[0008] The present application will now be further described based on preferred embodiments and with reference to the accompanying drawings.

[0009] In the description of the embodiments of this application, it should be noted that if terms such as "upper," "lower," "inner," or "outer" are used to indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship commonly used when the product of this application is in use, they are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation on this application. In addition, in the description of this application, in order to distinguish different units, the terms "first," "second," etc. are used in this specification, but these are not limited by the manufacturing order, nor should they be construed as indicating or implying relative importance. Their names may differ in the detailed description and claims of this application.

[0010] The vocabulary used in this specification is for illustrative purposes and is not intended to limit the scope of this application. It should also be noted that, unless otherwise expressly specified and limited, the terms "set," "connected," and "linked" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection, a direct connection, or an indirect connection via an intermediate medium; or they can refer to the internal communication between two components. Those skilled in the art will understand the specific meaning of these terms in this application.

[0011] A rotary transformer is a signal element whose output voltage changes with the rotor angle. It can be installed in various rotating mechanisms such as permanent magnet synchronous motors, excitation synchronous motors, AC asynchronous motors, and brushless DC motors for real-time detection of the rotor rotation angle. A rotary transformer consists of a rotor and a stator. The rotor rotates synchronously with the motor rotor. During rotation, the gas gap between the stator and rotor of the rotary transformer changes according to a specific pattern, resulting in a corresponding change in magnetic permeability. The stator has three sets of windings, such as... Figure 1As shown, one set of excitation windings is responsible for receiving the high-frequency carrier signal (two input terminals denoted as PWM P and PWM N) emitted by the carrier signal generator on the main control board. It establishes a stable high-frequency alternating magnetic field in the stator core through alternating current, providing the basic excitation energy and magnetic field environment for the rotary transformer to realize angle detection and signal conversion. One set of sinusoidal output windings (two output terminals denoted as SIN+ and SIN-) is used to output a sinusoidal induction signal (modulated signal) that is sinusoidally related to the rotor angle and modulates the high-frequency carrier. One set of cosine output windings (two output terminals denoted as COS+ and COS-) outputs a cosine induction signal (modulated signal) that is cosinely related to the rotor angle and modulates the high-frequency carrier. The two sets of output windings are orthogonal to each other in space and together constitute a complete position signal output that can reflect the real-time position of the rotor.

[0012] Furthermore, the modulated signals output from the sine and cosine windings are respectively connected to the corresponding channels of a DSADC (Delta-Sigma Analog-to-Digital Converter). The DSADC is an analog-to-digital converter chip specifically designed for demodulating the high-dynamic, low-signal-to-noise-ratio, and strong common-mode interference analog signals output by the rotary transformer. It can automatically perform Σ-Δ (Sigma-Delta) modulation, CIC filtering, FIR0 filtering, and FIR1 filtering on the input sine and cosine modulated signals. Then, using the synchronization signal obtained from the carrier signal generator, the pre-processed sine and cosine modulated signals are synchronously demodulated by an integrator to obtain the rotor angle. The corresponding sinusoidal envelope signal Sum and cosine envelope signal Table 1 below lists the core parameter configurations of the DSADC in some specific embodiments.

[0013] Table 1 The sinusoidal angle envelope signal obtained by the above DSADC processing Sum and cosine envelope signal The input signals SinIn and CosIn are fed into the resolver angle tracking system in real time. The resolver angle tracking system then outputs the motor rotor angle through hardware decoding (such as a dedicated resolver-to-digital converter chip) or software decoding (angle estimation algorithm). The estimated value is input into the motor drive system, which generates a PWM signal to control the switching of the motor inverter, thereby controlling the three-phase motor.

[0014] As described in the background section, existing rotary transformer angle estimation schemes using either hard or soft decoding methods are either too costly or have problems such as an inability to adaptively adjust the angle tracking accuracy. Therefore, this application provides a rotary transformer angle tracking system based on adaptive predictive feedforward. This angle tracking system takes into account both noise suppression and dynamic response, and can synchronously correct the angle estimation error under all operating conditions, thereby adaptively achieving accurate estimation of the rotor angle.

[0015] Figure 2 The following are schematic diagrams illustrating the architecture of the adaptive predictive feedforward-based resolver angle tracking system in some embodiments of this application, such as... Figure 2 As shown, the system includes a reference angle generation unit, an angle tracking observer, and a dynamic prediction feedforward compensation unit.

[0016] Specifically, the reference angle generation unit generates the motor rotor angle reference value based on the sine and cosine envelope signals output by the rotary transformer. ; The angle tracking observer generates an estimated value of the motor rotor angle based on the total drive error (totalErr). ; The dynamic prediction feedforward compensation unit is based on an angle reference value. Generate predicted angle values ​​for the motor rotor and angle-based predicted values With angle estimate The error between the two values ​​is determined by an adaptive compensation gain control strategy to determine the feedforward compensation amount for the angle estimate. ; The total driving error (totalErr) of the input angle tracking observer is based on the angle reference value. Angle estimates and feedforward compensation Sure.

[0017] The following, in conjunction with the accompanying drawings, provides a detailed explanation of the specific implementation methods of each functional unit in the system.

[0018] <Reference Angle Generation Unit> In the embodiments of this application, the reference angle generation unit generates the reference angle based on the real-time received SinIn and CosIn signals, i.e., the sinusoidal envelope of the rotor angle. and cosine envelope Generate the motor rotor angle The preliminary calculation results are used as reference values ​​for the rotor angle. This serves as a reference for adjusting the output of the angle tracking observer. Figure 3The internal architecture of a reference angle generation unit provided according to some embodiments of this application is shown, such as... Figure 3 As shown, the reference angle generation unit includes a normalization module, an angle coarse solution module, and a delay compensation module.

[0019] The normalization module is used to normalize the sine and cosine envelope signals of the rotor angle output from the DSADC to ensure that the amplitudes of the sine and cosine signals in subsequent processing remain constant. Figure 4 The diagram illustrates the waveforms of the sinusoidal and cosine envelope signals output from the resolver in a specific embodiment. During the operation of the resolver, factors such as excitation intensity fluctuations, motor operating temperature changes, rotor air gap eccentricity, and line transmission losses can affect the output signal, potentially causing a deviation of ±10% or even greater from the ideal value. This results in a decrease in the signal-to-noise ratio of the subsequent coarse angle calculation, affecting the calculated angle reference value. Increased error leads to problems such as gain adaptation of the angle tracking observer. Therefore, it is necessary to first eliminate the impact of amplitude deviation through the normalization module.

[0020] Specifically, let the range of the sine and cosine digital signals processed by the system's software decoding be [0, FULL_SCALE], where FULL_SCALE is generally [0, FULL_SCALE]. For example, when When FULL_SCALE is 4095, the original values ​​of the real-time acquired sine and cosine envelope signals can be calculated based on the following formula. , Normalization is performed to obtain normalized sine envelope signals and cosine envelope signals. , : (1).

[0021] The amplitudes of the normalized sine and cosine envelope signals are stable within the nominal range, providing consistent input for the angle calculation of the subsequent angle coarse solution module.

[0022] After receiving the normalized sine and cosine envelope signals, the angle coarse solution module calculates their arctangent functions to obtain a preliminary coarse value for the motor rotor angle reference. : (2).

[0023] Compared to the single-quadrant arctangent function, The function can automatically determine the four quadrants of the angle based on the signs of the sine and cosine, and output the angle value in the full period range of [0, 2π] without the need for additional quadrant judgment and compensation.

[0024] Considering the direct use of standard math libraries Floating-point iterative algorithms for functions consume excessive time per operation, making it difficult to meet real-time requirements in high-frequency applications (e.g., control frequencies reaching or exceeding 10kHz). Therefore, in some preferred embodiments, a lookup table method combined with linear interpolation is used. Fast solution: The function value in the range [0,2π] is pre-discretely divided into 1024 sampling points and stored in a non-volatile memory device (such as Flash memory). The theoretical angular resolution of a single point is about 0.0061 rad. In the process of coarse angle solution, the angle value of two adjacent points is obtained by looking up a table, and then the precise angle value in the interval is calculated by linear interpolation.

[0025] The coarse solution result of the angle reference value obtained after completing the coarse solution processing. A step is needed to compensate for both hardware delay and sampling-control delay using a delay compensation module, in order to finally output the motor rotor angle reference value. .

[0026] Figure 5 The mechanism for delay compensation of rotor angle reference values ​​is shown, such as... Figure 5 As shown, the reference angle in the rotor angle tracking process The sine and cosine envelope signals originate from the output of the rotary transformer. The sampling of these signals is determined by the DSADC interrupt timing. Let the current number of calculations be... The angle coarse solution module calculates the angle in the PWM interrupt. Ideally, this would be the angle value at time III. However, since the DSADC sampling time and the PWM calculation interrupt time are different, the sine and cosine signals used in the PWM interrupt actually originate from sampling time II. But the envelopes of the sine and cosine signals at sampling time II are obtained after CIC decimation filtering and FIR I and FIR II filtering, resulting in a hardware delay in the calculation process. Therefore, the angle calculated from the sine and cosine signals is actually equivalent to the angle at time I. Furthermore, due to the deviation between the PWM interrupt time and the DSADC sampling time, there is also a sampling-control delay between the sampling and control times. These hardware delays and sampling-control delays will cause the generated rotor angle reference value to lag behind the actual rotor angle, especially in high-speed rotation scenarios, resulting in significant angle errors. Therefore, it is necessary to coarsely resolve the angle reference value. Compensation is performed for hardware delay and sampling-control delay to obtain a delay-free angle reference value. .

[0027] Specifically, hardware latency It can be determined based on the following formula: (3), in, , , , These are the CIC filter delay, FIR0 filter delay, FIR1 filter delay, and integrator delay, respectively, and their specific expressions are as follows: (4), in, For CIC extraction factors, For CIC series, For modulator clock frequency, This is the FIR0 input frequency (i.e., the CIC output frequency). This is the FIR1 input frequency (i.e., the FIR0 output frequency). For integral counting, The integrator input frequency (i.e., the FIR1 output frequency) and all the above parameters can be determined according to the specific configuration parameters of the DSADC.

[0028] The sampling-control delay can be determined using timestamp marking methods known to those skilled in the art. For example, a general-purpose timer module running on the motor control chip (such as the TC387 chip from the Infineon AURIX TC3xx series) can capture and mark the timestamps of the DSADC interrupt and PWM interrupt respectively, and the difference between the two can be used to obtain the sampling-control delay. .

[0029] Get , Then, the estimated value of the motor rotor angular velocity output by the angle tracking observer (described later) can be used. and , Multiply the sums to obtain the total angular compensation. ,pass right By performing compensation, a time-free angle reference value can be obtained. .

[0030] <Angle Tracking Observer> Angle reference value output by the reference angle generation unit Affected by factors such as sampling noise, power grid harmonics, and motor cogging effect, there are obvious high-frequency jitters and jumps. Therefore, it is necessary to build a closed-loop tracking system through an angle tracking observer to achieve noise smoothing, dynamic error-free tracking, and real-time estimation of angular velocity of the motor rotor angle.

[0031] In some preferred embodiments of this application, the angle tracking observer employs a Type-III third-order angle tracking observer. Figure 6The internal architecture of the Type-III third-order angle tracking observer is shown. Figure 7 The corresponding transfer function topology is shown in the figure. This angle tracking observer adopts a three-integrator closed-loop structure, consisting of a PID controller, three-stage integrators (first integrator, second integrator, and third integrator), and a feedback channel. The total driving error, totalErr (based on the angle reference value), is... Angle estimates fed back by the angle tracking observer And the feedforward compensation amount output by the dynamic prediction feedforward compensation unit, as described later. (Confirm) After inputting the Type-III third-order angle tracking observer, the PID controller multiplies it by different proportional coefficients. , and totalErr and The product is integrated by the first integrator (i.e., with...). Multiply, (As a complex variable in the S-domain), the estimated value of the angular acceleration of the motor rotor can be obtained. totalErr and The product of and The values ​​are added together, and then integrated using a second integrator to obtain an estimated value of the motor rotor's angular velocity. totalErr and The product of and The values ​​are added together, and after integration by the third integrator, the estimated angle value is obtained. .

[0032] Depend on Figure 6 , Figure 7 It can be seen that the essence of the Type-III third-order angle tracking observer is to use closed-loop feedback to make the angle estimate... Approaching the real angle Simultaneously, it achieves tracking of angular velocity and angular acceleration (obtaining estimated angular velocity values). and angular acceleration estimates The angular acceleration, angular velocity, and angle estimates of this observer can be characterized by the following model: (5), in This is the error of the input angle tracking observer.

[0033] The control parameters of the third-order angle tracking observer can be designed in a manner known to those skilled in the art, for example, optionally by designing using equation (6). , , : (6), in, This is the switching gain, used to match the closed-loop bandwidth of the system. The system time constant determines the system's response speed and noise immunity. The damping coefficient determines the damping characteristics and phase margin of the system. This value ensures that the system has sufficient phase margin and avoids overshoot and oscillation in the step response.

[0034] In a preferred embodiment of this application, , , Substituting the above parameter values ​​into equation (6), we can obtain... , , Under these control parameters, the system's closed-loop bandwidth is approximately 457 Hz, and the phase margin is approximately 86.5°. It maintains asymptotic stability across the entire operating range and exhibits good dynamic response and anti-interference capabilities. Furthermore, the estimated angular velocity obtained during the observation process... It can be smoothed by a first-order low-pass filter and then input into the delay compensation module for total angle compensation. The calculation.

[0035] It is understandable that, during the actual operation of the angle tracking observer, the transfer function described above reflects... All continuous integration operations in the time domain must be converted to operations in the discrete time domain with a set step size. The accumulation operation is implemented. Specifically: firstly, through... Multiplying this by totalErr yields the acceleration increment. Combining this with the angular acceleration estimate from the previous sampling period, the updated angular acceleration estimate is obtained through the first integrator. Then The product of totalErr and the current angular acceleration estimate is added together. The velocity increment is obtained, and combined with the angular velocity estimate from the previous sampling period, the updated angular velocity estimate is obtained through the second integrator. Next, The product of totalErr and the current angular velocity estimate is added together. The angle increment is obtained, and combined with the angle estimate from the previous sampling period, the updated angle estimate is obtained through the third integrator. ; Feedback and combined with the angle reference value obtained from the new sampling period And the feedforward compensation amount generated by the dynamic prediction feedforward compensation unit Update totalErr to complete the full closed-loop observation and tracking process.

[0036] Furthermore, it should be noted that in the embodiments of this application, the specific implementation methods of the first integrator, the second integrator, and the third integrator are not limited. Those skilled in the art can use known discretization methods such as the zero-order preservation method (forward Euler method), the backward Euler method, or the bilinear transformation method to implement the integration function of each integrator.

[0037] <Dynamic Prediction Feedforward Compensation Unit> Although the Type-III third-order angle tracking observer can effectively suppress the noise introduced by the ATAN2 lookup table solution through multiple integration steps, the applicant found that the angle estimate fed back by the third-order angle tracking observer alone is insufficient. Compared with angle reference value Constructing driving errors still presents significant limitations in practical engineering applications of motor rotor angle tracking: On the one hand, the control parameters of the tracking observer, especially the closed-loop bandwidth, need to meet the tracking accuracy under all operating conditions. However, the bandwidth used to ensure noise suppression when the motor is operating at low speeds is prone to phase lag when facing high-speed conditions, causing the angle tracking error to increase with increasing speed. In other words, it is difficult to simultaneously achieve the dynamic tracking performance and noise suppression capability of the tracker itself. On the other hand, if a traditional feedforward compensation scheme is used, the angle estimate is directly processed on the output side. Superposition correction, without synchronous correction of the velocity and acceleration states inside the observer, is prone to poor consistency across all states, resulting in limited steady-state error optimization.

[0038] Therefore, as Figure 1 As shown in the embodiments of this application, the angle tracking system further includes a dynamic prediction feedforward compensation unit. Figure 8 The flowchart of the dynamic prediction feedforward compensation unit performing dynamic prediction compensation is shown, as follows: Figure 1 , Figure 8 As shown, the dynamic prediction feedforward compensation unit uses the reference angle generation unit to calculate the motor rotor angle reference values ​​at the current time and multiple historical times. Based on the dynamic characteristics of motor operation, extrapolation is used to predict the angle of the motor rotor. Then predict the value based on the angle. Angle estimate from tracker output The deviation determines the prediction error Then, based on the preset adaptive gain compensation control law, The size of the feedforward compensation amount is dynamically updated to compensate for the angle. The generated feedforward compensation amount Instead of using the traditional feedforward compensation method at the output of the tracking observer, Instead of direct compensation, it is related to tracking error. The summed values ​​are used as the total driving error totelErr and input to the tracking observer.

[0039] In some specific embodiments, such as Figure 1 As shown, the dynamic prediction feedforward compensation unit includes a historical data management module, a kinematic prediction module, and a dynamic feedforward gain module. Figure 8 The internal working mechanism of the dynamic prediction feedforward compensation unit is further illustrated.

[0040] refer to Figure 1 , Figure 8 The historical data management module stores the motor rotor angle reference values ​​generated by the reference angle generation unit at least three adjacent sampling times based on the FIFO (First In First Out) mechanism. For any sampling time The historical data management module obtains the rotor angle reference value at that moment from the reference angle generation unit. This latest value is stored in the historical data management module. The historical data management module also stores... The previous two sampling times, namely Time and time( Rotor angle reference value (sampling period) , Accordingly, with the new sampling time Generated rotor angle reference value Enter the historical data management module. It was removed from the historical data management module to ensure that the latest sampling time and the rotor angle reference value of the two previous sampling times are always stored.

[0041] The kinematic prediction module extrapolates and predicts the rotor angle based on the rotor's kinematic characteristics, using the rotor angle reference values ​​from three adjacent sampling times stored in the historical data management module, to obtain the predicted rotor angle value. .

[0042] At any time For example, the kinematic prediction module, through... and By performing a first-order difference and then low-pass filtering the difference result, the motor rotor speed during the time period can be obtained. The predicted average angular velocity within; through the analysis of... and By performing differential and low-pass filtering, the time interval of the motor rotor can be obtained. The predicted average angular velocity values ​​within the range can be considered as the motor rotor's average angular velocity values ​​within the range. , The approximate instantaneous angular velocity at time t is denoted as follows: , .

[0043] Furthermore, the difference between these two instantaneous angular velocity approximations is used, and this difference is considered as the motor's... The approximate instantaneous angular acceleration at time t is denoted as . Then, the time is determined by the following formula. Angle prediction value : (7).

[0044] As mentioned earlier, the kinematic prediction module generates predicted values ​​for the motor rotor angle. Then, the prediction error can be determined using the following formula: (8).

[0045] The dynamic feedforward gain module determines the adaptive gain coefficient based on the magnitude of the prediction error and an adaptive compensation gain control law. Then, the feedforward compensation amount is determined based on the following formula. : (9), in, The feedforward strength is preferably in the range of [0.3, 0.5].

[0046] Figure 9 In some preferred embodiments, methods for determining are shown. The flowchart of the adaptive compensation gain control law is as follows: Figure 9 As shown, the adaptive compensation gain control law includes a switching layer and a compensation layer.

[0047] Among them, the switching layer is based on the tracking error Prediction error and approximate instantaneous angular velocity Determine if the system tracking status meets the degradation condition; if it does, then... Forced zeroing, i.e., disabling the dynamic feedforward gain module, causes the angle tracking observer to degenerate into a standard Type-III third-order angle tracking observer.

[0048] In some specific embodiments, degradation conditions include at least low dynamic detection conditions, prediction-tracking mismatch detection conditions, overcompensation detection conditions, and extremely low speed detection conditions.

[0049] a. Low dynamic detection conditions are: (10) in, The preset low dynamic threshold is preferably set to 0.1 rad (approximately 5.73° mechanical angle). When the absolute value of the angle tracking error is less than... When the system's angle tracking is in a quasi-steady state, the angle observer itself has sufficient tracking accuracy and no additional compensation is needed.

[0050] b. The conditions for predictive-tracking mismatch detection are: (11).

[0051] When the product of the motor rotor's angular tracking error and the prediction error is negative, it indicates that the prediction correction direction is opposite to the actual tracking requirement direction. In this case, the prediction term not only fails to help the error converge, but also hinders the tracking process.

[0052] c. Overcompensation detection conditions are: (12) in, This refers to the approximate instantaneous angular velocity obtained by differential filtering using the aforementioned angular reference value. and When the product of and is less than 0, it indicates that the estimated angle has led the actual angle, that is, under the condition of the motor rotating in the forward direction. Reverse operating condition This indicates that the compensation is excessive or the direction is incorrect.

[0053] d. The conditions for extremely low-speed detection are: (13) in, The extremely low-speed dead zone threshold of the motor rotor angular velocity is preferably 5 to 10 rad / s. Less than At this time, it indicates that the motor speed is extremely slow, and the angle prediction value generated based on the motor's dynamic characteristics is... Excessive noise will lead to incorrect compensation in the system.

[0054] For higher-order dynamic conditions such as constant jerk, the truncation error of the kinematic prediction module may become the dominant factor affecting the compensation effect. In this case, the degradation mechanism established by the degradation layer will prioritize the stability of the system. By judging the degradation conditions, the dynamic feedforward gain module can be actively turned off when no additional compensation is needed, limiting the injection of invalid or even harmful compensation, and ensuring that the compensation layer provides effective additional compensation only at the right time.

[0055] Specifically, when none of the above four degradation conditions are met, the compensation layer is determined based on the following formula. The possible values ​​of: (14) in, The normalized prediction separation is determined based on the following formula: (15) In equation (15), To predict the separation threshold, a value of 0.05 to 0.1 rad is preferably selected.

[0056] Equations (14) and (15) represent a pre-defined... As a threshold for adjusting the degree of compensation based on the magnitude of the prediction error: when the prediction error... The absolute value is less than this At times, with The increase is synchronously amplified. To improve the compensation for tracking errors of the angle tracking observer; when Increase to reach and exceed Then, It is fixed at 1 to achieve full compensation for tracking errors.

[0057] Figure 10 This illustrates a standard feedforward compensation architecture, compared to Figure 1 and Figure 10 As can be seen, the feedforward compensation amount generated by the dynamic feedforward gain module in this application Not directly on the output side Instead of performing open-loop compensation, it interacts with the angle tracking observer that enters from the input side, along with the angle reference value. Feedback to the input side The total driving error totelErr of the angle tracking observer is constructed together: (16).

[0058] This architecture, which combines forward prediction of kinematic state, adaptive generation of feedforward compensation, and compensation at the observer input, allows for the evaluation of the tracking observer's estimation error from a motor dynamics perspective, and the adaptive adjustment of the compensation amount based on the evaluation results. Furthermore, by inputting the compensation amount as a driving term into the tracking observer, it effectively corrects the velocity and acceleration states within the observer synchronously, avoiding the problems of poor full-state consistency and limited steady-state error optimization caused by directly performing angle compensation on the output side.

[0059] <Fault Detection Module> Figure 11 The architecture of a rotary transformer angle tracking system based on adaptive prediction feedforward, according to some preferred embodiments, is shown. Figure 1Compared to the embodiment shown, it adds a fault detection module to detect whether one or more of the rotary transformer, reference angle generation unit, and angle tracking observer are malfunctioning.

[0060] For example, the fault detection module receives the raw values ​​of the sine and cosine envelope signals output by the rotary transformer in real time. , ,when , The amplitude difference between them increased abnormally (e.g.) , The amplitude ratio exceeds 130%, or , If the amplitude ratio exceeds 130%, it indicates that the rotary transformer is malfunctioning.

[0061] For example, the fault detection module receives angle reference values ​​generated by the reference angle generation unit in real time. and the angle estimate generated by the angle tracking observer When the error between the two increases abnormally (e.g., the error exceeds 28°), it indicates that the reference angle generation unit or the angle tracking observer is malfunctioning.

[0062] In some specific embodiments, when the fault detection module determines that one or more of the rotary transformer, reference angle generation unit, and angle tracking observer are malfunctioning, it issues a fault signal, and the host computer determines to stop the angle tracking system from working, or marks the angle tracking output by the angle tracking system as abnormal data, thereby avoiding the use of incorrect angle tracking values ​​to drive and control the motor.

[0063] <Specific Implementation Example 1> To verify the performance of the adaptive predictive feedforward-based resolver angle tracking system provided in this application, in this specific embodiment, the resolver output signal is generated based on a software resolver signal simulator (Sim_Resolver). The simulator can generate an ideal resolver signal based on an absolute time reference, thereby eliminating interference factors such as hardware noise, installation eccentricity, and signal chain nonlinearity. In addition, its internal high-precision floating-point angle true value can be directly used as a reference for calculating the tracking error.

[0064] Furthermore, the corresponding executable code is deployed on the motor controller platform to realize the functions of each unit and module of the angle tracking system. Experimental data acquisition: The lower-level machine software defines a FIFO queue with a queue length of 8192. The element structure contains a uint32 type timestamp variable and two float32 type angle variables.

[0065] To verify the performance of the angle tracking system provided in this application, a single-frequency sinusoidal speed fluctuation with an amplitude of ±500 rpm and a frequency of 100 Hz was superimposed on the motor under the condition of uniform rotation (reference mechanical speed 6000 rpm, corresponding to an electrical frequency of 300 Hz). Figure 12 A schematic diagram of the tracking effect is shown. Figure 13 To compare the tracking performance of adaptive compensation and no compensation (i.e., using a standard Type-III third-order angle tracking observer), it can be seen that when there is a disturbance in the motor rotation, the angle tracking system provided in this application can significantly reduce the phase lag of angle tracking by using adaptive predictive feedforward compensation. Specifically, the mean phase lag under adaptive compensation is about 11.28° with a standard deviation of 0.01°, while the phase lag of the uncompensated Type-III third-order angle tracking observer is about 16.42° with a standard deviation of 0.02°.

[0066] <Specific Implementation Example 2> This embodiment constructs a uniform acceleration condition for the motor and verifies the degradation performance of the angle tracking system under this condition. The initial speed and acceleration of the motor are 1000 rpm and 100 rad / s, respectively. 2 .

[0067] Figure 14 The diagram illustrates the angle tracking performance of the standard Type-III third-order angle tracking observer under this working condition, using the angle tracking system provided in this application with adaptive compensation and without compensation. Figure 15 The tracking error changes for both are shown. Figure 16 Further comparison of the error analysis results of the two was conducted.

[0068] like Figures 14 to 16 As shown, during the relatively slow and continuous acceleration of the motor, the standard Type-III third-order angle tracking observer is able to accurately track the motor rotor angle. Simultaneously, due to the stable operation of the motor, the adaptive gain rate degradation mechanism in the angle tracking system provided in this application takes effect, enabling the feedforward compensation coefficients to... The feedforward compensation channel is adaptively reduced or even turned off to avoid the feedforward compensation introducing additional noise under steady-state conditions.

[0069] The specific embodiments of this application have been described in detail above. For those skilled in the art, several improvements and modifications can be made to this application without departing from the principle of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. A rotary transformer angle tracking system based on adaptive predictive feedforward, characterized in that, It includes a reference angle generation unit, an angle tracking observer, and a dynamic prediction feedforward compensation unit, wherein: The reference angle generation unit generates an angle reference value for the motor rotor based on the sine and cosine envelope signals output by the rotary transformer. The angle tracking observer generates an estimated value of the motor rotor angle based on the total drive error; The dynamic prediction feedforward compensation unit generates a predicted angle value of the motor rotor based on the angle reference value, and determines the feedforward compensation amount for the estimated angle value based on the error between the predicted angle value and the estimated angle value through an adaptive compensation gain control strategy. The total driving error is determined based on the angle reference value, the angle estimate, and the feedforward compensation amount.

2. The rotary transformer angle tracking system based on adaptive predictive feedforward according to claim 1, characterized in that, The reference angle generation unit includes a normalization module, an angle coarse solution module, and a delay compensation module. The normalization module is used to normalize the sine envelope signal and the cosine envelope signal; The angle coarse solution module obtains the coarse solution value of the motor rotor angle reference value by solving the arctangent function of the normalized sine envelope signal and cosine envelope signal. ; The delay compensation module is used for... By performing overall compensation for hardware delay and sampling-control delay, the angular reference value of the motor rotor is obtained. .

3. The rotary transformer angle tracking system based on adaptive predictive feedforward according to claim 2, characterized in that, The pair The overall compensation for line hardware delay and sampling-control delay is specifically achieved by using the estimated motor rotor angular velocity output by the angle tracking observer. Multiply by the sum of the hardware delay and the sampling-control delay to obtain the total angle compensation. and through right Compensation will be provided.

4. The adaptive predictive feedforward-based rotary transformer angle tracking system according to claim 1, characterized in that, The angle tracking observer is a Type-III third-order angle tracking observer, which consists of a PID controller, a first integrator, a second integrator, a third integrator, and a feedback channel; The total driving error is input into the Type-III third-order angle tracking observer and then multiplied by a proportional coefficient by a PID controller. , and ; The first integrator, by considering the total drive error and The product is integrated to obtain an estimate of the angular acceleration of the motor rotor. ; The second integrator, through the total drive error and The product of and The summation result is then integrated to obtain an estimate of the angular velocity of the motor rotor. ; The third integrator calculates the total driving error and... The product of and The summation result is then integrated to obtain an estimated value of the motor rotor angle. .

5. The rotary transformer angle tracking system based on adaptive predictive feedforward according to claim 1, characterized in that, The dynamic prediction feedforward compensation unit includes a historical data management module, a kinematic prediction module, and a dynamic feedforward gain module. The historical data management module, based on a FIFO mechanism, stores the motor rotor angle reference values ​​generated by the reference angle generation unit at least three adjacent sampling times. ; The kinematic prediction module extrapolates and predicts the rotor angle based on the rotor's kinematic characteristics, using the rotor angle reference values ​​from three adjacent sampling times stored in the historical data management module, to obtain the predicted rotor angle value. ; The dynamic feedforward gain module determines the adaptive gain coefficient based on an adaptive compensation gain control law. The feedforward compensation amount is determined based on the following formula. : , in, For feedforward strength, This represents the prediction error.

6. The adaptive predictive feedforward-based rotary transformer angle tracking system according to claim 5, characterized in that, The adaptive compensation gain control law includes a switching layer and a compensation layer; The switching layer is based on the tracking error Prediction error and approximate instantaneous angular velocity Determine if the system tracking status meets the degradation condition; if so, then... Force zeroing; When the degradation condition is not met, the compensation layer is determined based on the following formula. The possible values ​​of: , in, The normalized prediction separation is determined based on the following formula: , To predict the separation threshold.

7. The adaptive predictive feedforward-based rotary transformer angle tracking system according to claim 6, characterized in that, The degradation conditions include: Low dynamic detection conditions, prediction-tracking mismatch detection conditions, overcompensation detection conditions, and extremely low speed detection conditions.

8. The rotary transformer angle tracking system based on adaptive predictive feedforward according to claim 7, characterized in that, The low dynamic detection condition is as follows: , in, Low dynamic threshold; The prediction-tracking mismatch detection condition is as follows: ; The overcompensation detection conditions are as follows: ; The extremely low-speed detection conditions are as follows: ; in, This is the extremely low-speed dead zone threshold of the motor rotor angular velocity.

9. The rotary transformer angle tracking system based on adaptive predictive feedforward according to claim 1, characterized in that, It also includes a fault detection module, which is used to detect whether one or more of the rotary transformer, reference angle generation unit, and angle tracking observer are malfunctioning.