Sine and cosine envelope determination method and device, electronic equipment and storage medium
By modulating the sinusoidal excitation signal in the permanent magnet synchronous motor and then inputting it into the resolver, the feedback signal is obtained and integrated, which solves the problem of insufficient smoothness and accuracy in the calculation of the sine and cosine envelopes, and achieves higher decoding accuracy.
Patent Information
- Application Number
- CN202410701036.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-06
AI Technical Summary
In permanent magnet synchronous motors, the calculation results of the sine and cosine envelopes are not smooth and accurate enough, resulting in a large delay in the decoding angle and low decoding accuracy.
By modulating the generated sinusoidal excitation signal and inputting it into the resolver, the sine resolver feedback signal and the cosine resolver feedback signal fed back by the resolver are obtained. The points to be integrated are determined respectively, and the integration is performed based on these signals to determine the sinusoidal envelope. and cosine envelope.
The accuracy of sine and cosine envelope calculation is improved, the calculation process is simplified, and the decoding accuracy is improved.
Smart Images

Figure CN118611523A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rotary transformers, and in particular to a method and device for determining sine and cosine envelopes, an electronic device and a storage medium. Background Art
[0002] In electric vehicles, permanent magnet synchronous motors are widely used due to their high torque-to-inertia ratio, high power density, high efficiency, reliability, and easy operation. The resolver is an electromagnetic sensor. In the permanent magnet synchronous motor control system, it is a small AC motor mainly used to measure the rotation angle, position, and speed. Its output voltage is in a sine-cosine function relationship with the rotor angle.
[0003] In motor control, motor rotor position acquisition is a crucial link. When acquiring motor rotor position information, it is necessary to generate a sinusoidal excitation signal with a certain frequency, which is converted into a square wave signal through Sigma-Delta modulation and then input to the resolver. The resolver then returns a modulated signal with rotor position information. The returned modulated signal is demodulated using the generated sinusoidal excitation signal to extract the sine and cosine envelope curves. However, because the sinusoidal excitation signal is generally integrated once within half a cycle, if the permanent magnet synchronous motor is at high speed, the sine and cosine envelope curve calculation results will not be smooth and accurate enough, which will lead to a large delay in the decoding angle and low decoding accuracy. Summary of the invention
[0004] The present invention provides a method, device, electronic device and storage medium for determining sine and cosine envelopes, so as to solve the problem that the current sine and cosine envelope calculation results are not smooth and accurate enough, which leads to a large delay in decoding angles and low decoding accuracy.
[0005] According to one aspect of the present invention, a method for determining a sine-cosine envelope is provided, the method comprising:
[0006] The generated sinusoidal excitation signal is modulated and input into the rotary transformer to obtain a sinusoidal resolver feedback signal and a cosine resolver feedback signal fed back by the rotary transformer;
[0007] Determine a plurality of to-be-integrated points corresponding to the sine resolver feedback signal and the cosine resolver feedback signal respectively, and determine a sine integration result and a cosine integration result of each to-be-integrated point respectively based on the sine resolver feedback signal and the cosine resolver feedback signal;
[0008] The corresponding sine envelope and cosine envelope are determined according to the sine integration result and the cosine integration result respectively.
[0009] Optionally, after obtaining the sine resolver feedback signal and the cosine resolver feedback signal fed back by the resolver, the method further includes:
[0010] Taking absolute values of the sine resolver feedback signal and the cosine resolver feedback signal, and inverting the negative half-cycle of the sine resolver feedback signal and the cosine resolver feedback signal after taking the absolute values;
[0011] Determining a plurality of points to be integrated corresponding to the sine resolver feedback signal and the cosine resolver feedback signal respectively, including:
[0012] According to the sine resolver feedback signal and the cosine resolver feedback signal whose absolute value is inverted in the negative half cycle, a plurality of points to be integrated corresponding to them are determined in the half cycle respectively.
[0013] Optionally, determining a plurality of points to be integrated corresponding to the sine resolver feedback signal and the cosine resolver feedback signal respectively includes:
[0014] The control counting device counts the half-cycle of the sine resolver feedback signal and the cosine resolver feedback signal, and determines a plurality of to-be-integrated points corresponding to the sine resolver feedback signal and the cosine resolver feedback signal in the half-cycle.
[0015] Optionally, determining a sine integration result and a cosine integration result of each of the points to be integrated based on the sine resolver feedback signal and the cosine resolver feedback signal respectively includes:
[0016] Based on the sine resolver feedback signal and the cosine resolver feedback signal, when each of the to-be-integrated points is counted, a sine integration result and a cosine integration result of each of the to-be-integrated points are determined respectively.
[0017] Optionally, in the half cycle, a plurality of to-be-integrated points corresponding to the sine resolver feedback signal and the cosine resolver feedback signal are determined to be a first point position, a second point position, a third point position, a fourth point position and a fifth point position;
[0018] The method further comprises: determining a sine integral result and a cosine integral result of each of the points to be integrated based on the sine resolver feedback signal and the cosine resolver feedback signal, comprising:
[0019] Based on the sine resolver feedback signal and the cosine resolver feedback signal, integration is performed from the first point to the second point, from the second point to the third point, from the third point to the fourth point, and from the fourth point to the fifth point, respectively, to obtain a sine integration result and a cosine integration result corresponding to each of the points to be integrated.
[0020] Optionally, the first point position is the start position of the half cycle, the second point position is the π / 3 position of the half cycle, the third point position is the π / 2 position of the half cycle, the fourth point position is the 2π / 3 position of the half cycle, and the fifth point position is the end position of the half cycle;
[0021] Obtaining the sine integral result and the cosine integral result corresponding to each of the points to be integrated, including:
[0022] Integrate from the half-cycle starting position to the half-cycle π / 3 position, the half-cycle π / 3 position to the half-cycle π / 2 position, the half-cycle π / 2 position to the half-cycle 2π / 3 position, and the half-cycle 2π / 3 position to the half-cycle end position to obtain corresponding sine integral results and cosine integral results respectively.
[0023] Optionally, determining a corresponding sine envelope and cosine envelope according to the sine integral result and the cosine integral result, respectively, includes:
[0024] The sine integral result and the cosine integral result are multiplied by 2 to obtain the corresponding sine envelope and cosine envelope.
[0025] According to another aspect of the present invention, a sine-cosine envelope determination device is provided, the sine-cosine envelope determination device comprising:
[0026] A feedback signal determination module is used to execute the modulation of the generated sinusoidal excitation signal and input it into the rotary transformer to obtain a sinusoidal resolver feedback signal and a cosine resolver feedback signal fed back by the rotary transformer;
[0027] An integration result determination module, used to determine a plurality of to-be-integrated points corresponding to the sine resolver feedback signal and the cosine resolver feedback signal, and to determine a sine integration result and a cosine integration result of each to-be-integrated point based on the sine resolver feedback signal and the cosine resolver feedback signal;
[0028] The envelope determination module is used to determine the sine envelope and the cosine envelope according to the sine integration result and the cosine integration result respectively.
[0029] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0030] at least one processor; and,
[0031] a memory communicatively connected to the at least one processor; wherein,
[0032] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the sine-cosine envelope determination method described in any embodiment of the present invention.
[0033] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for determining the sine-cosine envelope curves described in any embodiment of the present invention when executed.
[0034] The technical solution of the embodiment of the present invention is to obtain a sine resolver feedback signal and a cosine resolver feedback signal fed back by the resolver by modulating the generated sinusoidal excitation signal; determine a plurality of points to be integrated corresponding to the sine resolver feedback signal and the cosine resolver feedback signal respectively, and determine the sine integration result and the cosine integration result of each point to be integrated respectively based on the sine resolver feedback signal and the cosine resolver feedback signal; and determine the corresponding sine envelope and cosine envelope respectively according to the sine integration result and the cosine integration result. The present invention solves the problem that the current calculation results of the sine and cosine envelopes are not smooth and accurate enough, which leads to a large delay and low decoding accuracy in the decoding angle, and improves the calculation accuracy of the sine and cosine envelopes, and the calculation is simple, which improves the decoding accuracy.
[0035] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0037] Figure 1 is a flow chart of a method for determining a sine-cosine envelope provided according to Embodiment 1 of the present invention;
[0038] Figure 2 is a flow chart of a method for determining a sine-cosine envelope provided according to a second embodiment of the present invention;
[0039] Figure 3 is a structural schematic diagram of a sine-cosine envelope determination device provided according to Embodiment 3 of the present invention;
[0040] Figure 4 It is a schematic diagram of the structure of an electronic device for implementing the method for determining the sine and cosine envelopes of an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0043] Embodiment 1
[0044] Figure 1 A flow chart of a method for determining a sine-cosine envelope is provided for the first embodiment of the present invention. This embodiment is applicable to the case where the sine-cosine envelope is obtained based on the soft decoding of the rotary transformer. The method for determining a sine-cosine envelope can be performed by a sine-cosine envelope determination device. The sine-cosine envelope determination device can be implemented in the form of hardware and / or software. The sine-cosine envelope determination device can be configured in an electronic device for motor control. Figure 1 As shown, the method for determining the sine-cosine envelope includes:
[0045] S110, modulating the generated sinusoidal excitation signal and inputting it into a rotary transformer to obtain a sinusoidal resolver feedback signal and a cosine resolver feedback signal fed back by the rotary transformer.
[0046] A resolver is an electromagnetic sensor used to measure the rotation angle of a small AC motor. Its output voltage is in a sine-cosine function relationship with the rotor angle.
[0047] Among them, the sinusoidal excitation signal can be generated by FPGA. FPGA can be implemented by existing chips. The sinusoidal excitation signal is generated by FPGA. The sinusoidal excitation signal is a sinusoidal wave analog signal with a certain frequency, which is modulated into a square wave signal with a changing duty cycle.
[0048] The modulation method can adopt existing modulation technology, and this embodiment does not impose any restrictions on this. Optionally, the generated sinusoidal excitation signal is Delta-Sigma modulated and converted into serial data consisting of -1 and 1, that is, a square wave signal is obtained, and the square wave signal is fed back to the rotary transformer, and then the rotary transformer feedback signal and the cosine rotary transformer feedback signal are obtained.
[0049] S120, determining a plurality of to-be-integrated points corresponding to the sine resolver feedback signal and the cosine resolver feedback signal respectively, and determining a sine integration result and a cosine integration result of each to-be-integrated point respectively based on the sine resolver feedback signal and the cosine resolver feedback signal.
[0050] The point to be integrated is a point arbitrarily selected on a half period of the sine resolver feedback signal and the cosine resolver feedback signal, and this embodiment does not impose any limitation on this.
[0051] Specifically, after obtaining the sine resolver feedback signal and the cosine resolver feedback signal fed back by the resolver, the absolute values of the sine resolver feedback signal and the cosine resolver feedback signal are taken, and the negative half-cycle of the sine resolver feedback signal and the cosine resolver feedback signal after taking the absolute values is inverted. Further, according to the sine resolver feedback signal and the cosine resolver feedback signal after the negative half-cycle is inverted and the absolute values are taken, a plurality of points to be integrated corresponding to them are determined in the half-cycle respectively.
[0052] To facilitate subsequent integration to obtain the sine and cosine envelopes, the half-cycle of the sine resolver feedback signal and the cosine resolver feedback signal may be equally divided into a plurality of parts of equal area by selecting a plurality of points to be integrated.
[0053] Exemplarily, in the half cycle, a plurality of points to be integrated corresponding to the sine resolver feedback signal and the cosine resolver feedback signal are determined as a first point position, a second point position, a third point position, a fourth point position and a fifth point position, that is, the half cycle of the sine resolver feedback signal and the cosine resolver feedback signal is equally divided into four parts with the same area.
[0054] It should be noted that multiple points to be integrated may also be selected, but the multiple points to be integrated do not equally divide the half-cycle of the sine resolver feedback signal and the cosine resolver feedback signal. Only the corresponding calculation needs to be added in the subsequent calculation of the sine and cosine envelopes. The calculation of the sine and cosine envelopes can also be achieved. This embodiment does not impose any restrictions on this.
[0055] S130. Determine a corresponding sine envelope and cosine envelope according to the sine integration result and the cosine integration result, respectively.
[0056] On the basis of the above, if the half-cycle of the sine resolver feedback signal and the cosine resolver feedback signal is equally divided into a plurality of parts of equal area by selecting a plurality of points to be integrated, then the sine integration result and the cosine integration result are multiplied by the same corresponding coefficient to obtain the corresponding sine envelope and cosine envelope.
[0057] When the half-cycle of the sine resolver feedback signal and the cosine resolver feedback signal is not equally divided at multiple integration points, different coefficients will be selected for use in each partial integration, and then the sine integration result and the cosine integration result are multiplied by different corresponding coefficients to obtain the corresponding sine envelope and cosine envelope.
[0058] It can be known that the sine envelope and cosine envelope are obtained based on the resolver signal output by the resolver. In this embodiment, the expressions of the sine envelope and cosine envelope can be obtained, and then the specific line types of the sine envelope and cosine envelope can be obtained.
[0059] The technical solution of the embodiment of the present invention is to obtain a sine resolver feedback signal and a cosine resolver feedback signal fed back by the resolver by modulating the generated sinusoidal excitation signal; determine a plurality of points to be integrated corresponding to the sine resolver feedback signal and the cosine resolver feedback signal respectively, and determine the sine integration result and the cosine integration result of each point to be integrated respectively based on the sine resolver feedback signal and the cosine resolver feedback signal; and determine the corresponding sine envelope and cosine envelope respectively according to the sine integration result and the cosine integration result. The present invention solves the problem that the current calculation results of the sine and cosine envelopes are not smooth and accurate enough, which leads to a large delay and low decoding accuracy in the decoding angle, and improves the calculation accuracy of the sine and cosine envelopes, and the calculation is simple, which improves the decoding accuracy.
[0060] Embodiment 2
[0061] Figure 2This is a flow chart of a method for determining a sine-cosine envelope provided in the second embodiment of the present invention. Based on the above embodiment, this embodiment determines the position of the point to be integrated by a counting device, and then integrates to obtain the sine-cosine envelope according to the start and stop positions of the integration within the half cycle, providing an optional implementation method. Figure 2 As shown, the method for determining the sine-cosine envelope includes:
[0062] S210, modulating the generated sinusoidal excitation signal and inputting it into a rotary transformer to obtain a sinusoidal resolver feedback signal and a cosine resolver feedback signal fed back by the rotary transformer.
[0063] S220: Control the counting device to count the half-cycle of the sine resolver feedback signal and the cosine resolver feedback signal, and determine a plurality of to-be-integrated points corresponding to the sine resolver feedback signal and the cosine resolver feedback signal in the half-cycle.
[0064] The counting device may be, but is not limited to, a counter or a pendulum, and this embodiment does not impose any limitation on this.
[0065] Exemplarily, taking the sinusoidal excitation signal as Vs×sinδ as an example, the operation cycles of the sinusoidal resolver feedback signal Vs×sinθ×sinδ and the cosine resolver feedback signal Vs×cosθ×sinδ can be determined by a counting device.
[0066] After obtaining the sine resolver feedback signal and the cosine resolver feedback signal fed back by the resolver, the absolute values of the sine resolver feedback signal and the cosine resolver feedback signal are taken, and the negative half-cycle of the sine resolver feedback signal and the cosine resolver feedback signal after taking the absolute values is inverted, the sine resolver feedback signal and the cosine resolver feedback signal obtained after the above processing are Vs×sinθ×|sinδ| and Vs×cosθ×|sinδ| respectively.
[0067] S230: Determine a sine integration result and a cosine integration result of each of the to-be-integrated points based on the sine resolver feedback signal and the cosine resolver feedback signal when counting each of the to-be-integrated points.
[0068] Exemplarily, in the half cycle, a plurality of points to be integrated corresponding to the sine resolver feedback signal and the cosine resolver feedback signal are determined as a first point position, a second point position, a third point position, a fourth point position and a fifth point position, the first point position is the starting position of the half cycle, the second point position is the π / 3 position of the half cycle, the third point position is the π / 2 position of the half cycle, the fourth point position is the 2π / 3 position of the half cycle, and the fifth point position is the end position of the half cycle.
[0069] Correspondingly, integration starts when the counting device counts to the beginning, π / 3, π / 2, and 2π / 3 of the Vs×|sinδ| cycle, and stops when the counter counts to π / 3, π / 2, 2π / 3, and the end of Vs×|sinδ|.
[0070] Specifically, based on the sine resolver feedback signal and the cosine resolver feedback signal, integration is performed from the first point to the second point, from the second point to the third point, from the third point to the fourth point, and from the fourth point to the fifth point, to obtain a sine integration result and a cosine integration result corresponding to each of the points to be integrated.
[0071] Exemplarily, the corresponding sine integral results are obtained by integrating from the start position of the half cycle to the position of π / 3 of the half cycle: The cosine integral result is
[0072] Integrate from the half-cycle π / 3 position to the half-cycle π / 2 position, and obtain the corresponding sine integral results as follows: The cosine integral result is
[0073] Integrate from the half-cycle π / 2 position to the half-cycle 2π / 3 position, and obtain the corresponding sine integral results as follows: The cosine integral result is
[0074] The corresponding sine integral results are obtained by integrating from the position of 2π / 3 of the half cycle to the end position of the half cycle: The cosine integral result is
[0075] S240. Determine a corresponding sine envelope and cosine envelope according to the sine integration result and the cosine integration result, respectively.
[0076] On the basis of the above, the sine integral result and the cosine integral result are multiplied by 2 to obtain the corresponding sine envelope Vs×sinθ and cosine envelope Vs×cosθ.
[0077] According to the technical solution of the embodiment of the present invention, when the period of Vs×|sinδ| is obtained by inverting the negative half-period of the sinusoidal excitation signal, its relative δ period becomes π, and the period of Vs×|sinδ| is divided into four parts: 0 to π / 3, π / 3 to π / 2, π / 2 to 2π / 3, and 2π / 3 to π, and the integration results of |sinδ| are the same, which simplifies the subsequent calculations. Performing four integrations at the same time can make the calculated sine and cosine envelopes closer to sine and cosine, thereby improving the subsequent decoding accuracy.
[0078] Embodiment 3
[0079] Figure 3 A schematic diagram of a structure for determining the configuration of a sine and cosine envelope provided in the third embodiment of the present invention. Figure 3 As shown, the sine-cosine envelope determination device comprises:
[0080] A feedback signal determination module 310 is used to execute the modulation of the generated sinusoidal excitation signal and input it into the rotary transformer to obtain a sinusoidal resolver feedback signal and a cosine resolver feedback signal fed back by the rotary transformer;
[0081] An integration result determination module 320 is used to determine a plurality of to-be-integrated points corresponding to the sine resolver feedback signal and the cosine resolver feedback signal, and to determine a sine integration result and a cosine integration result of each to-be-integrated point based on the sine resolver feedback signal and the cosine resolver feedback signal;
[0082] The envelope determination module 330 is used to determine the sine envelope and the cosine envelope according to the sine integration result and the cosine integration result respectively.
[0083] Optionally, the sine-cosine envelope determination device further includes:
[0084] A signal processing module, used for taking absolute values of the sine resolver feedback signal and the cosine resolver feedback signal, and inverting the negative half-cycle of the sine resolver feedback signal and the cosine resolver feedback signal after taking the absolute values;
[0085] Determine a plurality of points to be integrated corresponding to the sine resolver feedback signal and the cosine resolver feedback signal respectively, specifically for:
[0086] According to the sine resolver feedback signal and the cosine resolver feedback signal whose absolute value is inverted in the negative half cycle, a plurality of points to be integrated corresponding to them are determined in the half cycle respectively.
[0087] Optionally, a plurality of points to be integrated corresponding to the sine resolver feedback signal and the cosine resolver feedback signal are respectively determined, specifically for:
[0088] The control counting device counts the half-cycle of the sine resolver feedback signal and the cosine resolver feedback signal, and determines a plurality of to-be-integrated points corresponding to the sine resolver feedback signal and the cosine resolver feedback signal in the half-cycle.
[0089] Optionally, the sine integration result and the cosine integration result of each of the points to be integrated are determined based on the sine resolver feedback signal and the cosine resolver feedback signal, specifically for:
[0090] Based on the sine resolver feedback signal and the cosine resolver feedback signal, when each of the to-be-integrated points is counted, a sine integration result and a cosine integration result of each of the to-be-integrated points are determined respectively.
[0091] Optionally, in the half cycle, a plurality of to-be-integrated points corresponding to the sine resolver feedback signal and the cosine resolver feedback signal are determined to be a first point position, a second point position, a third point position, a fourth point position and a fifth point position;
[0092] Based on the sine resolver feedback signal and the cosine resolver feedback signal, respectively determining the sine integration result and the cosine integration result of each of the points to be integrated, specifically for:
[0093] Based on the sine resolver feedback signal and the cosine resolver feedback signal, integration is performed from the first point to the second point, from the second point to the third point, from the third point to the fourth point, and from the fourth point to the fifth point, respectively, to obtain a sine integration result and a cosine integration result corresponding to each of the points to be integrated.
[0094] Optionally, the first point position is the start position of the half cycle, the second point position is the π / 3 position of the half cycle, the third point position is the π / 2 position of the half cycle, the fourth point position is the 2π / 3 position of the half cycle, and the fifth point position is the end position of the half cycle;
[0095] Obtaining the sine integral result and the cosine integral result corresponding to each of the points to be integrated is specifically used for:
[0096] Integrate from the half-cycle starting position to the half-cycle π / 3 position, the half-cycle π / 3 position to the half-cycle π / 2 position, the half-cycle π / 2 position to the half-cycle 2π / 3 position, and the half-cycle 2π / 3 position to the half-cycle end position to obtain corresponding sine integral results and cosine integral results respectively.
[0097] Optionally, the envelope determination module 330 is specifically used for:
[0098] The sine integral result and the cosine integral result are multiplied by 2 to obtain the corresponding sine envelope and cosine envelope.
[0099] The sine-cosine envelope determination device provided in the embodiment of the present invention can execute the sine-cosine envelope determination method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the sine-cosine envelope determination method.
[0100] Embodiment 4
[0101] Figure 4A schematic diagram of an electronic device 410 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0102] like Figure 4 As shown, the electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411, such as a read-only memory (ROM 412), a random access memory (RAM 413), etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM 412) or the computer program loaded from the storage unit 418 to the random access memory (RAM 413). In RAM 413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, ROM 412 and RAM 413 are connected to each other via a bus 414. An I / O (input / output) interface 415 is also connected to the bus 414.
[0103] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0104] The processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 411 performs the various methods and processes described above, such as the sine-cosine envelope determination method.
[0105] In some embodiments, the sine-cosine envelope determination method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the sine-cosine envelope determination method described above may be performed. Alternatively, in other embodiments, the processor 411 may be configured to perform the sine-cosine envelope determination method in any other appropriate manner (e.g., by means of firmware).
[0106] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0107] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0108] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0109] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0110] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0111] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0112] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0113] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for determining sine and cosine envelopes, characterized in that: include: The generated sinusoidal excitation signal is modulated and input into the rotary transformer to obtain a sinusoidal resolver feedback signal and a cosine resolver feedback signal fed back by the rotary transformer; Determine a plurality of to-be-integrated points corresponding to the sine resolver feedback signal and the cosine resolver feedback signal respectively, and determine a sine integration result and a cosine integration result of each to-be-integrated point respectively based on the sine resolver feedback signal and the cosine resolver feedback signal; The corresponding sine envelope and cosine envelope are determined according to the sine integration result and the cosine integration result respectively.
2. The method for determining the sine and cosine envelopes according to claim 1, characterized in that: After obtaining the sine resolver feedback signal and the cosine resolver feedback signal fed back by the resolver, the method further includes: Taking absolute values of the sine resolver feedback signal and the cosine resolver feedback signal, and inverting the negative half-cycle of the sine resolver feedback signal and the cosine resolver feedback signal after taking the absolute values; Determining a plurality of points to be integrated corresponding to the sine resolver feedback signal and the cosine resolver feedback signal respectively, including: According to the sine resolver feedback signal and the cosine resolver feedback signal whose absolute value is inverted in the negative half cycle, a plurality of points to be integrated corresponding to them are determined in the half cycle respectively.
3. The method for determining the sine and cosine envelopes according to claim 1, characterized in that: Determining a plurality of points to be integrated corresponding to the sine resolver feedback signal and the cosine resolver feedback signal respectively, including: The control counting device counts the half-cycle of the sine resolver feedback signal and the cosine resolver feedback signal, and determines a plurality of to-be-integrated points corresponding to the sine resolver feedback signal and the cosine resolver feedback signal in the half-cycle.
4. The method for determining the sine and cosine envelopes according to claim 3, characterized in that: The method further comprises: determining a sine integral result and a cosine integral result of each of the points to be integrated based on the sine resolver feedback signal and the cosine resolver feedback signal, comprising: Based on the sine resolver feedback signal and the cosine resolver feedback signal, when each of the to-be-integrated points is counted, a sine integration result and a cosine integration result of each of the to-be-integrated points are determined respectively.
5. The method for determining the sine and cosine envelopes according to claim 3, characterized in that: Determine in the half cycle that a plurality of points to be integrated corresponding to the sine resolver feedback signal and the cosine resolver feedback signal are a first point position, a second point position, a third point position, a fourth point position, and a fifth point position; The method further comprises: determining a sine integral result and a cosine integral result of each of the points to be integrated based on the sine resolver feedback signal and the cosine resolver feedback signal, comprising: Based on the sine resolver feedback signal and the cosine resolver feedback signal, integration is performed from the first point to the second point, from the second point to the third point, from the third point to the fourth point, and from the fourth point to the fifth point, respectively, to obtain a sine integration result and a cosine integration result corresponding to each of the points to be integrated.
6. The method for determining the sine and cosine envelopes according to claim 5, characterized in that: The first point is the starting position of the half cycle, the second point is the π / 3 position of the half cycle, the third point is the π / 2 position of the half cycle, the fourth point is the 2π / 3 position of the half cycle, and the fifth point is the ending position of the half cycle; Obtaining the sine integral result and the cosine integral result corresponding to each of the points to be integrated, including: Integrate from the half-cycle starting position to the half-cycle π / 3 position, the half-cycle π / 3 position to the half-cycle π / 2 position, the half-cycle π / 2 position to the half-cycle 2π / 3 position, and the half-cycle 2π / 3 position to the half-cycle end position to obtain corresponding sine integral results and cosine integral results respectively.
7. The method for determining the sine and cosine envelopes according to claim 6, characterized in that: Determining the corresponding sine envelope and cosine envelope respectively according to the sine integral result and the cosine integral result, including: The sine integral result and the cosine integral result are multiplied by 2 to obtain the corresponding sine envelope and cosine envelope.
8. A sine-cosine envelope determination device, characterized in that: include: A feedback signal determination module is used to execute the modulation of the generated sinusoidal excitation signal and input it into the rotary transformer to obtain a sinusoidal resolver feedback signal and a cosine resolver feedback signal fed back by the rotary transformer; An integration result determination module, used to determine a plurality of to-be-integrated points corresponding to the sine resolver feedback signal and the cosine resolver feedback signal, and to determine a sine integration result and a cosine integration result of each to-be-integrated point based on the sine resolver feedback signal and the cosine resolver feedback signal; The envelope determination module is used to determine the sine envelope and the cosine envelope according to the sine integration result and the cosine integration result respectively.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the sine-cosine envelope determination method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the sine-cosine envelope determination method according to any one of claims 1 to 7 when executed.
