CN114486282A - Detection method and device for steering wheel rotation data and electronic equipment - Google Patents

Detection method and device for steering wheel rotation data and electronic equipment Download PDF

Info

Publication number
CN114486282A
CN114486282A CN202111632427.XA CN202111632427A CN114486282A CN 114486282 A CN114486282 A CN 114486282A CN 202111632427 A CN202111632427 A CN 202111632427A CN 114486282 A CN114486282 A CN 114486282A
Authority
CN
China
Prior art keywords
data
steering wheel
mobile terminal
direction data
rotation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202111632427.XA
Other languages
Chinese (zh)
Inventor
朱行冲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apollo Zhilian Beijing Technology Co Ltd
Original Assignee
Apollo Zhilian Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Apollo Zhilian Beijing Technology Co Ltd filed Critical Apollo Zhilian Beijing Technology Co Ltd
Priority to CN202111632427.XA priority Critical patent/CN114486282A/en
Publication of CN114486282A publication Critical patent/CN114486282A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M17/00Testing of vehicles
    • G01M17/007Wheeled or endless-tracked vehicles

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Steering Controls (AREA)

Abstract

The disclosure provides a detection method and device for steering wheel rotation data and electronic equipment, relates to the technical field of computers, and particularly relates to the technical field of car networking and intelligent cabins. The specific implementation scheme is as follows: acquiring initial direction data of a mobile terminal, wherein the mobile terminal is fixed on a steering wheel; acquiring current direction data of the mobile terminal in a rotating process along with a steering wheel; the rotation data of the steering wheel is determined based on the initial direction data and the current direction data. Based on the scheme, the rotation data of the steering wheel can be effectively determined through the mobile terminal, and the subsequent use of the rotation data of the steering wheel is facilitated.

Description

