WO2021082984A1 - Vehicle control method, electronic device and storage medium - Google Patents

Vehicle control method, electronic device and storage medium Download PDF

Info

Publication number
WO2021082984A1
WO2021082984A1 PCT/CN2020/122174 CN2020122174W WO2021082984A1 WO 2021082984 A1 WO2021082984 A1 WO 2021082984A1 CN 2020122174 W CN2020122174 W CN 2020122174W WO 2021082984 A1 WO2021082984 A1 WO 2021082984A1
Authority
WO
WIPO (PCT)
Prior art keywords
steering
signal
game
vehicle
torque
Prior art date
Application number
PCT/CN2020/122174
Other languages
French (fr)
Chinese (zh)
Inventor
杨钊
钟益林
吴春芬
石为利
蔡腾龙
Original Assignee
比亚迪股份有限公司
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 比亚迪股份有限公司 filed Critical 比亚迪股份有限公司
Publication of WO2021082984A1 publication Critical patent/WO2021082984A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/24Constructional details thereof, e.g. game controllers with detachable joystick handles
    • A63F13/245Constructional details thereof, e.g. game controllers with detachable joystick handles specially adapted to a particular type of game, e.g. steering wheels
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • A63F13/422Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle automatically for the purpose of assisting the player, e.g. automatic braking in a driving game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/803Driving vehicles or craft, e.g. cars, airplanes, ships, robots or tanks
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1062Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to a type of game, e.g. steering wheel

