This application claims priority to Chinese Patent Application No. 202111477499.1 filed with the China National Intellectual Property Administration (CNIPA) on Dec. 6, 2021, the disclosure of which is incorporated herein by reference in its entirety.
The present application relates to the field of autonomous driving technology, for example, a vehicle control method and apparatus, a controller, a system, and a storage medium.
As a key technology of precision agriculture, automatic driving of agricultural machinery is widely used in agricultural production processes such as farming, sowing, fertilizing, spraying, and harvesting. Classic key technologies for the automatic driving of agricultural machinery include navigation pose information acquisition, navigation path planning, and navigation control. Accurate and reliable acquisition of the navigation pose information is a prerequisite for the path planning and vehicle body control. An optimized navigation path can effectively reduce resource waste, such as reducing repetitive and missing operations and reducing turning paths at the edge of a field. Fast and stable navigation and control can cope with the complex road environment of farmland to accurately track the navigation path.
Solutions for automatic driving of agricultural machinery require the installation of a display and an angle sensor in a vehicle, and there are many and complex wiring harnesses that needs to be installed. Due to the complexity of farmland operations, wiring harnesses often get hung up. Moreover, there are many system components, and the cost is relatively high.
The present application provides a vehicle control method and apparatus, a controller, a system, and a storage medium to achieve rapid and stable control of vehicle driving and reduce cost consumption.
The present application provides a vehicle control method. The method includes the steps below.
Positioning data output by a global navigation satellite system (GNSS) module and IMU data output by an inertial measurement unit (IMU) module are acquired, and attitude angle data is acquired based on the positioning data and the IMU data.
Rotation angle information of a vehicle front wheel is acquired based on the IMU data, motor position encoder data of an electric steering wheel, and vehicle size data.
Target rotation angle information of the vehicle front wheel is acquired based on the positioning data, the attitude angle data, the vehicle size data, the rotation angle information of the vehicle front wheel, and planned path data.
Target control information is generated based on the target rotation angle information, and the target control information is sent to the electric steering wheel so that the electric steering wheel rotates based on the target control information.
The present application further provides an integrated controller. The integrated controller includes a mobile communication signal receiver, an IMU module, and a central processing unit.
The mobile communication signal receiver is configured to receive differential information sent by a base station or a server and send the differential information to a GNSS module.
The GNSS module is configured to acquire positioning data based on the differential information.
The IMU module is configured to acquire IMU data.
The central processing unit is configured to acquire attitude angle data based on the positioning data and the IMU data: acquire rotation angle information of a vehicle front wheel based on the IMU data, motor position encoder data of an electric steering wheel, and vehicle size data; acquire target rotation angle information of the vehicle front wheel based on the positioning data, the attitude angle data, the vehicle size data, the rotation angle information of the vehicle front wheel, and planned path data; and generate target control information based on the target rotation angle information and send the target control information to the electric steering wheel so that the electric steering wheel rotates based on the target control information.
The present application further provides an agricultural machinery automatic driving system.
The system includes the preceding integrated controller, a handle, and an electric steering wheel.
The handle is configured to perform at least one of the following: enabling or disabling an automatic driving state based on a user operation or sending planned path data configured by a user to a central processing unit of the integrated controller.
The electric steering wheel is configured to receive target control information sent by the central processing unit and rotate based on the received target control information to drive a vehicle front wheel to rotate.
The present application further provides a vehicle control apparatus. The apparatus includes a data acquisition module, a vehicle front wheel rotation angle determination module, a target rotation angle determination module, and a steering wheel control module.
The data acquisition module is configured to acquire positioning data output by a global navigation satellite system (GNSS) module and IMU data output by an inertial measurement unit (IMU) module and acquire attitude angle data based on the positioning data and the IMU data.
The vehicle front wheel rotation angle determination module is configured to acquire rotation angle information of a vehicle front wheel based on the IMU data, motor position encoder data of an electric steering wheel, and vehicle size data.
The target rotation angle determination module is configured to acquire target rotation angle information of the vehicle front wheel based on the positioning data, the attitude angle data, the vehicle size data, the rotation angle information of the vehicle front wheel, and planned path data.
The steering wheel control module is configured to generate target control information based on the target rotation angle information and send the target control information to the electric steering wheel so that the electric steering wheel rotates based on the target control information.
The present application further provides a computer-readable storage medium storing a computer program. The computer program, when executed by a processor, performs the preceding vehicle control method.
The present application is described below in conjunction with drawings and embodiments. The specific embodiments set forth below are intended to explain the preset application. For ease of description, only parts related to the present application are illustrated in the drawings.
Similar reference numerals and letters indicate similar items in the following drawings: once a particular item is defined in a drawing, the item does not need to be defined or explained in subsequent drawings. In the description of the present application, terms such as “first” and “second” are only intended to distinguish the description and are not to be construed as indicating or implying relative importance.
In S110, positioning data output by a global navigation satellite system (GNSS) module and IMU data output by an inertial measurement unit (IMU) module are acquired, and attitude angle data is acquired based on the positioning data and the IMU data.
GNSS generally refers to all satellite navigation systems, which have omnipotent, global, all-weather, continuous, and real-time navigation, positioning, and timing functions. In the embodiment of the present application, the GNSS module supports both GNSS positioning and GNSS orientation. GNSS orientation may determine the direction of the geometric vector formed by two points in space in a given coordinate system. The positioning data output by GNSS may be received using a GNSS receiving antenna. The positioning data includes location positioning information and orientation information. The GNSS module also supports enhanced modes such as real-time kinematic (RTK) positioning, satellite-based augmentation system (SBAS), differential global positioning system (DGPS), and Precise Point Positioning (PPP) technology. IMU may be configured to detect and measure acceleration and a rotational motion state. In the embodiment of the present application, IMU may collect and output IMU data, and the IMU data includes a rotational angular velocity of a vehicle body and an acceleration of the vehicle body. The attitude angle data is calculated based on the GNSS positioning data and the IMU data. The attitude angle data includes a heading angle, a pitch angle, and a roll angle. Generally, the spatial rotation of the body coordinate system relative to the geographic coordinate system may be expressed in the order of the heading angle, the pitch angle, and the roll angle.
In S120, rotation angle information of a vehicle front wheel is acquired based on the IMU data, motor position encoder data of an electric steering wheel, and vehicle size data.
The motor position encoder data of the electric steering wheel represents the current rotation position of the electric steering wheel. The vehicle size data includes the distance between the front and rear axles of a vehicle body, the height of a rear axle, front track, the distance from an antenna to a central axis, the position of the antenna relative to the central axis, the distance from the antenna to the rear axle, the position of the antenna relative to the rear axle, the height of the antenna, and the operation width. The vehicle size data may be used to build vehicle kinematics models and perform data corrections.
Vehicle size information may be entered by using a terminal device such as a mobile phone or a tablet, and the electric steering wheel is calibrated.
In step 1, a line AB is configured. The distance between two points A and B should be greater than 70 meters.
In step 2, after the line AB is configured, the vehicle is manually turned around and parked at point B with the front of the vehicle facing point A.
In step 3, the vehicle keeps driving forward at a constant speed of 2 Km/h and drives automatically to point A.
In step 4, the vehicle is manually turned around and parked at point A with the front of the vehicle facing point B.
In step 5, the vehicle keeps driving forward at a constant speed of 2 Km/h and drives automatically to point B.
In step 6, calibration is completed.
The rotation angle information of the vehicle front wheel is acquired based on the IMU data, the motor position encoder data of the electric steering wheel, and the vehicle size data. The vehicle front wheel angle information refers to information such as the current vehicle front wheel rotation angle and rotation angle direction.
In S130, target rotation angle information of the vehicle front wheel is acquired based on the positioning data, the attitude angle data, the vehicle size data, the rotation angle information of the vehicle front wheel, and planned path data.
The planned path data may be obtained in the form of web page access by WIFI, Bluetooth, or a mobile communication data link. The planned path data may be imported via a mobile phone or obtained by a user operating the buttons of the handle. The positioning data, the attitude angle data, the vehicle size data, the rotation angle information of the vehicle front wheel, and the planned path data are input into a vehicle kinematics model to acquire the target rotation angle information of the vehicle front wheel output by the model. The target rotation angle information of the vehicle front wheel includes the angle information and direction information at which the vehicle's front wheels should rotate at the next moment.
In S140, target control information is generated based on the target rotation angle information, and the target control information is sent to the electric steering wheel so that the electric steering wheel rotates based on the target control information.
The target rotation angle information is the angle information at which the front wheels of the vehicle controlled by the steering wheel should rotate. The target control information may be generated according to the target rotation angle information. In this solution embodiment, in an embodiment, generating the target control information based on the target rotation angle information includes steps A1 and A2.
In step A1, a preset function relationship between a steering wheel rotation angle and a rotation angle of the vehicle front wheel is acquired.
By the rotation of the electric steering wheel, the vehicle's front wheels may be controlled to rotate. A function relationship exists between the rotation angle of the electric steering wheel and the rotation angle of the front wheel. The function relationship may be acquired via the preceding calibration process of the electric steering wheel. If the rotation angle of the electric steering wheel is known, the rotation angle of the vehicle front wheel may be obtained. If the rotation angle of the vehicle front wheel is known, the rotation angle of the electric steering wheel may be obtained.
In step A2, based on the function relationship, a target steering wheel rotation angle corresponding to the target rotation angle information is determined, and the target control information is generated based on the target steering wheel rotation angle.
The target rotation angle information includes the angle information at which the vehicle's front wheels should rotate and the direction information at which the vehicle's front wheels should rotate. The target steering wheel rotation angle is the angle at which the electric steering wheel should rotate. As described in step A1, after the information about the angle at which the front wheels of the vehicle should rotate is learned, the rotation angle of the electric steering wheel, that is, the target steering wheel rotation angle may be obtained based on the preset function relationship. The target control information includes the target steering wheel rotation angle. After the target steering wheel rotation angle is obtained, target control information is generated to control the electric steering wheel to rotate based on the target control information.
Via the preceding steps, the electric steering wheel rotates based on the target control information, and the vehicle can be accurately and rapidly controlled to drive according to the path planning information, achieving automatic driving of the vehicle.
In the technical solution of this embodiment, positioning data output by a global navigation satellite system (GNSS) module and IMU data output by an inertial measurement unit (IMU) module are acquired, and attitude angle data is acquired based on the positioning data and the IMU data: rotation angle information of a vehicle front wheel is acquired based on the IMU data, motor position encoder data of an electric steering wheel, and vehicle size data: target rotation angle information of the vehicle front wheel is acquired based on the positioning data, the attitude angle data, the vehicle size data, the rotation angle information of the vehicle front wheel, and planned path data: target control information is generated based on the target rotation angle information, and the target control information is sent to the electric steering wheel so that the electric steering wheel rotates based on the target control information. In the technical solution of this embodiment, GNSS positioning data accurate to a centimeter level can be acquired: via a mobile terminal, vehicle parameters can be configured, calibration can be performed, and path planning data can be designed: after the configuration, the vehicle can be driven automatically detached from the terminal. Moreover, fixed-point navigation line control and enabling and disabling of the automatic driving function can be achieved through the buttons of the handle. In this manner, it is easy to installation and maintenance hardware facilities, which greatly reduces consumption costs and reduces the hardware damage rate of the automatic driving system. Additionally, the driving state of the vehicle can be quickly and stably controlled. In the embodiment of the present application, accurate and reliable navigation pose information can be acquired. When the environment and road conditions are complex, the driving state of the vehicle can be quickly and stably controlled. Traditional displays and angle sensors do not need to be used. Thus, it is easy to install and maintain hardware facilities, which greatly reduces costs.
In S210, the motor position encoder data of the electric steering wheel, vehicle velocity information, the angular velocity of a vehicle body determined according to the IMU data, and the distance between the front and rear axles of the vehicle body are acquired.
The motor position encoder data of the electric steering wheel includes data such as the current rotation position, rotation angle, and rotation velocity of the electric steering wheel. The vehicle velocity information includes the current velocity and direction information of the vehicle. The motor position encoder data of the electric steering wheel may be obtained by a motor position encoder. After the vehicle is started, the vehicle velocity information may be determined by the data output in real time by the GNSS module. In S110, the IMU data may be acquired, and the IMU data includes a vehicle's rotational angular velocity. When the vehicle velocity increases to a preset threshold, the forward and reverse states of the vehicle may be determined using the mean information of historical IMU data. If the mean information is positive, the vehicle is in the forward state. If the mean information is negative, the vehicle is in the reverse state. In S120, the vehicle size data may be acquired, and the vehicle size data includes the distance between the front and rear axles of the vehicle body.
In S220, a front wheel observation angle is determined based on the vehicle velocity information, the angular velocity of the vehicle body, and the distance between the front and rear axles of the vehicle body.
In this solution embodiment, in an embodiment, the front wheel observation angle may be determined based on the vehicle velocity information, the angular velocity of the vehicle body, and the distance between the front and rear axles of the vehicle body by using the following formula:
L denotes the distance between the front and rear axles of the vehicle body. V denotes the vehicle velocity information. YA denotes the angular velocity of the vehicle body. W denotes the front wheel observation angle.
The front wheel observation angle can be calculated according to the vehicle velocity information, the angular velocity of the vehicle body, and the distance between the front and rear axles of the vehicle body. The calculation method is simple, the data required for calculation is easy to obtain, and the accuracy of vehicle automatic driving data can be improved.
In S230, the rotation angle information of the vehicle front wheel is acquired based on the motor position encoder data and the front wheel observation angle.
After the front wheel observation angle is calculated, the rotation angle information of the vehicle front wheel is acquired based on the motor position encoder data and the front wheel observation angle. In this solution embodiment, in an embodiment, acquiring the rotation angle information of the vehicle front wheel includes step B1 and step B2.
In step B1, the angular velocity of the vehicle front wheel is determined based on the motor position encoder data.
In this solution embodiment, in an embodiment, determining the angular velocity of the vehicle front wheel based on the motor position encoder data includes steps B11 to B13.
In step B11, dead zone correction is performed on the motor position encoder data based on an imported dead zone value.
The motor position encoder data includes data such as the current rotation position, rotation angle, and rotation velocity of the electric steering wheel. In the process of generating the preceding data, the motor position encoder generates a control signal dead zone. The dead zone correction may be performed on the motor position encoder data based on the dead zone value.
The dead zone value may be obtained by the import of a terminal device, such as a mobile phone, a tablet, or a notebook computer. By the adjustment of the dead zone value, dead zone correction may be performed on the motor position encoder data.
In step B12, the position increment of the electric steering wheel is determined according to the corrected motor position encoder data, and an angular velocity of the electric steering wheel is determined according to the position increment and a sampling period.
The position increment of the electric steering wheel is the positional movement amount of the electric steering wheel at the current moment relative to the previous moment. The motor position encoder samples the steering angle of the electric steering wheel at a certain frequency. The sampling period is a sampling time interval. The angular velocity of the electric steering wheel may be determined according to the position increment and the sampling period. For example, the position increment of the electric steering wheel is S, the sampling period is t, and then the angular velocity=S/t.
In step B13, the angular velocity of the vehicle front wheel is determined according to the angular velocity of the electric steering wheel and a preset function relationship between a steering wheel rotation angle and a rotation angle of the vehicle front wheel.
The method for determining the angular velocity of the vehicle front wheel by the preceding steps may be applied to determine the angular velocity of the front wheel of a wheel-steering tractor to meet the operation requirements of the wheel-steering tractor.
As described in S140, the rotation angle of the target vehicle front wheel may be determined by using the function relationship between the rotation angle of the electric steering wheel and the rotation angle of the vehicle front wheel. The angular velocity of the vehicle front wheel may be determined according to the angular velocity of the electric steering wheel and the function relationship.
In step B2, the rotation angle information of the vehicle front wheel is acquired by using a filter model according to the angular velocity of the vehicle front wheel and the front wheel observation angle.
The filter model may be a Kalman filter. The Kalman filter is an algorithm that may use a linear system state equation to perform optimal estimation of a system state by using the input and output observation data of the system. In this solution embodiment, the Kalman filter model may be established according to an angle tracking algorithm. The angular velocity of the vehicle front wheel and the front wheel observation angle are input into the Kalman filter model, and the Kalman filter operation is performed, thereby outputting the rotation angle information of the vehicle front wheel in real time.
Through the preceding steps, the rotation angle information of the vehicle front wheel is determined, and the Kalman filter model is established, which can output accurate rotation angle information of the vehicle front wheel in real time.
In the technical solution of this embodiment, the motor position encoder data of the electric steering wheel, the vehicle velocity information, the angular velocity of the vehicle body determined according to the IMU data, and the distance between the front and rear axles of the vehicle body are acquired: a front wheel observation angle is determined based on the vehicle velocity information, the angular velocity of the vehicle body, and the distance between the front and rear axles of the vehicle body: the rotation angle information of the vehicle front wheel is acquired based on the motor position encoder data and the front wheel observation angle. A forward and reverse determination algorithm can be used to distinguish the forward or reverse state of the vehicle. The operation requirements of a wheel-steering tractor are met through a method suitable for determining the angular velocity of the front wheels of the wheel-steering tractor. Thus, the technical solution of this embodiment is easy to promote and use.
In S310, the motor position encoder data of the electric steering wheel, the vehicle velocity information, the angular velocity of the vehicle body determined according to the IMU data, and the distance between the front and rear axles of the vehicle body are acquired.
In S320, the front wheel observation angle is determined based on the vehicle velocity information, the angular velocity of the vehicle body, and the distance between the front and rear axles of the vehicle body.
In S330, the rotation angle information of the vehicle front wheel is acquired based on the motor position encoder data and the front wheel observation angle.
In this solution embodiment, in an embodiment, acquiring the rotation angle information of the vehicle front wheel based on the motor position encoder data and the front wheel observation angle includes steps C1 and C2.
In step C1, a median value in the motor position encoder data is compensated according to the front wheel observation angle and a present function relationship between a steering wheel rotation angle and a rotation angle of the vehicle front wheel.
First, the steering wheel rotation angle corresponding to the front wheel observation angle may be obtained according to the function relationship between the steering wheel rotation angle and the rotation angle of the vehicle front wheel. Then, the steering wheel rotation angle is used to perform median compensation on the motor position encoder data, and it is detected whether a deviation exists between the median value in the motor position encoder data and the steering wheel rotation angle. If a deviation exists, the median value in the motor position encoder data is compensated.
In step C2, the rotation angle information of the vehicle front wheel is acquired based on compensated motor position encoder data and the preset function relationship between the steering wheel rotation angle and the rotation angle of the vehicle front wheel.
The rotation angle of the vehicle front wheel may be calculated by using the preset function relationship between the rotation angle of the steering wheel and the rotation angle of the vehicle front wheel. The rotation angle information of the vehicle front wheel is acquired. The rotation angle information of the vehicle front wheel includes the rotation angle of the vehicle front wheel rotates and the rotation direction of the vehicle front wheel rotates.
The method for determining the rotation angle information of the vehicle front wheel by the preceding steps may be applied to determine the rotation angle information of the front wheels of a rice transplanter to meet the operation requirements of the rice transplanter.
In the technical solution of this embodiment, the motor position encoder data of the electric steering wheel, vehicle velocity information, the angular velocity of a vehicle determined according to the IMU data, and the distance between the front and rear axles of the vehicle are acquired: a front wheel observation angle is determined based on the vehicle velocity information, the angular velocity of the vehicle, and the distance between the front and rear axles of the vehicle: the rotation angle information of the vehicle front wheel is acquired based on the motor position encoder data and the front wheel observation angle. The operation requirements of the rice transplanter are met through the method suitable for determining the rotation angle information of the front wheels of the rice transplanter. Thus, the technical solution of this embodiment is easy to promote and use.
The mobile communication signal receiver is configured to receive differential information sent by a base station or a server and send the differential information to a GNSS module. The GNSS module is configured to acquire positioning data based on the differential information. The IMU module is configured to acquire IMU data. The central processing unit is configured to acquire attitude angle data based on the positioning data and the IMU data: acquire rotation angle information of a vehicle front wheel based on the IMU data, motor position encoder data of an electric steering wheel, and vehicle size data: acquire target rotation angle information of the vehicle front wheel based on the positioning data, the attitude angle data, the vehicle size data, the rotation angle information of the vehicle front wheel, and planned path data; and generate target control information based on the target rotation angle information and send the target control information to the electric steering wheel so that the electric steering wheel rotates based on the target control information.
In an embodiment, the central processing unit is configured to acquire the rotation angle information of the vehicle front wheel based on the IMU data, the motor position encoder data of the electric steering wheel, and the vehicle size data in the following manners:
The motor position encoder data of the electric steering wheel, vehicle velocity information, the angular velocity of a vehicle body determined according to the IMU data, and the distance between the front and rear axles of the vehicle body are acquired: a front wheel observation angle is determined based on the vehicle velocity information, the angular velocity of the vehicle body, and the distance between the front and rear axles of the vehicle body: the rotation angle information of the vehicle front wheel is acquired based on the motor position encoder data and the front wheel observation angle.
The central processing unit is configured to acquire the rotation angle information of the vehicle front wheel based on the motor position encoder data and the front wheel observation angle in the following manners:
The angular velocity of the vehicle front wheel is determined based on the motor position encoder data: the rotation angle information of the vehicle front wheel is acquired by using a filter model according to the angular velocity of the vehicle front wheel and the front wheel observation angle.
The central processing unit is configured to determine the angular velocity of the vehicle front wheel based on the motor position encoder data in the following manners:
Dead zone correction is performed on the motor position encoder data based on the imported dead zone value; the position increment of the electric steering wheel is determined according to corrected motor position encoder data, and the angular velocity of the electric steering wheel is determined according to the position increment and a sampling period: the angular velocity of the vehicle front wheel is determined according to the angular velocity of the electric steering wheel and a preset function relationship between a steering wheel rotation angle and a rotation angle of the vehicle front wheel.
In an embodiment, the central processing unit is configured to acquire the rotation angle information of the vehicle front wheel based on the motor position encoder data and the front wheel observation angle in the following manner:
The median value in the motor position encoder data is compensated according to the front wheel observation angle and a present function relationship between a steering wheel rotation angle and a rotation angle of the vehicle front wheel: the rotation angle information of the vehicle front wheel is acquired based on compensated motor position encoder data and the preset function relationship between the steering wheel rotation angle and the rotation angle of the vehicle front wheel.
The central processing unit is configured to determine the front wheel observation angle by using the following formula:
W=arc tan (φAVgnss/L). W denotes the front wheel observation angle. L denotes the distance between the front and rear axles of the vehicle body. Vgnss denotes the vehicle velocity information. φA denotes the angular velocity of the vehicle body.
The integrated controller may be connected to an independent GNSS antenna to achieve dual-antenna directional attitude measurement. The dual antennas may be dual antennas of the GNSS module, and the dual antennas are on one line. The directional attitude measurement includes a heading angle and a pitch angle.
The handle is configured to enable or disable an automatic driving state based on a user operation and/or send planned path data configured by a user to a central processing unit of the integrated controller. The electric steering wheel is configured to receive target control information sent by the central processing unit and rotate based on the received target control information to drive a vehicle front wheel to rotate. The handle and the electric steering wheel are connected through a controller area network (CAN).
In an embodiment, the system also includes a mobile terminal.
The mobile terminal is communicatively connected to the integrated controller and configured to perform at least one of path planning, vehicle calibration, parameter setting, parameter adjustment, and enabling or disabling automatic driving in the form of web page access.
The mobile terminal may be a device such as a mobile phone, a tablet, or a notebook computer. The mobile phone is used as an example. The agricultural machinery automatic driving system may configure a vehicle parameter, perform mechanical calibration, set a navigation line, and enable or disable automatic driving through the application software or web page on the mobile phone. The mobile phone may be connected to the integrated controller in any one manner such as Bluetooth, Wi-Fi, or a mobile network.
The electric steering wheel includes several parts, that is, a steering drive motor module, a fixed frame module, a clamp module, a sleeve module, and a steering wheel module. The fixed frame module may be installed in a fixed position at the bottom of a steering drive motor and fastened to a steering rod through a matching clamp.
The data acquisition module 610 is configured to acquire positioning data output by a global navigation satellite system (GNSS) module and IMU data output by an inertial measurement unit (IMU) module and acquire attitude angle data based on the positioning data and the IMU data. The vehicle front wheel rotation angle determination module 620 is configured to acquire rotation angle information of a vehicle front wheel based on the IMU data, motor position encoder data of an electric steering wheel, and vehicle size data. The target rotation angle determination module 630 is configured to acquire target rotation angle information of the vehicle front wheel based on the positioning data, the attitude angle data, the vehicle size data, the rotation angle information of the vehicle front wheel, and planned path data. The steering wheel control module 640 is configured to generate target control information based on the target rotation angle information and send the target control information to the electric steering wheel so that the electric steering wheel rotates based on the target control information.
In an embodiment, the vehicle front wheel rotation angle determination module 620 includes a first determination unit, a second determination unit, and a vehicle front wheel rotation angle information acquisition unit.
The first determination unit is configured to acquire the motor position encoder data of the electric steering wheel, vehicle velocity information, the angular velocity of a vehicle body determined according to the IMU data, and the distance between the front and rear axles of the vehicle body. The second determination unit is configured to determine a front wheel observation angle based on the vehicle velocity information, the angular velocity of the vehicle body, and the distance between the front and rear axles of the vehicle body. The vehicle front wheel rotation angle information acquisition unit is configured to acquire the rotation angle information of the vehicle front wheel based on the motor position encoder data and the front wheel observation angle.
In an embodiment, the vehicle front wheel rotation angle information acquisition unit includes a vehicle front wheel angular velocity subunit and a first rotation angle determination subunit.
The vehicle front wheel angular velocity subunit is configured to determine the angular velocity of the vehicle front wheel based on the motor position encoder data. The first rotation angle determination subunit is configured to acquire the rotation angle information of the vehicle front wheel by using a filter model according to the angular velocity of the vehicle front wheel and the front wheel observation angle.
In an embodiment, the vehicle front wheel angular velocity subunit is configured to perform the following steps:
Dead zone correction is performed on the motor position encoder data based on the imported dead zone value: the position increment of the electric steering wheel is determined according to corrected motor position encoder data, and the angular velocity of the electric steering wheel is determined according to the position increment and a sampling period: the angular velocity of the vehicle front wheel is determined according to the angular velocity of the electric steering wheel and a preset function relationship between a steering wheel rotation angle and a rotation angle of the vehicle front wheel.
In an embodiment, the vehicle front wheel rotation angle information acquisition unit includes a median compensation subunit and a second rotation angle determination subunit.
The median compensation subunit is configured to compensate the median value in the motor position encoder data according to the front wheel observation angle and a present function relationship between a steering wheel rotation angle and a rotation angle of the vehicle front wheel. The second rotation angle determination subunit is configured to acquire the rotation angle information of the vehicle front wheel based on compensated motor position encoder data and the preset function relationship between the steering wheel rotation angle and the rotation angle of the vehicle front wheel.
The second determination unit is configured to determine the front wheel observation angle by using the following formula:
W=arc tan(φAVgnss/L. L denotes the distance between the front and rear axles of the vehicle body. Vgnss denotes the vehicle velocity information. φA denotes the angular velocity of the vehicle body.
In an embodiment, the steering wheel control module 640 is configured to perform the following steps:
A preset function relationship between a steering wheel rotation angle and a rotation angle of the vehicle front wheel is acquired: based on the function relationship, a target steering wheel rotation angle corresponding to the target rotation angle information is determined, and the target control information is generated based on the target steering wheel rotation angle.
The preceding products may execute the vehicle control method provided by any embodiment of the present application and have corresponding functional modules and effects of executing the method.
Embodiment seven of the present application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program which, when executed by a processor, performs the vehicle control method according to all embodiments of the present application. Positioning data output by a global navigation satellite system (GNSS) module and IMU data output by an inertial measurement unit (IMU) module are acquired, and attitude angle data is acquired based on the positioning data and the IMU data: rotation angle information of a vehicle front wheel is acquired based on the IMU data, motor position encoder data of an electric steering wheel, and vehicle size data: target rotation angle information of the vehicle front wheel is acquired based on the positioning data, the attitude angle data, the vehicle size data, the rotation angle information of the vehicle front wheel, and planned path data: target control information is generated based on the target rotation angle information, and the target control information is sent to the electric steering wheel so that the electric steering wheel rotates based on the target control information.
Any combination of one or more computer-readable media may be adopted. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. Examples (a non-exhaustive list) of the computer-readable storage medium include an electrical connection having one or more wires, a portable computer disk, a hard disk, a random-access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical memory, a magnetic memory, or any suitable combination thereof. In the document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier. The data signal carries computer-readable program codes. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium. The computer-readable medium may send, propagate, or transmit a program used by or used in conjunction with an instruction execution system, apparatus, or device.
The program code contained on the computer-readable medium may be transmitted on any suitable medium, including, but not limited to, a wireless medium, a wire, an optical cable, a radio frequency (RF), or any suitable combination thereof.
Computer program codes for performing the operations of the present application may be written in one or more programming languages or combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, as well as conventional procedural programming languages such as “C” or similar programming languages. The program codes may be executed entirely on a user computer, partly on a user computer, as a stand-alone software package, partly on a user computer and partly on a remote computer, or entirely on a remote computer or a server. In the case relating to a remote computer, the remote computer may be connected to a user computer via any kind of network including a local area network (LAN) or a wide area network (WAN) or may be connected to an external computer (for example, via the Internet by an Internet service provider).
Number | Date | Country | Kind |
---|---|---|---|
202111477499.1 | Dec 2021 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2022/078942 | 3/3/2022 | WO |