Detection method and device for steering wheel rotation data and electronic equipment
Technical Field
The disclosure relates to the technical field of computers, particularly to the technical field of car networking and intelligent cabins, and particularly relates to a detection method and device for steering wheel rotation data and electronic equipment.
Background
The steering wheel is an important component in a vehicle for manipulating the direction of travel of the vehicle.
The rotation data of the steering wheel may have multiple applications, and how to effectively acquire the rotation data of the steering wheel becomes a technical problem to be solved urgently.
Disclosure of Invention
In order to solve at least one of the above drawbacks, the present disclosure provides a method and an apparatus for detecting steering wheel rotation data, and an electronic device.
According to a first aspect of the present disclosure, there is provided a method of detecting steering wheel rotation data, the method comprising:
acquiring initial direction data of a mobile terminal, wherein the mobile terminal is fixed on a steering wheel;
acquiring current direction data of the mobile terminal in a rotating process along with a steering wheel;
the rotation data of the steering wheel is determined based on the initial direction data and the current direction data.
According to a second aspect of the present disclosure, there is provided a steering wheel rotation data detection apparatus, the apparatus comprising:
the initial direction data acquisition module is used for acquiring initial direction data of the mobile terminal, and the mobile terminal is fixed on a steering wheel;
the current direction data acquisition module is used for acquiring current direction data of the mobile terminal in the rotating process along with the steering wheel;
and the rotation data acquisition module is used for determining rotation data of the steering wheel based on the initial direction data and the current direction data.
According to a third aspect of the present disclosure, there is provided an electronic apparatus comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the method of detecting steering wheel rotation data.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the above-described steering wheel rotation data detection method.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the above-described method of detecting steering wheel rotation data.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flowchart of a method for detecting steering wheel rotation data according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another method for detecting steering wheel rotation data according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a device for detecting steering wheel rotation data according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of another detection device for steering wheel rotation data according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device for implementing a method for detecting steering wheel rotation data according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the related art, a car machine system generally detects rotation data of a steering wheel through a steering wheel sensor installed in cooperation with the steering wheel, and the detected rotation data is generally only fed back to the car machine system and cannot be output to other equipment for use, so that the rotation data of the steering wheel cannot be acquired through the steering wheel sensor of a vehicle.
If the rotation data of the steering wheel is detected by adding a sensor to the steering wheel, modification of the structure of the steering wheel is faced and additional cost is added.
The embodiment of the application provides a method and a device for detecting steering wheel rotation data and an electronic device, and aims to solve at least one of the above technical problems in the prior art.
Fig. 1 shows a schematic flowchart of a method for detecting steering wheel rotation data according to an embodiment of the present disclosure, and as shown in fig. 1, the method mainly includes:
step S110: acquiring initial direction data of a mobile terminal, wherein the mobile terminal is fixed on a steering wheel;
step S120: acquiring current direction data of the mobile terminal in a rotating process along with a steering wheel;
step S130: the rotation data of the steering wheel is determined based on the initial direction data and the current direction data.
In the disclosed embodiment, the mobile terminal may be fixed on a steering wheel and rotate with the rotation of the steering wheel. The mobile terminal can be fixed to the steering wheel through a special bracket, and the fixing mode of the mobile terminal to the steering wheel is not limited in this example.
The direction data is used to indicate the direction the mobile terminal is facing, and the initial direction data may indicate the direction the mobile terminal is facing when not turning with the steering wheel, i.e. the direction the mobile terminal is facing when the mobile terminal is fixed to the mobile terminal and the steering wheel is not moved. The current direction data may represent a direction in which the mobile terminal is oriented during rotation with the steering wheel.
The mobile terminal may be preset with an application program for detecting steering wheel rotation data, and the application program may be started after the mobile terminal is fixed to the steering wheel, and the direction data of the mobile terminal may be acquired as initial direction data. In the process of the rear steering wheel rotation, the mobile terminal rotates along with the steering wheel, the direction data of the mobile terminal changes, and the direction data of the mobile terminal in the process of the rotation along with the steering wheel can be used as the current direction data.
In the embodiment of the present disclosure, the initial direction data and the current direction data may be represented in the form of a rotation angle, for example, an included angle between the initial direction data and a central axis of a steering wheel may be used as the rotation angle.
After the initial direction data and the current direction data are acquired, rotation data of the steering wheel may be determined based on the initial direction data and the current direction data. The rotation data of the steering wheel may also be expressed in the form of a rotation angle.
According to the method provided by the embodiment of the disclosure, the mobile terminal is fixed on the steering wheel, the initial direction data of the mobile terminal is obtained, the current direction data of the mobile terminal in the rotating process along with the steering wheel is obtained, and therefore the rotating data of the steering wheel is determined based on the initial direction data and the current direction data. Based on the scheme, the rotation data of the steering wheel can be effectively determined through the mobile terminal, and the subsequent use of the rotation data of the steering wheel is facilitated.
In the embodiment of the disclosure, the mobile terminal is used as an auxiliary device, so that the rotation data of the steering wheel can be effectively detected, the structure of the steering wheel does not need to be modified, such as a sensor is added, and the additional modification cost is avoided.
In an optional aspect of the present disclosure, determining rotation data of a steering wheel based on initial direction data and current direction data includes:
the rotation data of the steering wheel is determined based on the amount of change of the current direction data compared to the initial direction data.
In the embodiment of the present disclosure, the current direction data is obtained after the mobile terminal rotates on the basis of the initial direction data, and therefore, the rotation data of the steering wheel can be determined based on the variation of the current direction data compared with the initial direction data.
Specifically, the rotation angle corresponding to the current direction data may be different from the rotation angle corresponding to the initial direction data, so as to obtain the rotation data of the steering wheel.
For example, the mobile terminal in the initial direction data is located on the clockwise side of the central axis of the steering wheel, and the included angle is 5 °, and then the initial direction data may be written as +5 ° of rotation angle. The mobile terminal is located on one clockwise side of the central axis of the steering wheel in the current direction data, the included angle is 15 degrees, and the current direction data can be recorded as +15 degrees of rotation angle. The rotation angle corresponding to the current direction data is differentiated from the rotation angle corresponding to the initial direction data to obtain the rotation data of the steering wheel, and the rotation angle is recorded as +10 °, which means that the mobile terminal rotates 10 ° clockwise compared with the initial state. In this example, the rotation angle in the clockwise direction may be denoted as a positive angle, denoted by "+" and the rotation angle in the counterclockwise direction may be denoted as a negative angle, denoted by "-".
In practical use, the current direction data of the mobile terminal in the rotating process along with the steering wheel can be detected for multiple times to obtain multiple current direction data, and the rotating direction of the mobile terminal is determined according to the variable quantity between adjacent current direction data.
In an optional mode of the present disclosure, the method further includes:
and sending the rotation data to the target terminal so that the target terminal generates a control instruction for the target application program based on the rotation data.
The target terminal may be a terminal device other than a mobile terminal fixed to a steering wheel, such as a vehicle-mounted terminal or another mobile terminal.
The target terminal may run a target application, and as an example, the target application may be an application of a car racing game, or an application simulating driving, and the like. In these applications, a user may need to operate the steering wheel through a device such as an operation handle, and in this example, the mobile terminal collects rotation data of the steering wheel, so as to generate a control instruction of a racing game application or a simulated driving application, thereby implementing a function similar to the operation handle based on the steering wheel, and expanding an application scene of the rotation data of the steering wheel.
The mobile terminal sends the rotation data to the target terminal, and the target terminal can generate a control instruction based on the rotation data for controlling the target application program. As an example, the target application is an application of a racing game, and the rotation data is 10 ° rotated clockwise compared to the initial time, and then a manipulation instruction for a virtual racing car in the racing game may be generated based on the rotation data, and used to control the driving direction of the virtual racing car to be 10 ° rotated clockwise compared to the initial time.
In an optional aspect of the present disclosure, transmitting the rotation data to the target terminal includes:
and transmitting the rotation data to the target terminal through Bluetooth connection or Wireless Fidelity (WiFi) connection.
In the embodiment of the present disclosure, since the mobile terminal rotates along with the steering wheel, in order to avoid affecting the normal rotation of the steering wheel, the mobile terminal and the target terminal may send the rotation data in a wireless communication connection manner, for example, in a bluetooth connection manner or a WiFi connection manner.
In an optional manner of the present disclosure, acquiring initial direction data of the mobile terminal includes:
detecting initial direction data of the mobile terminal through a direction sensor of the mobile terminal before the steering wheel is rotated;
the method for acquiring the current direction data of the mobile terminal in the rotating process along with the steering wheel comprises the following steps:
the current direction data of the mobile terminal in the rotating process along with the steering wheel is detected through a direction sensor of the mobile terminal.
In the embodiment of the present disclosure, the direction data may be detected based on the direction sensor of the mobile terminal. Specifically, the initial direction data may be detected by the direction sensor before the steering wheel is rotated, and the current direction data may be detected during the rotation of the steering wheel.
In an optional manner of the present disclosure, detecting initial direction data of a mobile terminal by a direction sensor of the mobile terminal includes:
detecting candidate direction data of the mobile terminal through a direction sensor of the mobile terminal;
and if the candidate direction data meet the preset direction condition, determining the candidate direction data as the initial direction data.
In the embodiment of the present disclosure, the initial direction data may be defined by setting a direction condition.
When the initial orientation of the mobile terminal is close to the middle axis of the steering wheel, the determination of the rotation data and the subsequent generation of the control instruction are facilitated, so that the direction condition can be set so that the initial orientation of the mobile terminal is close to the middle axis of the steering wheel. Specifically, the direction condition may be set such that an angle between an initial orientation of the mobile terminal and a central axis of the steering wheel is not greater than a preset value, for example, the preset value may be 10 °.
In the embodiment of the disclosure, after an application program for detecting steering wheel rotation data is started, direction data of a mobile terminal is acquired as candidate direction data, and then whether the candidate direction data meets a preset direction condition is determined; if the direction of the mobile terminal meets the preset direction condition, outputting prompt information at the mobile terminal to prompt a user to adjust the initial direction of the mobile terminal.
In an optional mode of the present disclosure, acquiring current direction data of the mobile terminal in a rotation process with a steering wheel includes:
and respectively acquiring current direction data of the mobile terminal in the rotating process along with the steering wheel according to a preset time interval.
In the embodiment of the present disclosure, a time interval may be set according to actual requirements, and the detection of the current direction data may be performed multiple times according to the time interval.
For example, when the rotation data is applied to generate a manipulation instruction of a racing game application program, since there is a certain requirement on the manipulation precision, a small time interval may be set for detecting the current direction data, for example, the time interval may be set to 0.01 s. Namely, one piece of rotation data is output every 0.01s, so that the target terminal can generate one control instruction every 0.01s, and the control precision of the virtual racing car is ensured.
Fig. 2 shows a schematic flow chart of another method for detecting steering wheel rotation data according to an embodiment of the present disclosure, and as shown in fig. 1, the method mainly includes:
step S210: detecting initial direction data of the mobile terminal through a direction sensor of the mobile terminal before the steering wheel is rotated;
step S220: the current direction data of the mobile terminal in the rotating process along with the steering wheel is detected through a direction sensor of the mobile terminal.
Step S230: determining rotation data of the steering wheel based on a variation of the current direction data compared to the initial direction data;
step S240: and sending the rotation data to the target terminal so that the target terminal generates a control instruction for the target application program based on the rotation data.
In the disclosed embodiment, the mobile terminal may be fixed on a steering wheel and rotate with the rotation of the steering wheel. The mobile terminal can be fixed to the steering wheel through a special bracket, and the fixing mode of the mobile terminal to the steering wheel is not limited in this example.
The direction data is used to indicate the direction in which the mobile terminal is facing, and the initial direction data may indicate the direction in which the mobile terminal is facing when not turned with the steering wheel, i.e. the direction in which the mobile terminal is facing when the mobile terminal is fixed to the mobile terminal and the steering wheel is not moved. The current direction data may represent a direction in which the mobile terminal is oriented during rotation with the steering wheel.
The mobile terminal may be preset with an application program for detecting steering wheel rotation data, and the application program may be started after the mobile terminal is fixed to the steering wheel, and the direction data of the mobile terminal may be acquired as initial direction data. In the process of the rear steering wheel rotation, the mobile terminal rotates along with the steering wheel, the direction data of the mobile terminal changes, and the direction data of the mobile terminal in the process of the rotation along with the steering wheel can be used as the current direction data.
In the embodiment of the present disclosure, the initial direction data and the current direction data may be represented in the form of a rotation angle, for example, an included angle between the initial direction data and a central axis of a steering wheel may be used as the rotation angle.
A mobile terminal such as a mobile phone is generally configured with a direction sensor, and in the embodiment of the present disclosure, the direction data may be detected based on the direction sensor of the mobile terminal. Specifically, the initial direction data may be detected by the direction sensor before the steering wheel is rotated, and the current direction data may be detected during the rotation of the steering wheel.
After the initial direction data and the current direction data are acquired, rotation data of the steering wheel may be determined based on the initial direction data and the current direction data. The rotation data of the steering wheel may also be expressed in the form of a rotation angle.
In the embodiment of the present disclosure, the current direction data is obtained after the mobile terminal rotates on the basis of the initial direction data, and therefore, the rotation data of the steering wheel can be determined based on the variation of the current direction data compared with the initial direction data.
Specifically, the rotation angle corresponding to the current direction data may be different from the rotation angle corresponding to the initial direction data, so as to obtain the rotation data of the steering wheel.
For example, the mobile terminal in the initial direction data is located on the clockwise side of the central axis of the steering wheel, and the included angle is 5 °, and then the initial direction data may be written as +5 ° of rotation angle. The mobile terminal is located on one clockwise side of the central axis of the steering wheel in the current direction data, the included angle is 15 degrees, and the current direction data can be recorded as +15 degrees of rotation angle. The rotation angle corresponding to the current direction data is differentiated from the rotation angle corresponding to the initial direction data to obtain the rotation data of the steering wheel, and the rotation angle is recorded as +10 °, which means that the mobile terminal rotates 10 ° clockwise compared with the initial state. In this example, the rotation angle in the clockwise direction may be denoted as a positive angle, denoted by "+", the rotation angle in the counterclockwise direction may be denoted as a negative angle, denoted by "-".
In actual use, current direction data of the mobile terminal in the rotating process along with the steering wheel is detected for multiple times to obtain multiple current direction data, and the rotating direction of the mobile terminal can be determined according to the variable quantity between adjacent current direction data.
In the embodiment of the present disclosure, the target terminal may be a terminal device other than a mobile terminal fixed to a steering wheel, such as a vehicle-mounted terminal or another mobile terminal.
The target terminal may run a target application, and as an example, the target application may be an application of a car racing game, or an application simulating driving, and the like. In these applications, a user may need to operate the steering wheel through a device such as an operation handle, and in this example, the mobile terminal collects rotation data of the steering wheel, so as to generate a control instruction of a racing game application or a simulated driving application, thereby implementing a function similar to the operation handle based on the steering wheel, and expanding an application scene of the rotation data of the steering wheel.
The mobile terminal sends the rotation data to the target terminal, and the target terminal can generate a control instruction based on the rotation data and is used for controlling the target application program. As an example, the target application is an application of a racing game, and the rotation data is 10 ° rotated clockwise compared to the initial time, and then a manipulation instruction for a virtual racing car in the racing game may be generated based on the rotation data, and used to control the driving direction of the virtual racing car to be 10 ° rotated clockwise compared to the initial time.
According to the method provided by the embodiment of the disclosure, the initial direction data of the mobile terminal before the steering wheel rotates is detected through the direction sensor of the mobile terminal, the current direction data of the mobile terminal in the rotating process along with the steering wheel is detected through the direction sensor of the mobile terminal, so that the rotating data of the steering wheel is determined based on the variation of the current direction data compared with the initial direction data, and the rotating data is sent to the target terminal, so that the target terminal generates the control instruction of the target application program based on the rotating data. Based on the scheme, the rotation data of the steering wheel can be effectively determined through the mobile terminal, so that the rotation data of the steering wheel can be conveniently output and provided for a target terminal for subsequent use.
In the embodiment of the disclosure, the mobile terminal is used as an auxiliary device, so that the rotation data of the steering wheel can be effectively detected, the structure of the steering wheel does not need to be modified, such as a sensor is added, and the additional modification cost is avoided.
Based on the same principle as the method shown in fig. 1, fig. 3 shows a schematic structural diagram of a device for detecting steering wheel rotation data provided by an embodiment of the present disclosure, and as shown in fig. 3, the device 30 for detecting steering wheel rotation data may include:
an initial direction data obtaining module 310, configured to obtain initial direction data of a mobile terminal, where the mobile terminal is fixed to a steering wheel;
a current direction data obtaining module 320, configured to obtain current direction data of the mobile terminal in a rotating process with a steering wheel;
and a rotation data obtaining module 330 for determining rotation data of the steering wheel based on the initial direction data and the current direction data.
According to the device provided by the embodiment of the disclosure, the mobile terminal is fixed on the steering wheel, the initial direction data of the mobile terminal is obtained, the current direction data of the mobile terminal in the rotating process along with the steering wheel is obtained, and therefore the rotating data of the steering wheel is determined based on the initial direction data and the current direction data. Based on the scheme, the rotation data of the steering wheel can be effectively determined through the mobile terminal, and the subsequent use of the rotation data of the steering wheel is facilitated.
Optionally, the rotation data acquiring module is specifically configured to:
the rotation data of the steering wheel is determined based on the amount of change of the current direction data compared to the initial direction data.
Optionally, the apparatus further comprises:
and the rotation data output module is used for sending the rotation data to the target terminal so that the target terminal generates a control instruction for the target application program based on the rotation data.
Optionally, when the rotation data output module sends the rotation data to the target terminal, the rotation data output module is specifically configured to:
and transmitting the rotation data to the target terminal through Bluetooth connection or WiFi connection.
Optionally, the initial direction data obtaining module is specifically configured to:
detecting initial direction data of the mobile terminal through a direction sensor of the mobile terminal before the steering wheel is rotated;
the current direction data acquisition module is specifically configured to:
the current direction data of the mobile terminal in the rotating process along with the steering wheel is detected through a direction sensor of the mobile terminal.
Optionally, the initial direction data acquiring module is specifically configured to, when detecting the initial direction data of the mobile terminal through a direction sensor of the mobile terminal:
detecting candidate direction data of the mobile terminal through a direction sensor of the mobile terminal;
and if the candidate direction data meet the preset direction condition, determining the candidate direction data as the initial direction data.
Optionally, the current direction data obtaining module is specifically configured to:
and respectively acquiring current direction data of the mobile terminal in the rotating process along with the steering wheel according to a preset time interval.
It is understood that the above modules of the detection device of steering wheel rotation data in the embodiment of the present disclosure have functions of implementing the corresponding steps of the detection method of steering wheel rotation data in the embodiment shown in fig. 1. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the above detection device for the steering wheel rotation data, reference may be specifically made to the corresponding description of the detection method for the steering wheel rotation data in the embodiment shown in fig. 1, and details are not repeated here.
Based on the same principle as the method shown in fig. 2, fig. 4 shows a schematic structural diagram of another detection device for steering wheel rotation data provided by the embodiment of the present disclosure, and as shown in fig. 4, the detection device 40 for steering wheel rotation data may include:
an initial direction data obtaining module 410, configured to detect initial direction data of the mobile terminal through a direction sensor of the mobile terminal before the steering wheel is turned;
and a current direction data acquiring module 420, configured to detect current direction data of the mobile terminal in a rotating process with the steering wheel through a direction sensor of the mobile terminal.
A rotation data obtaining module 430, configured to determine rotation data of the steering wheel based on a variation of the current direction data compared to the initial direction data;
and the rotation data output module 440 is configured to send the rotation data to the target terminal, so that the target terminal generates a control instruction for the target application program based on the rotation data.
According to the device provided by the embodiment of the disclosure, the initial direction data of the mobile terminal before the steering wheel rotates is detected through the direction sensor of the mobile terminal, the current direction data of the mobile terminal in the rotating process along with the steering wheel is detected through the direction sensor of the mobile terminal, so that the rotating data of the steering wheel is determined based on the variable quantity of the current direction data compared with the initial direction data, and the rotating data is sent to the target terminal, so that the target terminal generates the control instruction of the target application program based on the rotating data. Based on the scheme, the rotation data of the steering wheel can be effectively determined through the mobile terminal, so that the rotation data of the steering wheel can be conveniently output and provided for a target terminal for subsequent use.
It is understood that the above modules of the device for detecting steering wheel rotation data in the embodiment of the present disclosure have functions of implementing the corresponding steps of the method for detecting steering wheel rotation data in the embodiment shown in fig. 2. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules may be software and/or hardware, and each module may be implemented separately or implemented by integrating a plurality of modules. For the functional description of each module of the above detection device for the steering wheel rotation data, reference may be specifically made to the corresponding description of the detection method for the steering wheel rotation data in the embodiment shown in fig. 2, and details are not repeated here.
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
The electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for detecting steering wheel rotation data according to the embodiment of the disclosure.
Compared with the prior art, the electronic equipment has the advantages that the mobile terminal is fixed on the steering wheel, the initial direction data of the mobile terminal are obtained, the current direction data of the mobile terminal in the rotating process along with the steering wheel are obtained, and therefore the rotating data of the steering wheel are determined based on the initial direction data and the current direction data. Based on the scheme, the rotation data of the steering wheel can be effectively determined through the mobile terminal, and the subsequent use of the rotation data of the steering wheel is facilitated.
The readable storage medium is a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform a method for detecting steering wheel rotation data as provided by an embodiment of the present disclosure.
Compared with the prior art, the readable storage medium obtains initial direction data of the mobile terminal by fixing the mobile terminal on the steering wheel, obtains current direction data of the mobile terminal in the rotating process along with the steering wheel, and accordingly determines rotating data of the steering wheel based on the initial direction data and the current direction data. Based on the scheme, the rotation data of the steering wheel can be effectively determined through the mobile terminal, and the subsequent use of the rotation data of the steering wheel is facilitated.
The computer program product comprises a computer program which, when executed by a processor, implements the method of detecting steering wheel rotation data as provided by embodiments of the present disclosure.
Compared with the prior art, the computer program product has the advantages that the mobile terminal is fixed on the steering wheel, the initial direction data of the mobile terminal is obtained, the current direction data of the mobile terminal in the rotating process along with the steering wheel is obtained, and therefore the rotating data of the steering wheel is determined based on the initial direction data and the current direction data. Based on the scheme, the rotation data of the steering wheel can be effectively determined through the mobile terminal, and the subsequent use of the rotation data of the steering wheel is facilitated.
Fig. 5 illustrates a schematic block diagram of an example electronic device 2000, which may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the electronic device 2000 includes a computing unit 2010, which may perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)2020 or a computer program loaded from a storage unit 2080 into a Random Access Memory (RAM) 2030. In the RAM 2030, various programs and data required for the operation of the device 2000 can be also stored. The computing unit 2010, ROM 2020, and RAM 2030 are coupled to each other via bus 2040. An input/output (I/O) interface 2050 is also connected to bus 2040.
Various components in device 2000 are connected to I/O interface 2050, including: an input unit 2060 such as a keyboard, a mouse, or the like; an output unit 2070 such as various types of displays, speakers, and the like; a storage unit 2080 such as a magnetic disk, an optical disk, and the like; and a communication unit 2090, such as a network card, modem, wireless communication transceiver, etc. The communication unit 2090 allows the device 2000 to exchange information/data with other devices over a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 2010 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 2010 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The computing unit 2010 executes the detection method of steering wheel rotation data provided in the embodiment of the present disclosure. For example, in some embodiments, the detection methods for performing steering wheel rotation data provided in embodiments of the present disclosure may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 2080. In some embodiments, part or all of the computer program may be loaded onto and/or installed onto the device 2000 via the ROM 2020 and/or the communication unit 2090. When the computer program is loaded into RAM 2030 and executed by computing unit 2010, one or more steps of the detection method of steering wheel rotation data provided in the embodiments of the present disclosure may be performed. Alternatively, in other embodiments, the computing unit 2010 may be configured in any other suitable manner (e.g., by way of firmware) to perform the detection methods of steering wheel rotation data provided in the disclosed embodiments.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (17)