Definitions

  • the present disclosure relates to the field of vehicle technology, and in particular to a vehicle and a vehicle control method, electronic equipment and storage medium.
  • the mobile phone when an in-vehicle game is played in a vehicle, the mobile phone is generally used as the control terminal of the game to realize the control of the in-vehicle game.
  • this control method is difficult to bring an immersive experience to the user, which greatly reduces the experience fun and convenience of game control, and reduces the user's game experience.
  • the present disclosure proposes a vehicle and a vehicle control method, electronic equipment, and storage medium.
  • An embodiment of the first aspect of the present disclosure proposes a vehicle control method, including the following steps: acquiring a steering signal currently output by a steering system on the vehicle, where the steering signal includes at least one of a torque signal and a rotation angle signal; acquiring The changing trend of the steering signal, wherein the changing trend is used to indicate that the steering system is away from or returning to a reference position; according to the changing trend and the steering signal, the controlled object in the vehicle-mounted game is controlled to perform actions.
  • the vehicle control method of the embodiment of the present disclosure it is possible to obtain the steering signal currently output by the steering system on the vehicle, and obtain the changing trend of the steering signal, and control the in-vehicle game according to the changing trend and the steering signal.
  • the accused object performs an action. Therefore, by making full use of the steering signal and the change trend of the steering signal, the execution action control of the on-board game is realized, and precise control is achieved without changing the original equipment of the vehicle. It conforms to some operating habits of the game, and not only greatly increases the user's experience in the game. The control experience is fun and convenient, and it improves the user's gaming experience.
  • An embodiment of the second aspect of the present disclosure proposes an electronic device, including a memory and a processor; wherein the processor reads the executable program code stored in the memory to run the executable program code corresponding to the executable program code.
  • the program is used to implement the above-mentioned vehicle control method.
  • An embodiment of the third aspect of the present disclosure proposes a computer-readable storage medium that stores a computer program that, when executed by a processor, implements the above-mentioned vehicle control method.
  • Fig. 1 is a flowchart of a vehicle control method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of obtaining a steering signal currently output by a steering system on a vehicle according to an embodiment of the present disclosure
  • Fig. 3 is a flowchart of a vehicle control method according to a specific embodiment of the present disclosure
  • FIG. 4 is a flowchart of a torque applied to the left corresponding to a left turn in a racing game according to an embodiment of the present disclosure
  • Fig. 5 is a flow chart of applying a torque to the right corresponding to a right turn in a racing game according to an embodiment of the present disclosure
  • FIG. 6 is a flowchart of the change of the corner signal corresponding to the left turn of the racing game when the steering wheel is turned left according to an embodiment of the present disclosure
  • FIG. 7 is a flow chart of the change of the corner signal corresponding to the left turn of the racing game when the steering wheel is turned right according to an embodiment of the present disclosure
  • Fig. 8 is a control setting diagram of a racing game according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of a comparison of the relationship between the steering mode corresponding to the button mode of the racing game and the real car steering mode according to an embodiment of the present disclosure
  • Fig. 10 is a flowchart of a vehicle control method according to a specific embodiment of the present disclosure.
  • FIG. 11 is a flowchart of a vehicle control method according to another specific embodiment of the present disclosure.
  • Fig. 12 is a schematic block diagram of an electronic device according to an embodiment of the present disclosure.
  • Fig. 1 is a flowchart of a vehicle control method according to an embodiment of the present disclosure. As shown in Figure 1, the vehicle control method includes:
  • the steering signal output by the steering system may include a steering angle signal, or a torque signal, or a steering angle signal and a torque signal.
  • the information of the steering system can be obtained through the torque sensor (Torque and Angle Sensor, TAS) attached to the vehicle steering system, or the torque sensor (Torque Only Sensor, TOS), or the steering angle sensor (SAS).
  • TAS Torque and Angle Sensor
  • TOS Torque Only Sensor
  • SAS steering angle sensor
  • EPS Electronic Power Stability
  • ESP Electronic Stability Program
  • ESP Electronic Stability Program
  • Fig. 2 is a flowchart of obtaining a steering signal currently output by a steering system on a vehicle according to an embodiment of the present disclosure.
  • step S1 includes:
  • S201 Obtain a steering angle signal or a torque signal of the steering system through the TAS/TOS/SAS attached to the steering system of the vehicle.
  • S202 Collect the corner signal and torque signal through EPS/ESP.
  • the vehicle can judge whether to collect the corner signal and torque signal through EPS/ESP according to the actual situation.
  • S203 Transmit the corner signal and the torque signal to the vehicle-mounted game terminal through a CAN bus or a LIN line.
  • the embodiment of the present disclosure can determine whether to transmit the corner signal and the torque signal to the vehicle-mounted game terminal by combining with the actual network topology of the vehicle.
  • the reference position may be the position when the steering wheel of the vehicle is in the middle position and the tires are in the front position (or the steering wheel is in a free state), and the changing trend of the steering signal may be the changing trend of the turning angle signal or the torque signal, such as According to the change trend of the turning angle signal, it is judged that the change trend is from straight to left, from straight to right (steering system is far from the reference position), from right to straight, etc. (steering system returns to the reference position).
  • S3 Control the controlled object in the car game to perform actions according to the change trend and the turn signal.
  • the embodiments of the present disclosure may be preset with control standards corresponding to the steering direction and the steering offset, so as to identify the steering direction of the steering system based on the acquired steering signal currently output by the steering system on the vehicle. And the steering offset, and then according to the steering direction and steering offset, control the controlled object in the car game to perform actions.
  • the steering signal is the torque
  • the steering offset is the specific value of the torque
  • the reference position is the position where the torque is 0
  • the steering signal is the turning angle
  • the steering offset is the size of the turning angle
  • the reference position is the steering wheel return. Positive position.
  • the steering wheel when the vehicle is parked on a flat road, the steering wheel can rotate freely, and the on-board game terminal can obtain the current steering signal output by the steering system on the vehicle, and then go through the built-in application or the bottom layer corresponding to the development of the on-board game terminal.
  • the driver maps the turning angle or torque signal that changes when the user turns the steering wheel into input event instructions corresponding to the left and right steering actions in the car racing game or other types of games such as left and right movement and rotation.
  • the vehicle control method of the embodiment of the present disclosure is also applicable to other vehicle-mounted games, such as left-to-right movement or left-to-right rotation in Tetris games, and left-to-right card selection corresponding to chess and card games. In order to avoid redundancy, This will not be repeated in detail.
  • the steering signal currently output by the steering system on the vehicle is obtained, and the steering direction and steering offset of the steering system are identified according to the steering signal, and the steering direction and steering offset are identified according to the steering direction and steering offset.
  • Fig. 3 is a flowchart of a vehicle control method according to a specific embodiment of the present disclosure. As shown in Figure 3, the method includes:
  • S301 Acquire a steering signal currently output by the steering system on the vehicle, where the steering signal includes at least one of a torque signal and a steering angle signal.
  • the steering angle signal or torque signal of the steering system can be obtained through the TAS/TOS/SAS attached to the vehicle steering system.
  • S302 Obtain a change trend of the steering signal, where the change trend is used to characterize that the steering system moves away from or returns to a reference position.
  • the change trend of the steering signal may be a change trend of a corner signal or a torque signal, for example, it is judged whether the change trend is a left turn or a right turn according to the change trend of the corner signal.
  • the vehicle when it is recognized that the changing trend of the corner signal is turning left, the vehicle can change from straight to left turning, that is, the steering system is in the first state away from the reference position; when the changing trend of the turning angle signal is recognized as turning right, the vehicle It can change from going straight to turning right, that is, the steering system is also in the first state away from the reference position.
  • S304 Identify the steering direction and steering offset of the steering system according to the steering signal.
  • the steering direction and steering offset of the steering system can be identified based on the steering angle signal or torque signal.
  • the steering direction can be determined according to the steering angle signal or the torque signal. If the steering angle signal is a left turn signal, the steering is a left turn, and a mapping relationship between the steering offset and the torque signal (torque) can also be preset.
  • the steering offset of the steering system can be obtained by querying the mapping relationship.
  • the embodiment of the present disclosure can be based on the steering direction and steering offset of the steering system.
  • the amount of movement generates the first type of action instruction of the controlled object, where the first type of action instruction can be a left turn instruction or a right turn instruction.
  • the controlled object is jointly controlled by the change trend, the steering direction, and the magnitude of the steering offset, so as to generate action instructions more accurately, thereby more accurately control the steering of the controlled object, and improve the accuracy of steering.
  • the CAN signal is taken as an example to illustrate the specific application rules.
  • the CAN torque signal message is of periodic type.
  • the torque signal can be a signed signal.
  • the corresponding torque signal is 0Nm (actually due to assembly errors, about 0Nm is a positive or negative value) .
  • the torque signal value will change with the change of the user's force on the steering wheel.
  • the torque signal value is positive when the user applies the torque to the left and the torque signal value is negative when the torque is applied to the right.
  • the turning angle signal can be a signed signal. After the corresponding turning angle signal is calibrated and centered on the vehicle through the zero point, the turning angle value is 0° when the steering wheel of the vehicle is in the middle position and the tire is in the front position (actually due to assembly errors, approximately Positive and negative values near 0°), where the steering wheel can be automatically returned to the right through the EPS system motor or the user's hand-feeling simulator motor in the steering-by-wire system, or it can be returned manually by the user.
  • the angle signal value When the steering wheel turns left and right, facing the steering wheel, the steering wheel counterclockwise steering direction is left, clockwise is right, the angle signal value will change with the left and right rotation angle of the steering wheel, when the steering wheel is turned to the left based on the zero value, the angle signal value is Positive, when turning to the right, the corner signal value is negative (refer to ISO8855, the positive value of the corner signal indicates the direction to the left, and the negative value indicates the direction to the right). Specifically, the left and right steering and the corresponding relationship between positive and negative can be determined according to the actual situation. Adjustment.
  • the vehicle-mounted game terminal can map the received positive and negative torque signals (or positive and negative corner signals) to the left turn instruction or right turn instruction required by the racing game, and the vehicle-mounted game terminal performs the corresponding relationship to the left.
  • the vehicle-mounted game terminal When turning the steering wheel to the left (or turning the steering wheel to the left), it can support the "turn left” action, and when applying a torque to the right (or turning the steering wheel to the right), it can support the "turning to the right” action.
  • the torque signal because the user needs to hold his hand on the steering wheel, the steering wheel will receive a small applied torque value.
  • the torque value is within a certain range around the positive and negative values of 0Nm, which is approximately equivalent to that the steering wheel is already in a free state.
  • the steering angle value since it is difficult for the user to maintain the steering wheel at the neutral position zero, it can be specified that the steering angle value within a certain range around the zero point can be approximately equivalent to the steering wheel having returned to the neutral zero position.
  • Fig. 4 is a flowchart of a torque applied to the left corresponding to a left turn in a racing game according to an embodiment of the present disclosure. As shown in Figure 4, according to the steering direction and steering offset of the steering system, generating an action command for the controlled object includes the following steps:
  • Game TorquePressLeft can be the left turn pressing torque value, and can be combined with the direction control needs of different users to support adjustment, thereby improving the user experience.
  • Fig. 5 is a flow chart of torque applied to the right corresponding to a right turn in a racing game according to an embodiment of the present disclosure. As shown in Figure 5, according to the steering direction and steering offset of the steering system, generating the action command of the controlled object includes the following steps:
  • step S502 Determine whether the torque signal value is less than or equal to Game TorquePressRight, if yes, perform step S504, otherwise, perform step S503.
  • Game TorquePressRight can be the right-turn pressing torque value, and can be combined with the direction control needs of different users to support adjustment, thereby improving the user experience.
  • Fig. 6 is a flow chart of the change of the corner signal corresponding to the left turn of the racing game when the steering wheel is turned left according to an embodiment of the present disclosure.
  • generating the action command of the controlled object includes the following steps:
  • the steering wheel is turned to the left based on the middle position, and the corner signal value is collected through the on-board game terminal.
  • step S602 Determine whether the turning angle signal value is greater than or equal to Game Angle PressLeft, if yes, perform step S604, otherwise, perform step S603.
  • Game Angle PressLeft is the left turn press corner value, which can be adjusted according to the direction control needs of different users, so as to meet user needs and improve user experience.
  • FIG. 7 is a flow chart of the change of the corner signal corresponding to the right turn of the racing game when the steering wheel is turned right according to an embodiment of the present disclosure.
  • generating the action command of the controlled object includes the following steps:
  • the steering wheel is turned to the right based on the intermediate position, and the corner signal value is collected through the on-board game terminal.
  • step S702 Determine whether the turning angle signal value is less than or equal to Game Angle Press Right, if yes, perform step S704, otherwise, perform step S703.
  • Game Angle PressRight is the right turn press corner value, which can be adjusted according to the direction control needs of different users, so as to meet user needs and improve user experience.
  • the control of the racing game can include three types of steering control methods: somatosensory mode (ie, gravity-sensing steering), steering wheel mode, and button mode (single-sided/double-sided).
  • button mode used for the car control
  • the corresponding analytical relationship between the positive and negative torque signal (positive and negative corner signal) and the left and right steering event triggering in the racing game using the virtual button (or the left and right area of the screen) touch control method can be as follows:
  • Game TorquePressLeft the left steering command of the racing game is continuously activated, and the car continues to steer to the left, that is, the virtual key of the racing left turn is continuously touched;
  • the torque signal value is less than or equal to Game TorquePressRight
  • the right steering command of the racing game is continuously activated, and the car continues to steer to the right, that is, the virtual button of the racing right turn is continuously touched;
  • corner signal value is greater than or equal to Game Angle PressLef
  • the car keeps turning to the left, that is, the virtual button of the car turning left is continuously touched; whether the corner signal value is less than or equal to the Game Angle PressRight, the racing game's right turn command is continuously activated, and the car keeps turning to the right, that is, the car turns right virtual The button is continuously touched.
  • Fig. 9 is a comparison diagram of the relationship between the steering mode corresponding to the button mode of the racing game and the real car steering mode according to an embodiment of the present disclosure.
  • Figure 9(a) is a schematic diagram when the vehicle is driving straight
  • Figure 9(b) is a schematic diagram of controlling the steering of the vehicle through the racing game button mode (steering wheel)
  • Figure 9(c) is a schematic diagram of turning the vehicle through a real vehicle .
  • the method before generating the first-type action instruction of the controlled object, the method further includes: determining that the steering offset reaches the first preset threshold.
  • a first preset threshold can be preset, and only when the steering offset of the steering system reaches the first preset threshold (Game Torque Press Left), the first type of action of the controlled object is generated Command to realize the steering of the car, effectively improve the accuracy and accuracy of judging the steering, reduce the error caused by the shaking of the experiencer, and improve the experience of the game.
  • the controlled object is controlled to execute the second type of action instruction.
  • the controlled object as a racing car as an example, assuming that the current car is driving straight, if the detected steering offset does not reach the first preset threshold, it means that the steering offset may be caused by the shaking of the experiencer. , Do not control the vehicle to turn, keep the car going straight, that is, control the controlled object to execute the second type of action command.
  • the first preset threshold can be set according to actual conditions, which is not specifically limited here.
  • the above-mentioned vehicle control method further includes: according to the changing trend, identifying that the steering system is in a second state of gradually returning to the reference position; generating the controlled steering system according to the steering direction and steering offset of the steering system.
  • the second type of action instruction for the object is not limited to: identifying that the steering system is in a second state of gradually returning to the reference position; generating the controlled steering system according to the steering direction and steering offset of the steering system.
  • the embodiments of the present disclosure can also determine whether the steering system gradually returns to the reference position according to the change trend of the steering signal, so as to generate the second type of action command for the controlled object according to the steering direction and steering offset of the steering system. . That is, when it is recognized that the change trend of the steering signal of the car is gradually returning to the reference position, the car is controlled to drive in a straight line.
  • the method before generating the second-type action instruction of the controlled object, the method further includes: determining that the steering offset returns to the second preset threshold.
  • the left steering command is continuously suppressed, and the racing car keeps driving in a straight line.
  • the second preset threshold can also be set according to actual conditions, which is not specifically limited here.
  • Game Torque Release Right when the user releases the torque value of the right steering wheel until the torque signal collected by the on-board game terminal is greater than or equal to the right-turn release torque value (Game Torque Release Right), the right steering command of the racing game is continuously suppressed and the car keeps driving straight.
  • the above-mentioned vehicle control method further includes: recognizing that the steering offset has not returned to a second preset threshold, then controlling the controlled object to execute the first type of action instruction.
  • the torque signal to control the left turn as an example, when the user releases the torque value of the left steering wheel until the torque signal collected by the on-board game terminal is not less than or equal to the left turn release torque (Game Torque Release Left), that is, steering deviation
  • Game Torque Release Left that is, steering deviation
  • the left steering command of the racing game is not suppressed, and the controlled object is controlled to execute the first type of action command, that is, the car is controlled to keep turning left, so as to avoid misjudgment leading to steering deviation
  • the controlled object is controlled to execute the second type of action instruction, and the user experience is improved.
  • the first preset threshold is Game Angle PressLeft
  • the first preset threshold is Game Angle PressLeft
  • the second preset threshold is Game Angle ReleaseLeft
  • the first preset threshold is Game Angle ReleaseLeft
  • the preset threshold is GameAnglePressRight, approaching the reference position from the right, and the second preset threshold is GameAngleReleaseRight;
  • the first preset threshold value is Game Torque PressLeft
  • the second preset threshold value is Game Torque ReleaseLeft
  • the first preset threshold value is Game Torque ReleaseLeft
  • rightward away from the reference position the first The preset threshold is Game Torque PressRight, approaching the reference position from the right
  • the second preset threshold is Game Torque ReleaseRight
  • the first preset threshold is Game Angle PressLeft and Game Torque PressLeft
  • the second preset threshold is Game Angle ReleaseLeft or Game Torque ReleaseLeft
  • the first preset threshold is Game Angle PressRight and Game Torque PressRight
  • the second preset threshold is Game Angle ReleaseRight or Game Torque ReleaseRight.
  • the values of the first preset threshold and the second preset threshold in the embodiments of the present disclosure may be different, so that shaking of the steering wheel can be effectively avoided, and user experience can be improved.
  • the above-mentioned vehicle control method further includes: according to the change trend, identifying that the steering system is switched from the second state to the first state; detecting and identifying that the steering offset reaches the first preset threshold, then Control the controlled object to switch from executing the second type of action instruction to executing the first type of action instruction.
  • the first state can be a state in which the steering system continues to move away from the reference position
  • the second state can be a state in which the steering system is gradually returning to the reference position.
  • the controlled object is controlled to switch from executing the second type of action instruction to executing the first type of action instruction, thereby effectively improving the accuracy and accuracy of judging steering and avoiding misjudgments.
  • the controlled object is controlled to continue to execute the second type of action instruction.
  • the controlled object as a racing car as an example, assuming that the current racing car is currently in a state of gradually moving away from the reference position, if the detected steering offset does not reach the first preset threshold, it may be due to the experiencer. Steering deviation due to shaking, keep the car continuing to execute the second type of action command, such as keeping the car going straight.
  • the steering signal when it is recognized that the steering system is in the first state continuously far away from the reference position, the steering signal includes the torque signal and the rotation angle signal, and when the steering offset is thresholded, the torque signal and the rotation angle signal When the data representing the offset in the data needs to meet the respective thresholds at the same time, the first type of action command is generated; when it is recognized that the steering system is in the second state of continuously returning to the reference position, the steering signal includes a torque signal and a rotation angle signal, When the steering offset is judged by the threshold, if one of the data representing the offset in the torque signal and the rotation angle signal meets the respective threshold, the second type of action command is generated.
  • a comprehensive control mode is adopted in combination with the torque signal and the rotation angle signal.
  • the above-mentioned vehicle control method includes the following steps:
  • step S1102 Determine whether the rotation angle signal value is greater than or equal to Game Angle Press Left, and whether the torque signal value is greater than or equal to Game Torque Press Left, if yes, perform step S1104, otherwise, perform step S1103.
  • step S1106 When judging whether the rotation angle signal of the in-vehicle game terminal is less than or equal to Game Angle Release Left, or whether the torque signal value is less than or equal to Game Torque Release Left, if yes, perform step S1107; otherwise, perform step S1104.
  • step S1107 When the steering wheel is turned to the right, it is determined whether the rotation angle signal value of the in-vehicle game terminal is less than or equal to Game Angle Press Right and whether the torque signal value is less than or equal to Game Torque Press Right. If yes, perform step S1108; otherwise, perform step S1103.
  • the above-mentioned vehicle control method includes the following steps:
  • step S1202 Determine whether the rotation angle signal value is less than or equal to Game Angle Press Right, and whether the torque signal value is less than or equal to Game Torque Press Right, if yes, perform step S1204, otherwise, perform step S1203.
  • step S1206 Determine whether the vehicle-mounted game terminal corner signal is greater than or equal to Game Angle Release Right, or whether the torque signal value is greater than or equal to Game Torque Release Right, if yes, perform step S1207, otherwise, perform step S1204.
  • step S1207 When the steering wheel is turned to the left, it is determined whether the steering angle signal value of the in-vehicle game terminal is greater than or equal to Game Angle Press Left and whether the torque signal value is greater than or equal to Game Torque Press Left. If yes, perform step S1208; otherwise, perform step S1203.
  • the corner signal value when returning to the positive position from the left to the middle position, if the overshoot to a certain angle during the return to the positive process, the corner signal value will be negative and less than the Game Angle Press Right value, and the torque value to the right will be applied to cause the torque signal When the value is negative and less than the Game Torque Press Right value, it may violate the intention of the operation and lead to a right turn. Similarly, you need to pay attention to turning from right to the middle position and returning to the positive position. If the value is over-adjusted to a certain angle during the return process, the corner signal value will be caused.
  • all thresholds can be set according to personal habits, which can avoid the above problems.
  • the above-mentioned vehicle control method further includes: detecting a threshold value setting operation, and adjusting the default threshold value according to the threshold value setting operation; or, obtaining the operating sensitivity of the on-board game, and setting the default value according to the sensitivity. Or, obtain the scene information of the car game, extract the road surface information from the scene information, and adjust the default threshold according to the road surface information; or, obtain the running speed of the game object of the car game, and adjust the default value according to the running speed. The threshold is adjusted.
  • the default threshold value in the embodiment of the present disclosure when adjusting the default threshold value in the embodiment of the present disclosure, it can be divided into two types: manual adjustment and automatic adjustment.
  • the automatic adjustment mode can be closed or opened according to actual needs to ensure that the user can preferentially use the manual adjustment mode to meet different individual needs, and the influence of the poor adaptability of the molecular adjustment mode at the lower part of the automatic adjustment mode.
  • manual adjustment can be adjusted by physical buttons/knobs, or by touching the screen.
  • the user can manually input or adjust the default threshold when the user adjusts the way through the physical button/knob.
  • the manual input method can separately adjust or set the left and right thresholds, so as to effectively solve the problem of the difference in steering feel caused by the actual vehicle assembly difference or the difference in left and right tire pressures.
  • the user when the user adjusts the way through the touch screen, he can manually input or adjust the size of the default threshold through the default threshold setting interface of the on-board pad.
  • the angle signal control mode when the angle signal control mode is adopted, the user needs to manually adjust the steering wheel to the middle position to obtain the angle zero point or the steering system rotates to the middle position to obtain the angle zero point value, while the torque signal control mode does not need to return to the middle position to obtain the torque.
  • the torque control mode when the torque control mode is adopted, the user can obtain the torque zero point value by fully releasing the hand torque.
  • Relevant technicians can choose between two control modes or choose a fusion control of the two modes according to the actual situation
  • the automatic adjustment mode can be adjusted according to the operating sensitivity of the racing car, or according to the driving scene of the racing car, or according to the speed of the racing car.
  • the car-mounted pad when adjusting the operating sensitivity according to the racing car, can automatically reduce or increase the corresponding threshold after receiving the operating sensitivity information fed back by the game according to the adjustment of the operating sensitivity in the racing game setting items.
  • the specific corresponding relationship is that a higher sensitivity corresponds to a smaller positive threshold and a larger negative threshold, and a low sensitivity corresponds to a larger positive threshold and a smaller negative threshold.
  • the car pad when adjusting according to the racing scene, can receive the game feedback according to the difference of the road surface of the racing car, such as the difference of snow, mud, sand, asphalt, or the difference of wet and dry roads.
  • the on-board pad After the driving scene information, the on-board pad automatically decreases or increases the corresponding threshold.
  • the specific corresponding relationship is that a high road adhesion coefficient corresponds to a small positive threshold and a large negative threshold, and a low road adhesion coefficient corresponds to a large positive threshold and a small negative threshold.
  • the car-mounted pad when adjusting according to the driving speed of the racing car, after the car-mounted pad receives the driving speed information fed back by the game, the car-mounted pad automatically decreases or increases the corresponding threshold.
  • the specific corresponding relationship is that a higher vehicle speed corresponds to a smaller positive threshold and a larger negative threshold, and a low vehicle speed corresponds to a larger positive threshold and a smaller negative threshold.
  • Table 2 is a comparison diagram of the advantages and disadvantages of controlling the vehicle by torque signal, corner signal, torque signal, and corner signal. Users can choose and set the corresponding control mode according to their driving habits and game types.
  • the steering signal currently output by the steering system on the vehicle can be obtained, and the change trend of the steering signal can be obtained, and the controlled object in the vehicle game can be controlled according to the change trend and the steering signal. action. Therefore, by making full use of the steering signal and the change trend of the steering signal to realize the execution control of the on-board game and realize precise control without changing the original equipment of the vehicle. It conforms to some operating habits of the game and avoids the shaking of the steering wheel and affects the user. The sense of experience not only greatly increases the fun and convenience of the user's experience of game control, but also improves the user's gaming experience.
  • Fig. 12 is a schematic block diagram of an electronic device according to an embodiment of the present disclosure.
  • the electronic device 10 includes: a memory 100 and a processor 200; wherein the processor 200 reads the executable program code stored in the memory 100 to run a program corresponding to the executable program code for use in Realize the above-mentioned vehicle control method.
  • the embodiment of the present disclosure proposes a computer-readable storage medium, and the computer-readable storage medium stores a computer program, and when the program is executed by a processor, the above-mentioned vehicle control method is realized.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include at least one of the features. In the description of the present disclosure, “plurality” means at least two, such as two, three, etc., unless otherwise specifically defined.
  • the terms “installed”, “connected”, “connected”, “fixed” and other terms should be understood in a broad sense, for example, it may be a fixed connection or a detachable connection. , Or integrated; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediary, it can be the internal connection of two components or the interaction relationship between two components, unless otherwise specified The limit.
  • installed e.g., it may be a fixed connection or a detachable connection. , Or integrated; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediary, it can be the internal connection of two components or the interaction relationship between two components, unless otherwise specified The limit.
  • the specific meaning of the above-mentioned terms in the present disclosure can be understood according to specific circumstances.
  • the first feature “on” or “under” the second feature may be in direct contact with the first and second features, or the first and second features may be indirectly through an intermediary. contact.
  • the "above”, “above” and “above” of the first feature on the second feature may mean that the first feature is directly above or diagonally above the second feature, or it simply means that the level of the first feature is higher than the second feature.
  • the “below”, “below” and “below” of the second feature of the first feature may be that the first feature is directly below or obliquely below the second feature, or it simply means that the level of the first feature is smaller than the second feature.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Toys (AREA)

Abstract

A vehicle control method, an electronic device and a storage medium, relating to the technical field of vehicles. The vehicle control method comprises: acquiring a steering signal currently outputted by a steering system on a vehicle, the steering signal comprising at least one of a torque signal and a steering angle signal; acquiring a change trend of the steering signal, the change trend comprising instructing the steering system to keep away from or close to a reference position; and controlling, according to the change trend and the steering signal, a controlled object in a vehicle-mounted game to act.

Description

车辆的控制方法、电子设备及存储介质Vehicle control method, electronic equipment and storage medium
相关申请的交叉引用Cross-references to related applications
本公开要求于2019年10月31日提交的申请号为201911054837.3、名称为“车辆及车辆的控制方法、装置”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of the Chinese patent application with the application number 201911054837.3 and titled "Vehicle and Vehicle Control Method and Device" filed on October 31, 2019, the entire content of which is incorporated into this disclosure by reference.
技术领域Technical field
本公开涉及车辆技术领域,特别涉及一种车辆及车辆的控制方法、电子设备及存储介质。The present disclosure relates to the field of vehicle technology, and in particular to a vehicle and a vehicle control method, electronic equipment and storage medium.
背景技术Background technique
相关技术中,在车辆中进行车载游戏时,一般是将手机作为游戏的控制端,实现对车载游戏的控制。然而,该控制方式难以给用户带来身临其境的体验,大大降低了游戏操控的体验乐趣与便利性,降低了用户的游戏体验。In the related art, when an in-vehicle game is played in a vehicle, the mobile phone is generally used as the control terminal of the game to realize the control of the in-vehicle game. However, this control method is difficult to bring an immersive experience to the user, which greatly reduces the experience fun and convenience of game control, and reduces the user's game experience.
发明内容Summary of the invention
本公开提出了一种车辆及车辆的控制方法、电子设备及存储介质,通过充分利用车辆的转向系统的转向信号和转向信号的变化趋势来实现对车载游戏的执行动作控制,大大增加用户对游戏操控的体验乐趣与便利性,提高了用户的游戏体验。The present disclosure proposes a vehicle and a vehicle control method, electronic equipment, and storage medium. By fully utilizing the steering signal of the vehicle's steering system and the change trend of the steering signal, the execution action control of the on-board game is realized, which greatly increases the user's control of the game. The control experience is fun and convenient, which improves the user's gaming experience.
本公开第一方面实施例提出了一种车辆的控制方法,包括以下步骤:获取车辆上转向系统当前所输出的转向信号,其中,所述转向信号包括扭矩信号和转角信号中的至少一个;获取所述转向信号的变化趋势,其中,所述变化趋势用于表征所述转向系统远离或者回归参考位置;根据所述变化趋势和所述转向信号,控制车载游戏中的被控对象进行动作。An embodiment of the first aspect of the present disclosure proposes a vehicle control method, including the following steps: acquiring a steering signal currently output by a steering system on the vehicle, where the steering signal includes at least one of a torque signal and a rotation angle signal; acquiring The changing trend of the steering signal, wherein the changing trend is used to indicate that the steering system is away from or returning to a reference position; according to the changing trend and the steering signal, the controlled object in the vehicle-mounted game is controlled to perform actions.
根据本公开实施例的车辆的控制方法,可以获取车辆上转向系统当前所输出的转向信号,并获取所述转向信号的变化趋势,并根据所述变化趋势和所述转向信号,控制车载游戏中的被控对象进行动作。由此,通过充分利用转向信号和转向信号的变化趋势来实现对车载游戏的执行动作控制,实现精确控制,同时不改变车辆原有的设备,符合游戏的一些操作习惯,不仅大大增加用户对游戏操控的体验乐趣与便利性,且提高了用户的游戏体验。According to the vehicle control method of the embodiment of the present disclosure, it is possible to obtain the steering signal currently output by the steering system on the vehicle, and obtain the changing trend of the steering signal, and control the in-vehicle game according to the changing trend and the steering signal. The accused object performs an action. Therefore, by making full use of the steering signal and the change trend of the steering signal, the execution action control of the on-board game is realized, and precise control is achieved without changing the original equipment of the vehicle. It conforms to some operating habits of the game, and not only greatly increases the user's experience in the game. The control experience is fun and convenient, and it improves the user's gaming experience.
本公开第二方面实施例提出了一种电子设备,包括存储器、处理器;其中,所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于实现上述的车辆的控制方法。An embodiment of the second aspect of the present disclosure proposes an electronic device, including a memory and a processor; wherein the processor reads the executable program code stored in the memory to run the executable program code corresponding to the executable program code. The program is used to implement the above-mentioned vehicle control method.
本公开第三方面实施例提出了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,该程序被处理器执行时实现上述的车辆的控制方法。An embodiment of the third aspect of the present disclosure proposes a computer-readable storage medium that stores a computer program that, when executed by a processor, implements the above-mentioned vehicle control method.
本公开附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本公开的实践了解到。The additional aspects and advantages of the present disclosure will be partially given in the following description, and some will become obvious from the following description, or be understood through the practice of the present disclosure.
附图说明Description of the drawings
图1是本公开实施例的车辆的控制方法的流程图;Fig. 1 is a flowchart of a vehicle control method according to an embodiment of the present disclosure;
图2是本公开一个实施例的获取车辆上转向系统当前所输出的转向信号的流程图;FIG. 2 is a flowchart of obtaining a steering signal currently output by a steering system on a vehicle according to an embodiment of the present disclosure;
图3是本公开一个具体实施例的车辆的控制方法的流程图;Fig. 3 is a flowchart of a vehicle control method according to a specific embodiment of the present disclosure;
图4是本公开一个实施例的向左施加力矩与赛车游戏左转对应的流程图;FIG. 4 is a flowchart of a torque applied to the left corresponding to a left turn in a racing game according to an embodiment of the present disclosure;
图5是本公开一个实施例的向右施加力矩与赛车游戏右转对应的流程图;Fig. 5 is a flow chart of applying a torque to the right corresponding to a right turn in a racing game according to an embodiment of the present disclosure;
图6是本公开一个实施例的左转方向盘时转角信号变化与赛车游戏左转对应的流程图;FIG. 6 is a flowchart of the change of the corner signal corresponding to the left turn of the racing game when the steering wheel is turned left according to an embodiment of the present disclosure;
图7是本公开一个实施例的右转方向盘时转角信号变化与赛车游戏左转对应的流程图;FIG. 7 is a flow chart of the change of the corner signal corresponding to the left turn of the racing game when the steering wheel is turned right according to an embodiment of the present disclosure;
图8是本公开一个实施例的赛车游戏的操控设置图;Fig. 8 is a control setting diagram of a racing game according to an embodiment of the present disclosure;
图9是本公开一个实施例的赛车游戏按键模式对应的转向模式与真实汽车转向模式关系对比示意图;9 is a schematic diagram of a comparison of the relationship between the steering mode corresponding to the button mode of the racing game and the real car steering mode according to an embodiment of the present disclosure;
图10是本公开一个具体实施例的车辆控制方法的流程图;Fig. 10 is a flowchart of a vehicle control method according to a specific embodiment of the present disclosure;
图11是本公开另一个具体实施例的车辆的控制方法的流程图;FIG. 11 is a flowchart of a vehicle control method according to another specific embodiment of the present disclosure;
图12是本公开实施例的电子设备的方框示意图。Fig. 12 is a schematic block diagram of an electronic device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本公开,而不能理解为对本公开的限制。The embodiments of the present disclosure are described in detail below. Examples of the embodiments are shown in the accompanying drawings, in which the same or similar reference numerals denote the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the drawings are exemplary, and are intended to explain the present disclosure, but should not be construed as limiting the present disclosure.
下面参照附图描述根据本公开实施例提出的车辆及车辆的控制方法、电子设备及存储。The following describes the vehicle and the vehicle control method, electronic equipment, and storage proposed according to the embodiments of the present disclosure with reference to the accompanying drawings.
图1是本公开实施例的车辆的控制方法的流程图。如图1所示,该车辆的控制方法包括:Fig. 1 is a flowchart of a vehicle control method according to an embodiment of the present disclosure. As shown in Figure 1, the vehicle control method includes:
S1,获取车辆上转向系统当前所输出的转向信号,其中,转向信号包括扭矩信号和转角信号中的至少一个。S1. Acquire a steering signal currently output by the steering system on the vehicle, where the steering signal includes at least one of a torque signal and a steering angle signal.
可以理解的是,转向系统所输出的转向信号可以包括转向系统的转角信号,或者扭矩信号,或者转角信号和扭矩信号。It can be understood that the steering signal output by the steering system may include a steering angle signal, or a torque signal, or a steering angle signal and a torque signal.
具体而言,可以通过车辆转向系统附带的扭矩转角传感器(Torque and Angle Sensor,简称TAS),或者扭矩传感器(Torque Only Sensor,简称TOS),或者转角传感器(Steering Angle Sensor,SAS)获取转向系统的转角信号或者扭矩信号,其中,转角信号可以对应方向盘的转角值,扭矩信号可以为用户的手力矩值,从而通过电子助力转向(Electric Power Steering,简称EPS),或者电子车身稳定系统(Electronic Stability Program,简称ESP)采集,然后通过控制器局域网络(Controller Area Network,简称CAN总线), 或者局域互联网络(Local Interconnect Network,简称LIN线)等方式传输至车载游戏终端(如车载PAD、仪表等)。Specifically, the information of the steering system can be obtained through the torque sensor (Torque and Angle Sensor, TAS) attached to the vehicle steering system, or the torque sensor (Torque Only Sensor, TOS), or the steering angle sensor (SAS). The angle signal or torque signal, where the angle signal can correspond to the angle value of the steering wheel, and the torque signal can be the user’s hand torque value, which can be passed through the electronic power steering (Electric Power Stability, referred to as EPS) or the Electronic Stability Program (Electronic Stability Program). , ESP for short) is collected, and then transmitted to the on-board game terminal (such as on-board PAD, instrumentation, etc.) through the Controller Area Network (CAN bus), or Local Interconnect Network (LIN line), etc. ).
图2是本公开一个实施例的获取车辆上转向系统当前所输出的转向信号的流程图。如图2所示,步骤S1包括:Fig. 2 is a flowchart of obtaining a steering signal currently output by a steering system on a vehicle according to an embodiment of the present disclosure. As shown in Figure 2, step S1 includes:
S201,通过车辆转向系统附带的TAS/TOS/SAS获取转向系统的转角信号或者扭矩信号。S201: Obtain a steering angle signal or a torque signal of the steering system through the TAS/TOS/SAS attached to the steering system of the vehicle.
S202,通过EPS/ESP采集转角信号和扭矩信号。S202: Collect the corner signal and torque signal through EPS/ESP.
其中,车辆可根据实际情况进行判断是否通过EPS/ESP采集转角信号和扭矩信号。Among them, the vehicle can judge whether to collect the corner signal and torque signal through EPS/ESP according to the actual situation.
S203,通过CAN总线或者LIN线等方式将转角信号和扭矩信号传输至车载游戏终端。S203: Transmit the corner signal and the torque signal to the vehicle-mounted game terminal through a CAN bus or a LIN line.
其中,本公开实施例可以通过结合车辆实际网络拓扑架构判断是否将转角信号和扭矩信号传输至车载游戏终端。Among them, the embodiment of the present disclosure can determine whether to transmit the corner signal and the torque signal to the vehicle-mounted game terminal by combining with the actual network topology of the vehicle.
S2,获取转向信号的变化趋势,其中,变化趋势用于表征转向系统远离或者回归参考位置。S2: Obtain a change trend of the steering signal, where the change trend is used to characterize that the steering system is away from or returns to a reference position.
在该实施例中,参考位置可以为车辆方向盘处于正中间位置同时轮胎处于正前方位置(或者方向盘处于自由状态)时的位置,转向信号的变化趋势可以为转角信号或者扭矩信号的变化趋势,如根据转角信号的变化趋势判断出变化趋势为从直行变为左转,从直行变为右转(转向系统远离参考位置),从右转变为直行等(转向系统回归参考位置)。In this embodiment, the reference position may be the position when the steering wheel of the vehicle is in the middle position and the tires are in the front position (or the steering wheel is in a free state), and the changing trend of the steering signal may be the changing trend of the turning angle signal or the torque signal, such as According to the change trend of the turning angle signal, it is judged that the change trend is from straight to left, from straight to right (steering system is far from the reference position), from right to straight, etc. (steering system returns to the reference position).
S3,根据变化趋势和转向信号,控制车载游戏中的被控对象进行动作。S3: Control the controlled object in the car game to perform actions according to the change trend and the turn signal.
可以理解的是,本公开实施例可以预先设置有与转向方向和转向偏移量对应的控制标准,从而在根据获取到的车辆上转向系统当前所输出的转向信号后,识别转向系统的转向方向和转向偏移量,进而根据转向方向和转向偏移量,控制车载游戏中的被控对象进行动作。其中,当转向信号为扭矩时,转向偏移量就是扭矩的具体取值,参考位置为扭矩为0的位置;当转向信号为转角时,转向偏移量就是转角的大小,参考位置为方向盘回正的位置。It is understandable that the embodiments of the present disclosure may be preset with control standards corresponding to the steering direction and the steering offset, so as to identify the steering direction of the steering system based on the acquired steering signal currently output by the steering system on the vehicle. And the steering offset, and then according to the steering direction and steering offset, control the controlled object in the car game to perform actions. Among them, when the steering signal is the torque, the steering offset is the specific value of the torque, and the reference position is the position where the torque is 0; when the steering signal is the turning angle, the steering offset is the size of the turning angle, and the reference position is the steering wheel return. Positive position.
也就是说,当车辆处于平整路面驻车工况时,方向盘可以自由转动,车载游戏终端可以获取车辆上转向系统当前所输出的转向信号,然后经过车载游戏终端对应开发的内置的应用程序或者底层驱动程序将用户转动方向盘时变化的转角或者扭矩信号映射为对应车载赛车游戏中左右转向的动作或其他类型游戏左右移动、旋转等输入事件指令。需要说明的是,本公开实施例的车辆的控制方法对于其他车载游戏,如俄罗斯方块游戏中的左右移动或者左右旋转,棋牌类游戏对应的左右选牌等也同样适用,为避免冗余,在此不做详细赘述。That is to say, when the vehicle is parked on a flat road, the steering wheel can rotate freely, and the on-board game terminal can obtain the current steering signal output by the steering system on the vehicle, and then go through the built-in application or the bottom layer corresponding to the development of the on-board game terminal. The driver maps the turning angle or torque signal that changes when the user turns the steering wheel into input event instructions corresponding to the left and right steering actions in the car racing game or other types of games such as left and right movement and rotation. It should be noted that the vehicle control method of the embodiment of the present disclosure is also applicable to other vehicle-mounted games, such as left-to-right movement or left-to-right rotation in Tetris games, and left-to-right card selection corresponding to chess and card games. In order to avoid redundancy, This will not be repeated in detail.
综上,根据本公开实施例的车辆的控制方法,获取车辆上转向系统当前所输出的转向信号,并根据转向信号,识别转向系统的转向方向和转向偏移量,并根据转向方向和转向偏移量,控制车载游戏中的被控对象进行动作。由此,通过充分利用车辆原有的转向系统的转向信号来实现对车载游戏的执行动作控制,大大增加用户对游戏操控的体验乐趣与便 利性,提高了用户的游戏体验,并且相对原有车辆来说,提供了一种新的转向控制策略,实现了用真车玩游戏,使车辆除常规驾驶模式外,还具有车载游戏模式。In summary, according to the vehicle control method of the embodiment of the present disclosure, the steering signal currently output by the steering system on the vehicle is obtained, and the steering direction and steering offset of the steering system are identified according to the steering signal, and the steering direction and steering offset are identified according to the steering direction and steering offset. Move, control the controlled object in the car game to move. As a result, by making full use of the steering signal of the original steering system of the vehicle to realize the control of the execution of the in-vehicle game, it greatly increases the fun and convenience of the user’s experience of game control, improves the user’s game experience, and compares it with the original vehicle. In other words, a new steering control strategy is provided to realize the use of real cars to play games, so that in addition to the conventional driving mode, the vehicle also has an in-vehicle game mode.
基于上述实施例,应该当理解的是,根据具体应用场景的不用,根据转向信号的变化趋势和转向信号,控制车载游戏中的被控对象进行动作的方式不同,下面结合具体的应用场景,以根据转向方向、或者转向偏移量、或者转向方向和转向偏移量为例,进行举例说明,说明如下:Based on the above-mentioned embodiments, it should be understood that, according to the specific application scenarios, the changing trend of the steering signal and the steering signal, the way to control the controlled object in the car game to perform actions is different. The following is a combination of specific application scenarios. Take the steering direction, or the steering offset, or the steering direction and the steering offset as an example, for example, the description is as follows:
图3是本公开一个具体实施例的车辆的控制方法的流程图。如图3所示,该方法包括:Fig. 3 is a flowchart of a vehicle control method according to a specific embodiment of the present disclosure. As shown in Figure 3, the method includes:
S301,获取车辆上转向系统当前所输出的转向信号,其中,转向信号包括扭矩信号和转角信号中的至少一个。S301: Acquire a steering signal currently output by the steering system on the vehicle, where the steering signal includes at least one of a torque signal and a steering angle signal.
在本公开的一个实施例中,可以通过车辆转向系统附带的TAS/TOS/SAS获取转向系统的转角信号或者扭矩信号。In an embodiment of the present disclosure, the steering angle signal or torque signal of the steering system can be obtained through the TAS/TOS/SAS attached to the vehicle steering system.
S302,获取转向信号的变化趋势,其中,变化趋势用于表征转向系统远离或者回归参考位置。S302: Obtain a change trend of the steering signal, where the change trend is used to characterize that the steering system moves away from or returns to a reference position.
其中,转向信号的变化趋势可以为转角信号或者扭矩信号的变化趋势,如根据转角信号的变化趋势判断出变化趋势为左转或者右转等。Wherein, the change trend of the steering signal may be a change trend of a corner signal or a torque signal, for example, it is judged whether the change trend is a left turn or a right turn according to the change trend of the corner signal.
S303,根据变化趋势,识别转向系统处于持续远离参考位置的第一状态。S303: According to the change trend, identify that the steering system is in the first state where the steering system is continuously far away from the reference position.
例如,当识别出转角信号的变化趋势为左转时,车辆可以由直行变为左转,即转向系统处于远离参考位置的第一状态;当识别出转角信号的变化趋势为右转时,车辆可以由直行变为右转,即转向系统也处于远离参考位置的第一状态。For example, when it is recognized that the changing trend of the corner signal is turning left, the vehicle can change from straight to left turning, that is, the steering system is in the first state away from the reference position; when the changing trend of the turning angle signal is recognized as turning right, the vehicle It can change from going straight to turning right, that is, the steering system is also in the first state away from the reference position.
S304,根据转向信号,识别转向系统的转向方向和转向偏移量。S304: Identify the steering direction and steering offset of the steering system according to the steering signal.
在该实施例中,在获取转向系统的转角信号或者扭矩信号后,即可根据转角信号或者扭矩信号,识别转向系统的转向方向和转向偏移量。其中,转向方向可以根据转角信号或扭矩信号确定,如转角信号为左转信号,则转向为左转,并且还可以预设有转向偏移量与扭矩信号(力矩)之间的映射关系,当获取到转向力矩时,通过查询该映射关系,从而得到转向系统的转向偏移量。In this embodiment, after obtaining the steering angle signal or torque signal of the steering system, the steering direction and steering offset of the steering system can be identified based on the steering angle signal or torque signal. Among them, the steering direction can be determined according to the steering angle signal or the torque signal. If the steering angle signal is a left turn signal, the steering is a left turn, and a mapping relationship between the steering offset and the torque signal (torque) can also be preset. When the steering torque is obtained, the steering offset of the steering system can be obtained by querying the mapping relationship.
S305,根据转向系统的转向方向和转向偏移量,生成被控对象的第一类动作指令。S305: According to the steering direction and the steering offset of the steering system, generate a first type of action instruction of the controlled object.
在该实施例中,在识别出转向系统处于持续远离参考位置的第一状态,以及识别出转向系统的转向方向和转向偏移量后,本公开实施例可以根据转向系统的转向方向和转向偏移量,生成被控对象的第一类动作指令,其中,第一类动作指令可以为左转指令或者右转指令。由此,通过变化趋势和转向方向、转向偏移量的大小共同控制被控对象,从而更准确的生成动作指令,进而更精准控制被控对象的转向,提高转向的精确度。In this embodiment, after recognizing that the steering system is in the first state where the steering system is continuously far away from the reference position, and recognizing the steering direction and steering offset of the steering system, the embodiment of the present disclosure can be based on the steering direction and steering offset of the steering system. The amount of movement generates the first type of action instruction of the controlled object, where the first type of action instruction can be a left turn instruction or a right turn instruction. As a result, the controlled object is jointly controlled by the change trend, the steering direction, and the magnitude of the steering offset, so as to generate action instructions more accurately, thereby more accurately control the steering of the controlled object, and improve the accuracy of steering.
作为一个示例,以CAN信号为例进行具体的应用规则阐述,其中,CAN扭矩信号报文为周期型。扭矩信号可以为有符号型信号,其中,在用户未添加外力至方向盘,即方向盘处于自由状态时的扭矩值时,所对应的扭矩信号为0Nm(实际因为装配误差,约0Nm附近 正负值)。当用户施加力矩使方向盘左右转向时,其中,驾驶员面对方向盘,方向盘逆时针转向方向为左,顺时针为右,扭矩信号值会随用户对方向盘施加力的变化而变化,此处认为规定当用户施加向左的力矩打方向时扭矩信号值为正,施加向右的力矩打方向时扭矩信号值为负,本领域技术人员可根据实际情况进行调整。转角信号可以为有符号型信号,所对应的转角信号在车辆上经过零点标定对中后,车辆方向盘处于正中间位置同时轮胎处于正前方位置时为转角值为0°(实际因为装配误差,约0°附近正负值),其中,方向盘可通过EPS系统电机或者线控转向系统中用户手感模拟器电机完成自动回正,也可通过用户手动进行回正。当方向盘左右转向时,面对方向盘,方向盘逆时针转向方向为左,顺时针为右,转角信号值会随方向盘左右转动角度变化而变化,当在基于零点值向左打方向时转角信号值为正,向右打方向时转角信号值为负(参照根据ISO8855规定,转角信号正值表示方向向左,负值表示方向向右),具体地可以根据实际情况对左右转向与正负对应关系的调整。As an example, the CAN signal is taken as an example to illustrate the specific application rules. Among them, the CAN torque signal message is of periodic type. The torque signal can be a signed signal. Among them, when the user does not add an external force to the steering wheel, that is, the torque value when the steering wheel is in a free state, the corresponding torque signal is 0Nm (actually due to assembly errors, about 0Nm is a positive or negative value) . When the user applies a torque to turn the steering wheel left and right, where the driver faces the steering wheel, the steering wheel counterclockwise steering direction is left, and clockwise is right, the torque signal value will change with the change of the user's force on the steering wheel. This is considered to be the rule The torque signal value is positive when the user applies the torque to the left and the torque signal value is negative when the torque is applied to the right. Those skilled in the art can make adjustments according to the actual situation. The turning angle signal can be a signed signal. After the corresponding turning angle signal is calibrated and centered on the vehicle through the zero point, the turning angle value is 0° when the steering wheel of the vehicle is in the middle position and the tire is in the front position (actually due to assembly errors, approximately Positive and negative values near 0°), where the steering wheel can be automatically returned to the right through the EPS system motor or the user's hand-feeling simulator motor in the steering-by-wire system, or it can be returned manually by the user. When the steering wheel turns left and right, facing the steering wheel, the steering wheel counterclockwise steering direction is left, clockwise is right, the angle signal value will change with the left and right rotation angle of the steering wheel, when the steering wheel is turned to the left based on the zero value, the angle signal value is Positive, when turning to the right, the corner signal value is negative (refer to ISO8855, the positive value of the corner signal indicates the direction to the left, and the negative value indicates the direction to the right). Specifically, the left and right steering and the corresponding relationship between positive and negative can be determined according to the actual situation. Adjustment.
需要说明的是,车载游戏终端将所接收到的正负扭矩信号(或者正负转角信号)可以映射为赛车游戏所需要的左转指令或者右转指令,车载游戏终端表现对应的关系施加向左的力矩打方向(或者左转动方向盘)时可支持“左转”动作,施加向右的力矩打方向(或者右转动方向盘)时可支持“右转”动作。对于扭矩信号,由于用户需要将手握在方向盘上此时方向盘会受到较小的施加力矩值,因此可以规定扭矩值在0Nm正负值附近一定范围值内可近似等同于方向盘已经处于自由状态,对于转角信号,由于用户难以将方向盘维持在中间位置零点,因此可以规定转角值在零点附近左右一定范围值内可近似等同于方向盘已经回正至中间零点位置。It should be noted that the vehicle-mounted game terminal can map the received positive and negative torque signals (or positive and negative corner signals) to the left turn instruction or right turn instruction required by the racing game, and the vehicle-mounted game terminal performs the corresponding relationship to the left. When turning the steering wheel to the left (or turning the steering wheel to the left), it can support the "turn left" action, and when applying a torque to the right (or turning the steering wheel to the right), it can support the "turning to the right" action. For the torque signal, because the user needs to hold his hand on the steering wheel, the steering wheel will receive a small applied torque value. Therefore, it can be specified that the torque value is within a certain range around the positive and negative values of 0Nm, which is approximately equivalent to that the steering wheel is already in a free state. For the steering angle signal, since it is difficult for the user to maintain the steering wheel at the neutral position zero, it can be specified that the steering angle value within a certain range around the zero point can be approximately equivalent to the steering wheel having returned to the neutral zero position.
图4是本公开一个实施例的向左施加力矩与赛车游戏左转对应的流程图。如图4所示,根据转向系统的转向方向和转向偏移量,生成被控对象的动作指令,包括以下步骤:Fig. 4 is a flowchart of a torque applied to the left corresponding to a left turn in a racing game according to an embodiment of the present disclosure. As shown in Figure 4, according to the steering direction and steering offset of the steering system, generating an action command for the controlled object includes the following steps:
S401,用户施加向左的力矩转动方向盘,并通过车载游戏终端采集扭矩信号值。In S401, the user applies a torque to the left to turn the steering wheel, and collects the torque signal value through the on-board game terminal.
S402,判断扭矩信号值是否大于或者等于Game TorquePressLeft,如果是,执行步骤S404,否则,执行步骤S403。S402: Determine whether the torque signal value is greater than or equal to Game TorquePressLeft, if yes, perform step S404, otherwise, perform step S403.
其中,Game TorquePressLeft可以为左转按压扭矩值,并且可以结合不同用户的方向掌控需求可支持调节,从而提高用户的使用体验。Among them, Game TorquePressLeft can be the left turn pressing torque value, and can be combined with the direction control needs of different users to support adjustment, thereby improving the user experience.
S403,赛车直线行驶。S403, the car is driving in a straight line.
S404,赛车向左转向。S404, the car turns to the left.
图5是本公开一个实施例的向右施加力矩与赛车游戏右转对应的流程图。如图5所示,根据转向系统的转向方向和转向偏移量,生成被控对象的动作指令,包括以下步骤:Fig. 5 is a flow chart of torque applied to the right corresponding to a right turn in a racing game according to an embodiment of the present disclosure. As shown in Figure 5, according to the steering direction and steering offset of the steering system, generating the action command of the controlled object includes the following steps:
S501,用户施加向右的力矩转动方向盘,并通过车载游戏终端采集扭矩信号值。In S501, the user applies a torque to the right to turn the steering wheel, and collects the torque signal value through the on-board game terminal.
S502,判断扭矩信号值是否小于或者等于Game TorquePressRight,如果是,执行步骤S504,否则,执行步骤S503。S502: Determine whether the torque signal value is less than or equal to Game TorquePressRight, if yes, perform step S504, otherwise, perform step S503.
其中,Game TorquePressRight可以为右转按压扭矩值,并且可以结合不同用户的方向掌控需求可支持调节,从而提高用户的使用体验。Among them, Game TorquePressRight can be the right-turn pressing torque value, and can be combined with the direction control needs of different users to support adjustment, thereby improving the user experience.
S503,赛车直线行驶。S503, the car is driving in a straight line.
S504,赛车向右转向。S504, the car turns to the right.
图6是本公开一个实施例的左转方向盘时转角信号变化与赛车游戏左转对应的流程图。如图6所示,根据转向系统的转向方向和转向偏移量,生成被控对象的动作指令,包括以下步骤:Fig. 6 is a flow chart of the change of the corner signal corresponding to the left turn of the racing game when the steering wheel is turned left according to an embodiment of the present disclosure. As shown in Figure 6, according to the steering direction and steering offset of the steering system, generating the action command of the controlled object includes the following steps:
S601,以中间位置为基准方向盘左转向,通过车载游戏终端采集转角信号值。In S601, the steering wheel is turned to the left based on the middle position, and the corner signal value is collected through the on-board game terminal.
S602,判断转角信号值是否大于或者等于Game Angle PressLeft,如果是,执行步骤S604,否则,执行步骤S603。S602: Determine whether the turning angle signal value is greater than or equal to Game Angle PressLeft, if yes, perform step S604, otherwise, perform step S603.
其中,Game Angle PressLeft为左转按压转角值,可以结合不同用户的方向掌控需求,进行调节,从而满足用户需求,提高用户使用体验。Among them, Game Angle PressLeft is the left turn press corner value, which can be adjusted according to the direction control needs of different users, so as to meet user needs and improve user experience.
S603,赛车直线行驶。S603, the car is driving in a straight line.
S604,赛车向左转向。S604, the car turns to the left.
图7是本公开一个实施例的右转方向盘时转角信号变化与赛车游戏右转对应的流程图。如图7所示,根据转向系统的转向方向和转向偏移量,生成被控对象的动作指令,包括以下步骤:FIG. 7 is a flow chart of the change of the corner signal corresponding to the right turn of the racing game when the steering wheel is turned right according to an embodiment of the present disclosure. As shown in Figure 7, according to the steering direction and steering offset of the steering system, generating the action command of the controlled object includes the following steps:
S701,以中间位置为基准方向盘右转向,通过车载游戏终端采集转角信号值。In S701, the steering wheel is turned to the right based on the intermediate position, and the corner signal value is collected through the on-board game terminal.
S702,判断转角信号值是否小于或者等于Game Angle PressRight,如果是,执行步骤S704,否则,执行步骤S703。S702: Determine whether the turning angle signal value is less than or equal to Game Angle Press Right, if yes, perform step S704, otherwise, perform step S703.
其中,Game Angle PressRight为右转按压转角值,可以结合不同用户的方向掌控需求,进行调节,从而满足用户需求,提高用户使用体验。Among them, Game Angle PressRight is the right turn press corner value, which can be adjusted according to the direction control needs of different users, so as to meet user needs and improve user experience.
S703,赛车直线行驶。S703, the car is driving in a straight line.
S704,赛车向右转向。S704, the car turns to the right.
另外,如图8所示,赛车游戏的操控可以包含3类转向操控方式:体感模式(即重力感应式转向),方向盘模式,按键模式(单侧/双侧)。当对赛车操控采用按键模式时,正负扭矩信号(正负转角信号)与赛车游戏中采用虚拟按键(或者屏幕左右区域)触摸控制方式的左右转向的事件触发对应解析关系可以如下所示:当扭矩信号值是否大于或者等于Game TorquePressLeft时,赛车游戏向左转向命令持续被激活,赛车持续向左维持转向,即赛车左转虚拟按键被持续触摸;当扭矩信号值是否小于或者等于Game TorquePressRight时,赛车游戏向右转向命令持续被激活,赛车持续向右维持转向,即赛车右转虚拟按键被持续触摸;当转角信号值是否大于或者等于Game Angle PressLeft时,赛车游戏向左转向命令持续被激活,赛车持续向左维持转向,即赛车左转虚拟按键被持续触摸;转角信号值是否小于或者等于Game Angle PressRight时赛车游戏向右转向命令持 续被激活,赛车持续向右维持转向,即赛车右转虚拟按键被持续触摸。In addition, as shown in FIG. 8, the control of the racing game can include three types of steering control methods: somatosensory mode (ie, gravity-sensing steering), steering wheel mode, and button mode (single-sided/double-sided). When the button mode is used for the car control, the corresponding analytical relationship between the positive and negative torque signal (positive and negative corner signal) and the left and right steering event triggering in the racing game using the virtual button (or the left and right area of the screen) touch control method can be as follows: When the torque signal value is greater than or equal to Game TorquePressLeft, the left steering command of the racing game is continuously activated, and the car continues to steer to the left, that is, the virtual key of the racing left turn is continuously touched; when the torque signal value is less than or equal to Game TorquePressRight, The right steering command of the racing game is continuously activated, and the car continues to steer to the right, that is, the virtual button of the racing right turn is continuously touched; when the corner signal value is greater than or equal to Game Angle PressLeft, the racing game’s left steering command is continuously activated. The car keeps turning to the left, that is, the virtual button of the car turning left is continuously touched; whether the corner signal value is less than or equal to the Game Angle PressRight, the racing game's right turn command is continuously activated, and the car keeps turning to the right, that is, the car turns right virtual The button is continuously touched.
图9是本公开一个实施例的赛车游戏按键模式对应的转向模式与真实汽车转向模式关系对比图。如图9所示,图9(a)为车辆直行时的示意图,图9(b)为通过赛车游戏按键模式(方向盘)控制车辆转向的示意图,图9(c)为通过真实车辆转向的示意图。从图9中可以看出,在通过车辆的方向盘控制赛车时,实现了用真车模拟赛车转向的控制策略,不改变车辆原有的设备,和用按键控制赛车一样的转向体验,符合游戏用户操作习惯,并且通过控制方向盘控制车辆转向时可以更灵敏的控制转向角度,有效提高用户的游戏体验。Fig. 9 is a comparison diagram of the relationship between the steering mode corresponding to the button mode of the racing game and the real car steering mode according to an embodiment of the present disclosure. As shown in Figure 9, Figure 9(a) is a schematic diagram when the vehicle is driving straight, Figure 9(b) is a schematic diagram of controlling the steering of the vehicle through the racing game button mode (steering wheel), and Figure 9(c) is a schematic diagram of turning the vehicle through a real vehicle . It can be seen from Figure 9 that when the car is controlled by the steering wheel of the vehicle, the control strategy of using the real car to simulate the steering of the car is realized, without changing the original equipment of the vehicle, and the steering experience is the same as using the button to control the car, which is in line with game users. Operating habits, and by controlling the steering wheel to control the steering angle of the vehicle can be more sensitive to control the steering angle, effectively improving the user's gaming experience.
根据本公开的一个实施例,生成被控对象的第一类动作指令之前,还包括:确定转向偏移量达到第一预设阈值。According to an embodiment of the present disclosure, before generating the first-type action instruction of the controlled object, the method further includes: determining that the steering offset reaches the first preset threshold.
应当理解的是,当用户体验游戏时,有时会因为手的晃动导致转向系统出现轻微的转向,而此时如果采集转向系统的转向信号,则会在不该转向时,控制赛车转向,大大降低了用户的体验,因此,可以预设有第一预设阈值,只有在转向系统的转向偏移量达到该第一预设阈值(Game Torque Press Left)时,生成被控对象的第一类动作指令,实现赛车的转向,有效提高了判断转向的精确性和准确性,减少因体验者晃动出现的误差,提高体验者的游戏体验。It should be understood that when the user is experiencing the game, sometimes the steering system will turn slightly due to the shaking of the hand. At this time, if the steering signal of the steering system is collected, the steering of the car will be controlled when it should not be turned, which greatly reduces Therefore, a first preset threshold can be preset, and only when the steering offset of the steering system reaches the first preset threshold (Game Torque Press Left), the first type of action of the controlled object is generated Command to realize the steering of the car, effectively improve the accuracy and accuracy of judging the steering, reduce the error caused by the shaking of the experiencer, and improve the experience of the game.
根据本公开的一个实施例,如果转向偏移量未达到第一预设阈值,则控制被控对象执行第二类动作指令。According to an embodiment of the present disclosure, if the steering offset does not reach the first preset threshold, the controlled object is controlled to execute the second type of action instruction.
也就是说,以被控对象为赛车为例,假设当前赛车处于直行,如果检测到的转向偏移量未达到第一预设阈值,则说明此时可能是因体验者晃动出现的转向偏移,不控制车辆进行转向,保持赛车直行,即控制被控对象执行第二类动作指令。That is to say, taking the controlled object as a racing car as an example, assuming that the current car is driving straight, if the detected steering offset does not reach the first preset threshold, it means that the steering offset may be caused by the shaking of the experiencer. , Do not control the vehicle to turn, keep the car going straight, that is, control the controlled object to execute the second type of action command.
需要说明的是,第一预设阈值可以根据实际情况进行设定,在此不作具体限定。It should be noted that the first preset threshold can be set according to actual conditions, which is not specifically limited here.
根据本公开的一个实施例,上述的车辆的控制方法,还包括:根据变化趋势,识别转向系统处于逐渐回归参考位置的第二状态;根据转向系统的转向方向和转向偏移量,生成被控对象的第二类动作指令。According to an embodiment of the present disclosure, the above-mentioned vehicle control method further includes: according to the changing trend, identifying that the steering system is in a second state of gradually returning to the reference position; generating the controlled steering system according to the steering direction and steering offset of the steering system. The second type of action instruction for the object.
可以理解的是,本公开实施例还可以根据转向信号的变化趋势判断转向系统是否逐渐回归至参考位置,从而根据转向系统的转向方向和转向偏移量,生成被控对象的第二类动作指令。也就是说,当识别到赛车转向信号的变化趋势为逐渐回归至参考位置时,则控制赛车直线行驶。It is understandable that the embodiments of the present disclosure can also determine whether the steering system gradually returns to the reference position according to the change trend of the steering signal, so as to generate the second type of action command for the controlled object according to the steering direction and steering offset of the steering system. . That is, when it is recognized that the change trend of the steering signal of the car is gradually returning to the reference position, the car is controlled to drive in a straight line.
根据本公开的一个实施例,生成被控对象的第二类动作指令之前,还包括:确定转向偏移量回归至第二预设阈值。According to an embodiment of the present disclosure, before generating the second-type action instruction of the controlled object, the method further includes: determining that the steering offset returns to the second preset threshold.
在该实施例中,当用户释放左打方向盘的力矩值至车载游戏终端采集的扭矩信号小于或等于左转释放扭矩值(Game TorqueReleaseLeft),即转向偏移量回归至第二预设阈值时,赛车游戏向左转向命令持续被抑制,赛车保持直线行驶,其中,第二预设阈值也可以根据实际情况进行设定,在此不做具体限定。同理,当用户释放右打方向盘的力矩值至车 载游戏终端采集的扭矩信号大于或等于右转释放扭矩值(Game TorqueReleaseRight)时,赛车游戏向右转向命令持续被抑制,赛车保持直线行驶。In this embodiment, when the user releases the torque value of the left steering wheel until the torque signal collected by the on-board game terminal is less than or equal to the left turn release torque value (Game Torque Release Left), that is, the steering offset returns to the second preset threshold, In the racing game, the left steering command is continuously suppressed, and the racing car keeps driving in a straight line. The second preset threshold can also be set according to actual conditions, which is not specifically limited here. In the same way, when the user releases the torque value of the right steering wheel until the torque signal collected by the on-board game terminal is greater than or equal to the right-turn release torque value (Game Torque Release Right), the right steering command of the racing game is continuously suppressed and the car keeps driving straight.
另外,当方向盘由左向中间位置回正至车载游戏终端转角信号小于或等于左转释放转角值(Game Angle ReleaseLeft)时,赛车游戏向左转向命令持续被抑制,赛车保持直线行驶;当方向盘由右向中间位置回正至车载游戏终端转角信号大于或等于右转释放转角值(Game Angle ReleaseRight)时,赛车游戏向右转向命令持续被抑制,赛车保持直线行驶。In addition, when the steering wheel returns to the center position from the left to the center until the corner signal of the on-board game terminal is less than or equal to the left turn release angle value (Game Angle ReleaseLeft), the left steering command of the racing game is continuously suppressed, and the car keeps driving in a straight line; When the right-handed center position returns to the vehicle-mounted game terminal corner signal is greater than or equal to the right-turn release corner value (Game Angle ReleaseRight), the racing game's right steering command is continuously suppressed, and the car keeps driving in a straight line.
需要说明是是,如果释放向左的力矩值(转角值)至方向盘处于近似自由状态时,如果施加了向右的力矩值,导致扭矩信号值为负值且小于Game TorquePressRight值时,则可能违背操作意图导致向右转向。同理,如果释放向右的力矩值(转角值)至方向盘处于近似自由状态时,如果施加了向左的力矩值导致扭矩信号值为正值且大于Game TorquePressLeft值时,则可能违背操作意图导致向左转向。It should be noted that if the torque value (angle value) to the left is released until the steering wheel is in an approximately free state, if a torque value to the right is applied, resulting in a negative torque signal value and less than the Game TorquePressRight value, it may violate The intent of the operation resulted in a right turn. Similarly, if the torque value to the right (angle value) is released until the steering wheel is in an approximately free state, if the torque value to the left is applied and the torque signal value is positive and greater than the value of Game TorquePressLeft, it may violate the intention of the operation. Turn left.
根据本公开的一个实施例,上述的车辆的控制方法,还包括:识别转向偏移量未回归至第二预设阈值,则控制被控对象执行第一类动作指令。According to an embodiment of the present disclosure, the above-mentioned vehicle control method further includes: recognizing that the steering offset has not returned to a second preset threshold, then controlling the controlled object to execute the first type of action instruction.
在该实施例中,以通过扭矩信号控制左转为例,当用户释放左打方向盘的力矩值至车载游戏终端采集的扭矩信号未小于或等于左转释放扭矩值(Game TorqueReleaseLeft),即转向偏移量未回归至第二预设阈值时,赛车游戏向左转向命令不被抑制,控制被控对象执行第一类动作指令,即控制赛车保持左转,从而避免因误判导致在转向偏移量未回归至第二预设阈值,就控制被控对象执行第二类动作指令的情况的发生,提高用户的体验。In this embodiment, using the torque signal to control the left turn as an example, when the user releases the torque value of the left steering wheel until the torque signal collected by the on-board game terminal is not less than or equal to the left turn release torque (Game Torque Release Left), that is, steering deviation When the displacement does not return to the second preset threshold, the left steering command of the racing game is not suppressed, and the controlled object is controlled to execute the first type of action command, that is, the car is controlled to keep turning left, so as to avoid misjudgment leading to steering deviation If the amount does not return to the second preset threshold, the controlled object is controlled to execute the second type of action instruction, and the user experience is improved.
需要说明的是,通过扭矩信号控制右转,以及通过转角信号控制左转、右转时的方式与上述一致,为避免冗余,在此不做详细赘述。It should be noted that the methods for controlling the right turn through the torque signal and controlling the left and right turns through the corner signal are the same as the above. In order to avoid redundancy, it will not be described in detail here.
可以理解的是,当方向盘的转向信号的变化趋势为处于持续远离参考位置的第一状态时,It is understandable that when the change trend of the steering signal of the steering wheel is in the first state of continuously being far away from the reference position,
所述转向信号为转角信号时,其中向左远离参考位置,第一预设阈值为Game Angle PressLeft,由左靠近参考位置,第二预设阈值为Game Angle ReleaseLeft;向右远离参考位置,第一预设阈值为GameAngle PressRight,由右靠近参考位置,第二预设阈值为Game Angle ReleaseRight;When the steering signal is a corner signal, the first preset threshold is Game Angle PressLeft, and the first preset threshold is Game Angle PressLeft, and the second preset threshold is Game Angle ReleaseLeft; the first preset threshold is Game Angle ReleaseLeft; The preset threshold is GameAnglePressRight, approaching the reference position from the right, and the second preset threshold is GameAngleReleaseRight;
所述转向信号为扭矩信号时,其中向左远离参考位置,第一预设阈值为Game Torque PressLeft,由左靠近参考位置,第二预设阈值为Game Torque ReleaseLeft;向右远离参考位置,第一预设阈值为Game Torque PressRight,由右靠近参考位置,第二预设阈值为Game Torque ReleaseRight;When the steering signal is a torque signal, the leftward is far away from the reference position, the first preset threshold value is Game Torque PressLeft, and the second preset threshold value is Game Torque ReleaseLeft; the first preset threshold value is Game Torque ReleaseLeft; rightward away from the reference position, the first The preset threshold is Game Torque PressRight, approaching the reference position from the right, and the second preset threshold is Game Torque ReleaseRight;
当转向信号为转角信号和扭矩信号时,其中向左远离参考位置,第一预设阈值为Game Angle PressLeft和Game Torque PressLeft;由左靠近参考位置,第二预设阈值为Game Angle ReleaseLeft或Game Torque ReleaseLeft;其中向右远离参考位置,第一预设阈 值为Game Angle PressRight和Game Torque PressRight;由右靠近参考位置,第二预设阈值为Game Angle ReleaseRight或Game Torque ReleaseRight。When the steering signal is a corner signal and a torque signal, the leftward is away from the reference position, the first preset threshold is Game Angle PressLeft and Game Torque PressLeft; the left approach to the reference position, the second preset threshold is Game Angle ReleaseLeft or Game Torque ReleaseLeft; where to the right away from the reference position, the first preset threshold is Game Angle PressRight and Game Torque PressRight; from the right to the reference position, the second preset threshold is Game Angle ReleaseRight or Game Torque ReleaseRight.
另外,本公开实施例中的第一预设阈值与第二预设阈值的取值可以不同,从而可以有效避免方向盘晃动,提高用户体验感。In addition, the values of the first preset threshold and the second preset threshold in the embodiments of the present disclosure may be different, so that shaking of the steering wheel can be effectively avoided, and user experience can be improved.
根据本公开的一个实施例,上述的车辆的控制方法,还包括:根据变化趋势,识别转向系统从第二状态切换至第一状态;检测并识别转向偏移量达到第一预设阈值,则控制被控对象从执行第二类动作指令切换至执行第一类动作指令。According to an embodiment of the present disclosure, the above-mentioned vehicle control method further includes: according to the change trend, identifying that the steering system is switched from the second state to the first state; detecting and identifying that the steering offset reaches the first preset threshold, then Control the controlled object to switch from executing the second type of action instruction to executing the first type of action instruction.
可以理解的是,第一状态可以为转向系统持续远离参考位置的趋势的状态,第二状态可以为转向系统逐渐回归参考位置的趋势的状态,当识别转向系统从逐渐回归参考位置的趋势的状态切换至持续远离参考位置的趋势的状态时,此时被控对象所执行的动作指令需由第二类动作指令切换至执行第一类动作指令。It is understandable that the first state can be a state in which the steering system continues to move away from the reference position, and the second state can be a state in which the steering system is gradually returning to the reference position. When the steering system is recognizing the tendency to gradually return to the reference position. When switching to a state where the trend is continuously far away from the reference position, the action command executed by the controlled object at this time needs to be switched from the second type of action command to the execution of the first type of action command.
同时,为避免因体验者晃动方向盘而出现误判,可以在识别转向系统从逐渐回归参考位置的趋势的状态切换至持续远离参考位置的趋势的状态,并且持续远离参考位置的趋势的状态时的转向偏移量达到第一预设阈值时,控制被控对象从执行第二类动作指令切换至执行第一类动作指令,从而有效提高了判断转向的精确性和准确性,避免出现误判。根据本公开的一个实施例,在转向偏移量未达到第一预设阈值之前,控制被控对象继续执行第二类动作指令。At the same time, in order to avoid misjudgment caused by the experiencer shaking the steering wheel, it is possible to recognize the steering system from a state of gradually returning to the reference position to a state of continuously moving away from the reference position, and a state of continuing to move away from the reference position. When the steering offset reaches the first preset threshold, the controlled object is controlled to switch from executing the second type of action instruction to executing the first type of action instruction, thereby effectively improving the accuracy and accuracy of judging steering and avoiding misjudgments. According to an embodiment of the present disclosure, before the steering offset does not reach the first preset threshold, the controlled object is controlled to continue to execute the second type of action instruction.
也就是说,以被控对象为赛车为例,假设当前赛车当前处于逐渐远离参考位置的状态,如果检测到的转向偏移量未达到第一预设阈值,则说明此时可能是因体验者晃动出现的转向偏移,保持赛车继续执行第二类动作指令,如保持赛车直行。That is to say, taking the controlled object as a racing car as an example, assuming that the current racing car is currently in a state of gradually moving away from the reference position, if the detected steering offset does not reach the first preset threshold, it may be due to the experiencer. Steering deviation due to shaking, keep the car continuing to execute the second type of action command, such as keeping the car going straight.
根据本公开的一个实施例,在识别转向系统处于持续远离参考位置的第一状态时,转向信号包括扭矩信号和转角信号的情况下,在转向偏移量进行阈值判断时,扭矩信号和转角信号中表征偏移量的数据需同时满足各自的阈值,则生成第一类动作指令;在识别转向系统处于持续逐渐回归参考位置的第二状态时,转向信号包括扭矩信号和转角信号的情况下,在转向偏移量进行阈值判断时,扭矩信号和转角信号中表征偏移量的数据中其中一个满足各自的阈值,则生成第二类动作指令。According to an embodiment of the present disclosure, when it is recognized that the steering system is in the first state continuously far away from the reference position, the steering signal includes the torque signal and the rotation angle signal, and when the steering offset is thresholded, the torque signal and the rotation angle signal When the data representing the offset in the data needs to meet the respective thresholds at the same time, the first type of action command is generated; when it is recognized that the steering system is in the second state of continuously returning to the reference position, the steering signal includes a torque signal and a rotation angle signal, When the steering offset is judged by the threshold, if one of the data representing the offset in the torque signal and the rotation angle signal meets the respective threshold, the second type of action command is generated.
作为一个示例,结合扭矩信号和转角信号采取综合控制模式,如图10所示,当转向信号包括扭矩信号和转角信号时,上述的车辆的控制方法,包括以下步骤:As an example, a comprehensive control mode is adopted in combination with the torque signal and the rotation angle signal. As shown in FIG. 10, when the steering signal includes the torque signal and the rotation angle signal, the above-mentioned vehicle control method includes the following steps:
S1101,以中间位置为转角信号的基准,以零扭矩位置为扭矩信号的基准,方向盘转向,通过车载游戏终端采集扭矩信号值和转角信号值。S1101, using the intermediate position as the reference of the rotation angle signal, and using the zero torque position as the reference of the torque signal, steering the steering wheel, and collecting the torque signal value and the rotation angle signal value through the on-board game terminal.
S1102,判断转角信号值是否大于或者等于Game Angle Press Left,并且扭矩信号值是否大于或者等于Game Torque Press Left,如果是,执行步骤S1104,否则,执行步骤S1103。S1102: Determine whether the rotation angle signal value is greater than or equal to Game Angle Press Left, and whether the torque signal value is greater than or equal to Game Torque Press Left, if yes, perform step S1104, otherwise, perform step S1103.
S1103,赛车直线行驶。S1103, the car is driving in a straight line.
S1104,赛车向左转向。S1104, the car turns to the left.
S1105,当方向盘由左向中间位置回正。S1105, when the steering wheel returns to the center position from left to center.
S1106,判断车载游戏终端转角信号是否小于或者等于Game Angle Release Left,或者扭矩信号值是否小于或者等于Game Torque Release Left时,如果是,执行步骤S1107,否则,执行步骤S1104。S1106: When judging whether the rotation angle signal of the in-vehicle game terminal is less than or equal to Game Angle Release Left, or whether the torque signal value is less than or equal to Game Torque Release Left, if yes, perform step S1107; otherwise, perform step S1104.
S1107,当方向盘向右转向,判断车载游戏终端转角信号值小于或者等于Game Angle Press Right,且扭矩信号值是否小于或者等于Game Torque Press Right,如果是,执行步骤S1108,否则,执行步骤S1103。S1107: When the steering wheel is turned to the right, it is determined whether the rotation angle signal value of the in-vehicle game terminal is less than or equal to Game Angle Press Right and whether the torque signal value is less than or equal to Game Torque Press Right. If yes, perform step S1108; otherwise, perform step S1103.
S1108,赛车向右转向。S1108, the car turns to the right.
作为另一个示例,如图11所示,当转向信号包括扭矩信号和转角信号时,上述的车辆的控制方法,包括以下步骤:As another example, as shown in FIG. 11, when the steering signal includes a torque signal and a rotation angle signal, the above-mentioned vehicle control method includes the following steps:
S1201,以中间位置为转角信号的基准,以零扭矩位置为扭矩信号的基准,方向盘转向,通过车载游戏终端采集的扭矩信号值和转角信号值。S1201, using the intermediate position as the reference of the rotation angle signal, and using the zero torque position as the reference of the torque signal, steering the steering wheel, and the torque signal value and the rotation angle signal value collected through the on-board game terminal.
S1202,判断转角信号值是否小于或者等于Game Angle Press Right,并且扭矩信号值是否小于或者等于Game Torque Press Right,如果是,执行步骤S1204,否则,执行步骤S1203。S1202: Determine whether the rotation angle signal value is less than or equal to Game Angle Press Right, and whether the torque signal value is less than or equal to Game Torque Press Right, if yes, perform step S1204, otherwise, perform step S1203.
S1203,赛车直线行驶。S1203, the car is driving in a straight line.
S1204,赛车向右转向。S1204, the car turns to the right.
S1205,当方向盘由左向中间位置回正。S1205, when the steering wheel returns to the center position from left to center.
S1206,判断车载游戏终端转角信号是否大于或者等于Game Angle Release Right时,或者扭矩信号值是否大于或者等于Game Torque Release Right,如果是,执行步骤S1207,否则,执行步骤S1204。S1206: Determine whether the vehicle-mounted game terminal corner signal is greater than or equal to Game Angle Release Right, or whether the torque signal value is greater than or equal to Game Torque Release Right, if yes, perform step S1207, otherwise, perform step S1204.
S1207,当方向盘向左转向,判断车载游戏终端转角信号值大于或者等于Game Angle Press Left,且扭矩信号值是否大于或者等于Game Torque Press Left,如果是,执行步骤S1208,否则,执行步骤S1203。S1207: When the steering wheel is turned to the left, it is determined whether the steering angle signal value of the in-vehicle game terminal is greater than or equal to Game Angle Press Left and whether the torque signal value is greater than or equal to Game Torque Press Left. If yes, perform step S1208; otherwise, perform step S1203.
S1208,赛车向左转向。S1208, the car turns to the left.
需要说明是的,由左转向中间位置回正时,如果回正过程中超调至一定角度,导致转角信号值为负值且小于Game Angle Press Right值,且施加了向右的力矩值导致扭矩信号值为负值且小于Game Torque Press Right值时,则可能违背操作意图导致向右转向,同理需要注意由右转向中间位置回正时,如果回正过程中超调至一定角度,导致转角信号值为正值且大于一定Game Angle Press Left值,且施加了向左的力矩值,导致扭矩信号值为正值且大于一定Game Torque Press Left值时,则可能违背操作意图导致向左转向。It should be noted that when returning to the positive position from the left to the middle position, if the overshoot to a certain angle during the return to the positive process, the corner signal value will be negative and less than the Game Angle Press Right value, and the torque value to the right will be applied to cause the torque signal When the value is negative and less than the Game Torque Press Right value, it may violate the intention of the operation and lead to a right turn. Similarly, you need to pay attention to turning from right to the middle position and returning to the positive position. If the value is over-adjusted to a certain angle during the return process, the corner signal value will be caused. If it is a positive value and greater than a certain Game Angle Press Left value, and a torque value to the left is applied, resulting in a positive torque signal value and greater than a certain Game Torque Press Left value, it may violate the operation intention and cause a left turn.
综上,所有阈值可以根据个人习惯设定,可避免上述问题。In summary, all thresholds can be set according to personal habits, which can avoid the above problems.
根据本公开的一个实施例,上述的车辆的控制方法,还包括:探测阈值设定操作,根 据阈值设定操作,对默认的阈值进行调整;或者,获取车载游戏的操作灵敏度,根据灵敏度对默认的阈值进行调整;或者,获取车载游戏的场景信息,从场景信息中提取路面信息,根据路面信息对默认的阈值进行调整;或者,获取车载游戏的游戏对象的运行速度,根据运行速度,对默认的阈值进行调整。According to an embodiment of the present disclosure, the above-mentioned vehicle control method further includes: detecting a threshold value setting operation, and adjusting the default threshold value according to the threshold value setting operation; or, obtaining the operating sensitivity of the on-board game, and setting the default value according to the sensitivity. Or, obtain the scene information of the car game, extract the road surface information from the scene information, and adjust the default threshold according to the road surface information; or, obtain the running speed of the game object of the car game, and adjust the default value according to the running speed. The threshold is adjusted.
在该实施例中,本公开实施例在对默认的阈值进行调整时,可以分为手动调节和自动调节两类。其中,自动调节模式可根据实际需求进行关闭或者打开其中的子调节项,以保证用户可以优先的使用手动调节模式来满足不同的个性化需求,以及自动调节模式下部分子调节模式适应性差的影响。In this embodiment, when adjusting the default threshold value in the embodiment of the present disclosure, it can be divided into two types: manual adjustment and automatic adjustment. Among them, the automatic adjustment mode can be closed or opened according to actual needs to ensure that the user can preferentially use the manual adjustment mode to meet different individual needs, and the influence of the poor adaptability of the molecular adjustment mode at the lower part of the automatic adjustment mode.
其中,手动调节可以通过实体按键/旋钮调节,或者触屏调节。Among them, manual adjustment can be adjusted by physical buttons/knobs, or by touching the screen.
在一个示例中,用户通过实体按键/旋钮调节方式时,可以手动输入或者调解默认的阈值。其中,手动输入的方式可单独对左右两边的阈值进行调节或设置,从而有效解决转向系统因实车装配差异或者左右胎压差异而导致的左右转向感觉差异的问题。In an example, the user can manually input or adjust the default threshold when the user adjusts the way through the physical button/knob. Among them, the manual input method can separately adjust or set the left and right thresholds, so as to effectively solve the problem of the difference in steering feel caused by the actual vehicle assembly difference or the difference in left and right tire pressures.
在另一个示例中,用户通过触屏调节方式时,可以通过车载pad的默认的阈值设置界面,手动输入或者调解默认的阈值的大小。其中,采用转角信号控制模式时,需用户手动将方向盘调整至中间位置以获取转角零点或者转向系统通过自转至中间位置以获取转角零点值,而采用扭矩信号控制模式则无需回归中间位置以获取扭矩零点,但采用扭矩控制模式时,用户充分释放手力矩方可获取扭矩零点值。相关技术人员可根据实际情况进行两种控制模式的选择或者进行两种模式的融合控制选择In another example, when the user adjusts the way through the touch screen, he can manually input or adjust the size of the default threshold through the default threshold setting interface of the on-board pad. Among them, when the angle signal control mode is adopted, the user needs to manually adjust the steering wheel to the middle position to obtain the angle zero point or the steering system rotates to the middle position to obtain the angle zero point value, while the torque signal control mode does not need to return to the middle position to obtain the torque. Zero point, but when the torque control mode is adopted, the user can obtain the torque zero point value by fully releasing the hand torque. Relevant technicians can choose between two control modes or choose a fusion control of the two modes according to the actual situation
其中,自动调节模式可根据赛车操作灵敏度、或者根据赛车行驶场景、或者根据赛车行驶速度调节。Among them, the automatic adjustment mode can be adjusted according to the operating sensitivity of the racing car, or according to the driving scene of the racing car, or according to the speed of the racing car.
在一个示例中,根据赛车操作灵敏度调节时,可根据赛车游戏设置项中关于操控灵敏度的调节,车载pad接收到游戏反馈的操作灵敏度信息后,车载pad自动减小或增大对应的阈值。其中,具体对应关系为灵敏度高则对应较小的正向阈值与较大的负向阈值,灵敏度低则对应较大的正向阈值与较小的负向阈值。In one example, when adjusting the operating sensitivity according to the racing car, the car-mounted pad can automatically reduce or increase the corresponding threshold after receiving the operating sensitivity information fed back by the game according to the adjustment of the operating sensitivity in the racing game setting items. Among them, the specific corresponding relationship is that a higher sensitivity corresponds to a smaller positive threshold and a larger negative threshold, and a low sensitivity corresponds to a larger positive threshold and a smaller negative threshold.
在另一个示例中,根据赛车行驶场景调节时,可根据赛车行驶的路面差异,如雪地,泥地,沙地,沥青地的不同或者湿滑,干燥路面的不同,车载pad接收到游戏反馈的行驶场景信息后,车载pad自动减小或增大对应的阈值。其中,具体对应关系为路面附着系数高则对应较小的正向阈值与较大的负向阈值,路面附着系数低则对应较大的正向阈值与较小的负向阈值。In another example, when adjusting according to the racing scene, the car pad can receive the game feedback according to the difference of the road surface of the racing car, such as the difference of snow, mud, sand, asphalt, or the difference of wet and dry roads. After the driving scene information, the on-board pad automatically decreases or increases the corresponding threshold. Among them, the specific corresponding relationship is that a high road adhesion coefficient corresponds to a small positive threshold and a large negative threshold, and a low road adhesion coefficient corresponds to a large positive threshold and a small negative threshold.
在再一个示例中,根据赛车行驶速度调节时,车载pad接收到游戏反馈的行驶速度信息后,车载pad自动减小或增大对应的阈值。其中,具体对应关系为车速高则对应较小的正向阈值与较大的负向阈值,车速低则对应较大的正向阈值与较小的负向阈值。In another example, when adjusting according to the driving speed of the racing car, after the car-mounted pad receives the driving speed information fed back by the game, the car-mounted pad automatically decreases or increases the corresponding threshold. Among them, the specific corresponding relationship is that a higher vehicle speed corresponds to a smaller positive threshold and a larger negative threshold, and a low vehicle speed corresponds to a larger positive threshold and a smaller negative threshold.
其中,关于Game Angle PressLeft、GameAngleReleaseLeft、Game Angle PressRight、GameAngleReleaseRight、GameTorquePressLeft、GameTorqueReleaseLeft、 GameTorquePressRight、GameTorqueReleaseRight默认的阈值可以如表1所示。Among them, the default thresholds for Game Angle PressLeft, GameAngleReleaseLeft, Game Angle PressRight, GameAngleReleaseRight, GameTorquePressLeft, GameTorqueReleaseLeft, GameTorquePressRight, and GameTorqueReleaseRight can be shown in Table 1.
表1Table 1
变量名variable name 推荐值 Recommended value
GameAnglePressLeftGameAnglePressLeft 10°10°
GameAngleReleaseLeftGameAngleReleaseLeft
GameAnglePressRightGameAnglePressRight -10°-10°
GameAngleReleaseRightGameAngleReleaseRight -8°-8°
GameTorquePressLeftGameTorquePressLeft 0.5Nm0.5Nm
GameTorqueReleaseLeftGameTorqueReleaseLeft 0.3Nm0.3Nm
GameTorquePressRightGameTorquePressRight -0.5Nm-0.5Nm
GameTorqueReleaseRightGameTorqueReleaseRight -0.3Nm-0.3Nm
此外,表2为分别通过扭矩信号、转角信号、扭矩信号和转角信号对车辆进行控制的优缺点的表格对比示意图,用户可根据自己的驾驶习惯和游戏类型选择设置相应的控制模式。In addition, Table 2 is a comparison diagram of the advantages and disadvantages of controlling the vehicle by torque signal, corner signal, torque signal, and corner signal. Users can choose and set the corresponding control mode according to their driving habits and game types.
表2Table 2
Figure PCTCN2020122174-appb-000001
Figure PCTCN2020122174-appb-000001
根据本公开实施例提出的车辆的控制方法,可以获取车辆上转向系统当前所输出的转 向信号,并获取转向信号的变化趋势,并根据变化趋势和转向信号,控制车载游戏中的被控对象进行动作。由此,通过充分利用转向信号和转向信号的变化趋势来实现对车载游戏的执行动作控制,实现精确控制,同时不改变车辆原有的设备,符合游戏的一些操作习惯,避免方向盘晃动,影响用户体验感,不仅大大增加用户对游戏操控的体验乐趣与便利性,且提高了用户的游戏体验。According to the vehicle control method proposed in the embodiments of the present disclosure, the steering signal currently output by the steering system on the vehicle can be obtained, and the change trend of the steering signal can be obtained, and the controlled object in the vehicle game can be controlled according to the change trend and the steering signal. action. Therefore, by making full use of the steering signal and the change trend of the steering signal to realize the execution control of the on-board game and realize precise control without changing the original equipment of the vehicle. It conforms to some operating habits of the game and avoids the shaking of the steering wheel and affects the user. The sense of experience not only greatly increases the fun and convenience of the user's experience of game control, but also improves the user's gaming experience.
图12是本公开实施例的电子设备的方框示意图。如图12所示,该电子设备10包括:存储器100、处理器200;其中,处理器200通过读取存储器100中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于实现上述的车辆的控制方法。Fig. 12 is a schematic block diagram of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 12, the electronic device 10 includes: a memory 100 and a processor 200; wherein the processor 200 reads the executable program code stored in the memory 100 to run a program corresponding to the executable program code for use in Realize the above-mentioned vehicle control method.
本公开实施例提出了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,该程序被处理器执行时实现上述的车辆的控制方法。The embodiment of the present disclosure proposes a computer-readable storage medium, and the computer-readable storage medium stores a computer program, and when the program is executed by a processor, the above-mentioned vehicle control method is realized.
在本公开的描述中,需要理解的是,术语“中心”、“纵向”、“横向”、“长度”、“宽度”、“厚度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”“内”、“外”、“顺时针”、“逆时针”、“轴向”、“径向”、“周向”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本公开和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本公开的限制。In the description of the present disclosure, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", " Back", "Left", "Right", "Vertical", "Horizontal", "Top", "Bottom", "Inner", "Outer", "Clockwise", "Counterclockwise", "Axial", The orientation or positional relationship indicated by "radial", "circumferential", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying the pointed device or element It must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present disclosure.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本公开的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
在本公开中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本公开中的具体含义。In the present disclosure, unless otherwise clearly defined and defined, the terms "installed", "connected", "connected", "fixed" and other terms should be understood in a broad sense, for example, it may be a fixed connection or a detachable connection. , Or integrated; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediary, it can be the internal connection of two components or the interaction relationship between two components, unless otherwise specified The limit. For those of ordinary skill in the art, the specific meaning of the above-mentioned terms in the present disclosure can be understood according to specific circumstances.
在本公开中,除非另有明确的规定和限定,第一特征在第二特征“上”或“下”可以是第一和第二特征直接接触,或第一和第二特征通过中间媒介间接接触。而且,第一特征在第二特征“之上”、“上方”和“上面”可是第一特征在第二特征正上方或斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”可以是第一特征在第二特征正下方或斜下方,或仅仅表示第一特征水平高度小于第二特征。In the present disclosure, unless otherwise clearly defined and defined, the first feature “on” or “under” the second feature may be in direct contact with the first and second features, or the first and second features may be indirectly through an intermediary. contact. Moreover, the "above", "above" and "above" of the first feature on the second feature may mean that the first feature is directly above or diagonally above the second feature, or it simply means that the level of the first feature is higher than the second feature. The “below”, “below” and “below” of the second feature of the first feature may be that the first feature is directly below or obliquely below the second feature, or it simply means that the level of the first feature is smaller than the second feature.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本公开的至少一个实施例或示例中。在本说明书中,对上述术语的示意 性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. mean specific features described in conjunction with the embodiment or example , Structures, materials, or characteristics are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the described specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples and the features of the different embodiments or examples described in this specification without contradicting each other.
尽管上面已经示出和描述了本公开的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本公开的限制,本领域的普通技术人员在本公开的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above-mentioned embodiments are exemplary and should not be construed as limiting the present disclosure. Those of ordinary skill in the art can comment on the foregoing within the scope of the present disclosure. The embodiment undergoes changes, modifications, substitutions, and modifications.