1. A method for detecting steering wheel rotation data, comprising:
acquiring initial direction data of a mobile terminal, wherein the mobile terminal is fixed on a steering wheel;
acquiring current direction data of the mobile terminal in the rotating process along with the steering wheel;
determining rotation data of the steering wheel based on the initial direction data and the current direction data.
2. The method of claim 1, the determining rotation data for the steering wheel based on the initial direction data and the current direction data, comprising:
determining rotation data of the steering wheel based on an amount of change in the current direction data compared to the initial direction data.
3. The method of claim 1 or 2, further comprising:
and sending the rotation data to a target terminal so that the target terminal generates a control instruction for a target application program based on the rotation data.
4. The method of claim 3, wherein the transmitting the rotation data to a target terminal comprises:
and transmitting the rotation data to a target terminal through Bluetooth connection or wireless fidelity WiFi connection.
5. The method according to any of claims 1-4, wherein the obtaining initial orientation data of the mobile terminal comprises:
detecting initial direction data of a mobile terminal through a direction sensor of the mobile terminal before a steering wheel is turned;
the acquiring current direction data of the mobile terminal in the rotating process along with the steering wheel comprises:
and detecting current direction data of the mobile terminal in the rotating process along with the steering wheel through a direction sensor of the mobile terminal.
6. The method of claim 5, wherein the detecting initial orientation data of the mobile terminal by an orientation sensor of the mobile terminal comprises:
detecting candidate direction data of a mobile terminal through a direction sensor of the mobile terminal;
and if the candidate direction data meet the preset direction condition, determining the candidate direction data as initial direction data.
7. The method according to any one of claims 1-6, wherein the obtaining current direction data of the mobile terminal during rotation with the steering wheel comprises:
and respectively acquiring current direction data of the mobile terminal in the rotating process along with the steering wheel according to a preset time interval.
8. A steering wheel rotation data detecting device, comprising:
the system comprises an initial direction data acquisition module, a steering wheel and a data processing module, wherein the initial direction data acquisition module is used for acquiring initial direction data of a mobile terminal, and the mobile terminal is fixed on the steering wheel;
the current direction data acquisition module is used for acquiring current direction data of the mobile terminal in the rotating process along with the steering wheel;
and the rotation data acquisition module is used for determining the rotation data of the steering wheel based on the initial direction data and the current direction data.
9. The apparatus of claim 8, wherein the rotational data acquisition module is specifically configured to:
determining rotation data of the steering wheel based on an amount of change in the current direction data compared to the initial direction data.
10. The apparatus of claim 8 or 9, further comprising:
and the rotation data output module is used for sending the rotation data to a target terminal so that the target terminal generates a control instruction for a target application program based on the rotation data.
11. The apparatus according to claim 10, wherein the rotation data output module, when sending the rotation data to the target terminal, is specifically configured to:
and transmitting the rotation data to a target terminal through Bluetooth connection or wireless fidelity WiFi connection.
12. The apparatus according to any one of claims 8 to 11, wherein the initial direction data acquisition module is specifically configured to:
detecting initial direction data of a mobile terminal through a direction sensor of the mobile terminal before a steering wheel is turned;
the current direction data acquisition module is specifically configured to:
and detecting current direction data of the mobile terminal in the rotating process along with the steering wheel through a direction sensor of the mobile terminal.
13. The apparatus according to claim 12, wherein the initial direction data acquiring module, when detecting the initial direction data of the mobile terminal through a direction sensor of the mobile terminal, is specifically configured to:
detecting candidate direction data of a mobile terminal through a direction sensor of the mobile terminal;
and if the candidate direction data meet the preset direction condition, determining the candidate direction data as initial direction data.
14. The apparatus according to any one of claims 8 to 13, wherein the current direction data obtaining module is specifically configured to:
and respectively acquiring current direction data of the mobile terminal in the rotating process along with the steering wheel according to a preset time interval.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
CN202111632427.XA 2021-12-28 2021-12-28 Detection method and device for steering wheel rotation data and electronic equipment Withdrawn CN114486282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111632427.XA CN114486282A (en) 2021-12-28 2021-12-28 Detection method and device for steering wheel rotation data and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111632427.XA CN114486282A (en) 2021-12-28 2021-12-28 Detection method and device for steering wheel rotation data and electronic equipment