Claims (13)

  1. 一种车辆的控制方法,包括以下步骤:A vehicle control method includes the following steps:
    获取车辆上转向系统当前所输出的转向信号,其中,所述转向信号包括扭矩信号和转角信号中的至少一个;Acquiring a steering signal currently output by a steering system on the vehicle, where the steering signal includes at least one of a torque signal and a steering angle signal;
    获取所述转向信号的变化趋势,其中,所述变化趋势用于表征所述转向系统远离或者回归参考位置;Acquiring a change trend of the steering signal, where the change trend is used to characterize that the steering system is away from or returns to a reference position;
    根据所述变化趋势和所述转向信号,控制车载游戏中的被控对象进行动作。According to the changing trend and the turning signal, the controlled object in the vehicle-mounted game is controlled to perform actions.
  2. 根据权利要求1所述的方法,其中,所述根据所述变化趋势和所述转向信号,控制车载游戏中的被控对象进行动作,包括:The method according to claim 1, wherein the controlling the controlled object in the vehicle-mounted game to perform actions according to the change trend and the turning signal comprises:
    根据所述变化趋势,识别所述转向系统处于持续远离参考位置的第一状态;According to the change trend, identifying that the steering system is in the first state that is continuously away from the reference position;
    根据所述转向信号,识别所述转向系统的转向方向和转向偏移量;Identifying the steering direction and steering offset of the steering system according to the steering signal;
    根据所述转向系统的转向方向和所述转向偏移量,生成所述被控对象的第一类动作指令。According to the steering direction of the steering system and the steering offset, a first-type action instruction of the controlled object is generated.
  3. 根据权利要求2所述的方法,其中,所述生成所述被控对象的第一类动作指令之前,还包括:The method according to claim 2, wherein before said generating the first-type action instruction of the controlled object, the method further comprises:
    确定所述转向偏移量达到第一预设阈值。It is determined that the steering offset reaches a first preset threshold.
  4. 根据权利要求3所述的方法,其中,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    确定所述转向偏移量未达到第一预设阈值,则控制所述被控对象执行第二类动作指令。It is determined that the steering offset does not reach the first preset threshold, then the controlled object is controlled to execute the second type of action instruction.
  5. 根据权利要求4所述的方法,其中,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    根据所述变化趋势,识别所述转向系统处于逐渐回归参考位置的第二状态;According to the change trend, identifying that the steering system is in the second state of gradually returning to the reference position;
    根据所述转向系统的转向方向和所述转向偏移量,生成所述被控对象的第二类动作指令。According to the steering direction of the steering system and the steering offset, a second-type action instruction of the controlled object is generated.
  6. 根据权利要求5所述的方法,其中,所述生成所述被控对象的第二类动作指令之前,还包括:The method according to claim 5, wherein before said generating the second-type action instruction of the controlled object, the method further comprises:
    确定所述转向偏移量回归至第二预设阈值。It is determined that the steering offset returns to the second preset threshold.
  7. 根据权利要求6所述的方法,其中,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    识别所述转向偏移量未回归至所述第二预设阈值,则控制所述被控对象执行第一类动作指令。Recognizing that the steering offset has not returned to the second preset threshold, then controlling the controlled object to execute the first type of action instruction.
  8. 根据权利要求7所述的方法,其中,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    根据所述变化趋势,识别所述转向系统从所述第二状态切换至所述第一状态;According to the change trend, identifying that the steering system is switched from the second state to the first state;
    检测并识别所述转向偏移量达到第一预设阈值,则控制所述被控对象从执行所述第二类动作指令切换至执行所述第一类动作指令。It is detected and recognized that the steering offset reaches a first preset threshold, and the controlled object is controlled to switch from executing the second type of action instruction to executing the first type of action instruction.
  9. 根据权利要求8所述的方法,其中,所述方法还包括:The method according to claim 8, wherein the method further comprises:
    在所述转向偏移量未达到第一预设阈值之前,控制所述被控对象继续执行所述第二类动作指令。Before the steering offset does not reach the first preset threshold, control the controlled object to continue to execute the second type of action instruction.
  10. 根据权利要求1-9任一项所述的方法,其中,The method according to any one of claims 1-9, wherein:
    在识别所述转向系统处于持续远离参考位置的第一状态时,所述转向信号包括所述扭矩信号和所述转角信号的情况下,在所述转向偏移量进行阈值判断时,所述扭矩信号和所述转角信号中表征偏移量的数据需同时满足各自的阈值,则生成第一类动作指令;When it is recognized that the steering system is in the first state that is continuously far away from the reference position, and the steering signal includes the torque signal and the rotation angle signal, when the steering offset is subjected to a threshold judgment, the torque The signal and the data representing the offset in the rotation angle signal need to meet their respective thresholds at the same time, then the first type of action instruction is generated;
    在识别所述转向系统处于持续逐渐回归参考位置的第二状态时,所述转向信号包括所述扭矩信号和所述转角信号的情况下,在所述转向偏移量进行阈值判断时,所述扭矩信号和所述转角信号中表征偏移量的数据中其中一个满足各自的阈值,则生成第二类动作指令。When it is recognized that the steering system is in the second state of continuously returning to the reference position and the steering signal includes the torque signal and the steering angle signal, when the steering offset is subjected to a threshold judgment, the When one of the data representing the offset in the torque signal and the rotation angle signal meets the respective threshold, the second type of action command is generated.
  11. 根据权利要求10所述的方法,其中,所述方法还包括:The method according to claim 10, wherein the method further comprises:
    探测阈值设定操作,根据所述阈值设定操作,对默认的阈值进行调整;或者,The detection threshold setting operation is to adjust the default threshold according to the threshold setting operation; or,
    获取所述车载游戏的操作灵敏度,根据所述灵敏度对默认的阈值进行调整;或者,Acquire the operating sensitivity of the vehicle-mounted game, and adjust the default threshold according to the sensitivity; or,
    获取所述车载游戏的场景信息,从所述场景信息中提取路面信息,根据所述路面信息对默认的阈值进行调整;或者,Acquire scene information of the vehicle-mounted game, extract road surface information from the scene information, and adjust the default threshold according to the road surface information; or,
    获取所述车载游戏的游戏对象的运行速度,根据所述运行速度,对默认的阈值进行调整。The running speed of the game object of the vehicle-mounted game is acquired, and the default threshold is adjusted according to the running speed.
  12. 一种电子设备,包括存储器、处理器;An electronic device including a memory and a processor;
    其中,所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于实现如权利要求1-11中任一所述的车辆的控制方法。Wherein, the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory, so as to realize the vehicle operation according to any one of claims 1-11. Control Method.
  13. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,该程序被处理器执行时实现如权利要求1-11中任一所述的车辆的控制方法。A computer-readable storage medium storing a computer program, which when executed by a processor, realizes the vehicle control method according to any one of claims 1-11.