Publications (1)

Publication Number Publication Date
CN114486282A true CN114486282A (en) 2022-05-13

Family

ID=81496396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111632427.XA Withdrawn CN114486282A (en) 2021-12-28 2021-12-28 Detection method and device for steering wheel rotation data and electronic equipment

Country Status (1)

Country Link
CN (1) CN114486282A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202078735U (en) * 2011-03-11 2011-12-21 陈春明 Multifunctional steering wheel for automobile race game console
KR101468435B1 (en) * 2013-12-09 2014-12-04 정종락 Attachable toy apparatus for shopping cart
KR20150063207A (en) * 2013-11-29 2015-06-09 한남대학교 산학협력단 Device and method for providing game pad in mobile terminal
WO2021012850A1 (en) * 2019-07-19 2021-01-28 腾讯科技(深圳)有限公司 Prompt information sending method and apparatus in multiplayer online battle program, and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202078735U (en) * 2011-03-11 2011-12-21 陈春明 Multifunctional steering wheel for automobile race game console
KR20150063207A (en) * 2013-11-29 2015-06-09 한남대학교 산학협력단 Device and method for providing game pad in mobile terminal
KR101468435B1 (en) * 2013-12-09 2014-12-04 정종락 Attachable toy apparatus for shopping cart
WO2021012850A1 (en) * 2019-07-19 2021-01-28 腾讯科技(深圳)有限公司 Prompt information sending method and apparatus in multiplayer online battle program, and terminal

Similar Documents

Publication Publication Date Title
CN112802325A (en) Vehicle queuing length detection method and device
CN114417780B (en) State synchronization method and device, electronic equipment and storage medium
CN114312843A (en) Method and apparatus for determining information
CN114486282A (en) Detection method and device for steering wheel rotation data and electronic equipment
CN116628997A (en) Method, device, equipment, medium and system for determining damping value of shock absorber
CN115628754A (en) Odometer initialization method and device, electronic equipment and automatic driving vehicle
CN110728721B (en) Method, device and equipment for acquiring external parameters
CN114088106A (en) Automatic driving path planning method and device, electronic equipment and readable storage medium
CN114386577A (en) Method, apparatus, and storage medium for executing deep learning model
CN113468423A (en) Information recommendation method and device for vehicle, vehicle and electronic equipment
CN115158459A (en) Rear wheel steering angle control method, device, equipment and computer readable storage medium
CN114954654B (en) Calculation method, control method and device for zero offset compensation angle of steering wheel of vehicle
EP3905654A1 (en) Method and apparatus for detecting echo delay and electronic device
CN111013147B (en) Method and device for rendering effect of double-wheel carrier, storage medium and electronic equipment
CN114118356B (en) Neural network processor verification method and device, electronic equipment and storage medium
CN116161042A (en) Steering wheel holding state detection method, device, vehicle and storage medium
CN113753065B (en) Method and equipment for remotely controlling vehicle running in automatic driving and cloud control cabin
CN114084168B (en) Automatic driving system control method, device, electronic equipment and readable storage medium
CN116301992A (en) Upgrading method, device, equipment and storage medium
CN117539602A (en) Method and device for task speculation behind, electronic equipment and storage medium
CN116620400A (en) Rear wheel steering control method and device, target controller and storage medium
CN117130859A (en) Vehicle operation data extraction method and device, electronic equipment and readable storage medium
CN115437343A (en) Vehicle ECU awakening detection method and device, domain controller and vehicle
CN113865610A (en) Method, apparatus, device, medium and product for generating navigation information
CN112683216A (en) Method and device for generating vehicle length information, road side equipment and cloud control platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20220513

WW01 Invention patent application withdrawn after publication