PCT/CN2020/122174 2019-10-31 2020-10-20 Vehicle control method, electronic device and storage medium WO2021082984A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911054837.3A CN112742021A (en) 2019-10-31 2019-10-31 Vehicle and vehicle control method and device
CN201911054837.3 2019-10-31

Publications (1)

Publication Number Publication Date
WO2021082984A1 true WO2021082984A1 (en) 2021-05-06

Family

ID=75645565

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/122174 WO2021082984A1 (en) 2019-10-31 2020-10-20 Vehicle control method, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN112742021A (en)
WO (1) WO2021082984A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9789896B2 (en) * 2014-07-09 2017-10-17 Tampereen Yliopisto Haptic device
CN109847337A (en) * 2018-12-24 2019-06-07 北京梧桐车联科技有限责任公司 Game control method and device, storage medium
CN110368679A (en) * 2019-08-07 2019-10-25 广州小鹏汽车科技有限公司 Vehicle-mounted method for gaming, device, vehicle and machine readable media
CN110368682A (en) * 2019-08-07 2019-10-25 广州小鹏汽车科技有限公司 A kind of interactive system and method for vehicle-mounted game

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104175902B (en) * 2014-07-25 2016-04-13 南京航空航天大学 The torque distribution control method of electric wheel truck wheel hub motor torque-split system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9789896B2 (en) * 2014-07-09 2017-10-17 Tampereen Yliopisto Haptic device
CN109847337A (en) * 2018-12-24 2019-06-07 北京梧桐车联科技有限责任公司 Game control method and device, storage medium
CN110368679A (en) * 2019-08-07 2019-10-25 广州小鹏汽车科技有限公司 Vehicle-mounted method for gaming, device, vehicle and machine readable media
CN110368682A (en) * 2019-08-07 2019-10-25 广州小鹏汽车科技有限公司 A kind of interactive system and method for vehicle-mounted game

Also Published As

Publication number Publication date
CN112742021A (en) 2021-05-04

Similar Documents

Publication Publication Date Title
KR20180104938A (en) Apparatus for changing lane of vehicle, system having the same and method thereof
CN104583723B (en) Operation device
US20150153936A1 (en) Integrated multimedia device for vehicle
WO2014171171A1 (en) Vehicular electronic device
US10967737B2 (en) Input device for vehicle and input method
JP5641367B2 (en) Operation input system
CN105556632B (en) Touch detecting apparatus and vehicle navigation apparatus
CN105283356A (en) Program, method, and device for controlling application, and recording medium
US9298306B2 (en) Control apparatus and computer program product for processing touchpad signals
CN108140313A (en) Parking aid and parking assistance method
JP2011201497A (en) Operation accepting device, method and program
JP2004362429A (en) Command input device using touch panel display
KR20210026360A (en) Apparatus and Method for controlling steering, and system for assisting steering comprising the same
JP2021082202A (en) Display device and display program
WO2021082984A1 (en) Vehicle control method, electronic device and storage medium
CN115515842A (en) Activating an automatic parking operation by an activation movement performed with a mobile communication device
CN109891382B (en) Gesture-based user interface
US20220234444A1 (en) Input device
JP2011192231A (en) In-vehicle input device, and input program therefor
JP2009271760A (en) Parking support system
JP6221739B2 (en) In-vehicle electronic device, control method, and program
JP6123474B2 (en) Driving evaluation device
JP2008126920A (en) Vehicular input device
CN112807674B (en) Method for simulating key operation of steering wheel, vehicle-mounted display terminal, vehicle and medium
JP7340150B2 (en) Operation image display device, operation image display system, and operation image display program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20880946

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20880946

Country of ref document: EP

Kind code of ref document: A1