CN112569609B - Vehicle and game control method and device thereof - Google Patents

Vehicle and game control method and device thereof Download PDF

Info

Publication number
CN112569609B
CN112569609B CN201910939593.0A CN201910939593A CN112569609B CN 112569609 B CN112569609 B CN 112569609B CN 201910939593 A CN201910939593 A CN 201910939593A CN 112569609 B CN112569609 B CN 112569609B
Authority
CN
China
Prior art keywords
pedal
depth
accelerator pedal
vehicle
opening
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910939593.0A
Other languages
Chinese (zh)
Other versions
CN112569609A (en
Inventor
余信
彭邦煌
张永增
潘登辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201910939593.0A priority Critical patent/CN112569609B/en
Publication of CN112569609A publication Critical patent/CN112569609A/en
Application granted granted Critical
Publication of CN112569609B publication Critical patent/CN112569609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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
    • 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/55Controlling game characters or game objects based on the game progress
    • 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/90Constructional details or arrangements of video game devices not provided for in groups A63F13/20 or A63F13/25, e.g. housing, wiring, connections or cabinets
    • A63F13/98Accessories, i.e. detachable arrangements optional for the use of the video game device, e.g. grip supports of game controllers

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Mechanical Control Devices (AREA)

Abstract

The application provides a vehicle and a control method and device of a game thereof, wherein the method comprises the following steps: identifying that the vehicle is in an on-board game mode; acquiring the type and the opening depth of a pedal, wherein the pedal type comprises an accelerator pedal and a brake pedal; identifying a target movement state according to the pedal type and the opening depth; and carrying out movement control on the controlled object in the vehicle-mounted game according to the target movement state, and controlling the speed change of the movement of the vehicle-mounted game scene.

Description

Vehicle and game control method and device thereof
Technical Field
The present invention relates to the field of vehicle technologies, and in particular, to a vehicle and a game control method and apparatus thereof.
Background
In the related art, the full electric vehicle is controlled to simulate driving by using the characteristic of electronic control of the height of the full electric vehicle and adopting a whole vehicle controller. However, in the related art, when the game simulation driving is performed, an error exists in the calculation method of the vehicle speed control, the game adaptation range is narrow, and the speed change feeling of the game simulation driving is poor.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems in the related art to some extent.
To this end, a first object of the present invention is to propose a control method of a vehicle-mounted game to realize speed variation control of a vehicle-mounted game scene movement.
A second object of the present invention is to provide a control device for a vehicle-mounted game.
A third object of the present invention is to propose a vehicle.
A fourth object of the present invention is to propose a computer readable storage medium.
To achieve the above object, an embodiment of a first aspect of the present invention provides a method for controlling a vehicle-mounted game, including the following steps: identifying that the vehicle is in an on-board game mode; acquiring the type and the opening depth of a pedal, wherein the pedal type comprises an accelerator pedal and a brake pedal; identifying a target movement state according to the pedal type and the opening depth; and carrying out movement control on the controlled object in the vehicle-mounted game according to the target movement state.
According to one embodiment of the present invention, the identifying the target movement state according to the pedal type and the opening depth includes: judging whether the opening depth is larger than or equal to a preset depth threshold value; if yes, the controlled object is controlled to respond to the control instruction of the pedal; if not, the target movement state is set to a sliding movement state.
According to one embodiment of the present invention, the accelerator pedal is determined to be turned on according to the pedal type, and the controlling the controlled object in response to a control instruction of the pedal includes: determining that the accelerator pedal is turned on according to the pedal type; and setting the target movement state to be an acceleration movement state when the opening depth of the accelerator pedal is greater than or equal to an accelerator pedal depth threshold.
According to one embodiment of the present invention, when the opening depth of the accelerator pedal is greater than or equal to the accelerator pedal depth threshold, the method further includes: identifying an accelerator pedal depth interval in which the opening depth of the accelerator pedal is positioned; acquiring an acceleration rate matched with the depth interval of the accelerator pedal according to the depth interval of the accelerator pedal; wherein the acceleration rate is positively correlated with the opening depth of the accelerator pedal.
According to one embodiment of the present invention, the accelerator pedal is determined to be turned on according to the pedal type, and the controlling the controlled object in response to a control instruction of the pedal includes: determining that the brake pedal is turned on according to the pedal type; and setting the target movement state to a braking state when the opening depth of the brake pedal is greater than or equal to a brake pedal depth threshold.
According to one embodiment of the present invention, when the opening depth of the brake pedal is greater than or equal to the brake pedal depth threshold, the method further includes: identifying a brake pedal depth interval in which the opening depth of the brake pedal is located; acquiring a braking rate matched with the braking pedal depth interval according to the braking pedal depth interval; wherein the acceleration rate is positively correlated with the opening depth of the brake pedal.
According to one embodiment of the present invention, before identifying a target movement state, it includes: and respectively acquiring an acceleration mapping curve matched with the accelerator pedal and a brake mapping curve matched with the brake pedal according to the pedal type.
According to one embodiment of the present invention, the identifying the target movement state includes: acquiring an acceleration rate corresponding to the opening depth of the accelerator pedal according to the acceleration mapping curve; or according to the brake mapping curve, acquiring a brake rate corresponding to the opening depth of the brake pedal.
According to the control method of the vehicle-mounted game, disclosed by the embodiment of the invention, the type and the opening depth of the pedal can be identified, the corresponding target moving state is obtained, and the controlled object in the vehicle-mounted game is subjected to moving control according to the target moving state, so that a user experiences more real driving speed change when simulating the vehicle-mounted game, and the game experience is improved.
To achieve the above object, a second aspect of the present invention provides a control device for a vehicle-mounted game, including: the device comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring the type and the opening depth of a pedal, and the pedal type comprises an accelerator pedal and a brake pedal; the identification module is used for identifying a target moving state according to the pedal type and the opening depth; and the control module is used for carrying out movement control on the controlled object in the vehicle-mounted game according to the target movement state.
To achieve the above object, an embodiment of a third aspect of the present invention provides a vehicle including the control device for a vehicle-mounted game.
In order to achieve the above object, a fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the control method of the in-vehicle game.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flow chart of a control method of a vehicle-mounted game according to an embodiment of the present invention;
FIG. 2 is a flow chart of a control method of a vehicle-mounted game according to an embodiment of the present invention;
FIG. 3 is a flowchart of a control method of a vehicle-mounted game according to another embodiment of the present invention;
FIG. 4 is a flowchart of a control method of a vehicle-mounted game according to still another embodiment of the present invention;
FIG. 5 is a flowchart of a control method of a vehicle-mounted game according to still another embodiment of the present invention;
FIG. 6 is a flowchart of a control method of a vehicle-mounted game according to still another embodiment of the present invention;
FIG. 7 is a block diagram schematically illustrating a control apparatus for a vehicle-mounted game according to an embodiment of the present invention;
fig. 8 is a block schematic diagram of a vehicle according to an embodiment of the invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present invention and should not be construed as limiting the invention.
In the related art, the automobile games mainly comprise a mobile phone screen touch screen operation mode, a handle operation mode, a driving simulation cabin operation mode and the like. The operation modes of the mobile phone touch screen and the game handle mainly operate actions of game target objects in a key mode, and compared with a vehicle-mounted game, the mobile phone touch screen and the game handle have poor interestingness due to lack of actual driving feeling. The driving simulation cabin is compared with the vehicle-mounted game, although the operation experience is almost similar, the game type of the driving simulator is single, the variety requirements of players cannot be met, and the driving simulation cabin and the vehicle-mounted game are different in signal processing. The vehicle-mounted game combines the sensor and the whole vehicle controller to operate through the CAN network operation signal sensor game interface end, and CAN adapt to various vehicle types and vehicle-mounted games.
The following describes a vehicle and a control method and apparatus of a game thereof according to an embodiment of the present invention with reference to the accompanying drawings.
Fig. 1 is a flowchart of a control method of a vehicle-mounted game according to an embodiment of the present invention. As shown in fig. 1, the control method of the vehicle-mounted game according to the embodiment of the invention includes the following steps:
s101: the vehicle is identified as being in an on-board game mode.
The vehicle-mounted game mode may be a mode of performing game simulation in vehicle parking. In the mode, the game scene can be displayed through the vehicle-mounted game terminal or projected to a position of a windshield, a side glass and/or a rearview mirror and the like so as to simulate a real driving environment for a user, and the user can map the real driving environment into a game through pedal operation so as to truly simulate driving feeling.
S102: the type and opening depth of the pedal are obtained.
The pedal types include an accelerator pedal and a brake pedal, among others.
S103: and identifying the target movement state according to the pedal type and the opening depth.
S104: and performing movement control on the controlled object in the vehicle-mounted game according to the target movement state.
That is, in order to secure the sense of realism of driving when the user performs the in-vehicle game control, it is possible to perform an acceleration operation during the game simulation by depressing the acceleration pedal and a brake operation during the game simulation by depressing the brake pedal. In the embodiment of the invention, the type and the opening depth of the pedal are further identified, the corresponding target moving state is obtained, and the controlled object in the vehicle-mounted game is subjected to moving control according to the target moving state, so that a user experiences more real driving speed change when simulating the vehicle-mounted game, and the game experience is improved.
The controlled object in the vehicle-mounted game is usually scene information in the game or racing car in the game, when the controlled object is a scene, the scene information can be accelerated to display conversion in the acceleration process, the scene information can be stopped to be converted in the braking process, and when the controlled object is a racing car, the driving data of the racing car can be controlled to be acceleration data in the acceleration process, and the driving data of the racing car is controlled to be braking data in the braking process.
It should be understood that the accelerator pedal and the brake pedal CAN respectively generate an acceleration signal and a brake signal, the acceleration signal and the brake signal are collected through the whole vehicle controller VCU, the opening depth of the accelerator pedal and the opening depth of the brake pedal are sent to the gateway through the controller CAN line after the whole vehicle controller VCU is operated, the signals are forwarded to the game terminal through the gateway, and after the game terminal receives the required CAN line signals through the whole vehicle CAN line network, the game terminal is mapped into work input event instructions corresponding to slow acceleration, rapid acceleration, slow braking and rapid braking of the vehicle in the vehicle-mounted racing game through a developed built-in application program or a bottom driver corresponding to the game terminal.
According to one embodiment of the invention, the accelerator pedal depth signal in the CAN network is an unsigned periodic signal with a period of 20ms. The vehicle-mounted game terminal receives the accelerator pedal depth CAN signal forwarded by the gateway and maps the signal into a vehicle acceleration action input event instruction required by the vehicle-mounted game.
As shown in fig. 2, in identifying the target movement state according to the pedal type and the opening depth, it includes:
s201: judging whether the opening depth is larger than or equal to a preset depth threshold value.
S202: if so, the controlled object is controlled to respond to the control instruction of the pedal.
S203: if not, the target movement state is set to the coasting movement state.
Specifically, the accelerator pedal opening is determined according to the pedal type, as shown in fig. 3, and the controlled object is controlled to respond to the control instruction of the pedal, including:
s301: when the opening depth of the accelerator pedal is greater than or equal to the accelerator pedal depth threshold value, the target movement state is set to the accelerator movement state.
S302: when the opening depth of the accelerator pedal is smaller than the accelerator pedal depth threshold value, the target movement state is set to the coasting movement state.
That is, firstly, the type of the pedal triggered by the user is identified, the triggered pedal is determined to be an accelerator pedal, then, whether the opening depth of the accelerator pedal is larger than or equal to an accelerator pedal depth threshold value is judged, if the opening depth of the accelerator pedal is larger than or equal to the accelerator pedal depth threshold value, the target moving state is set to be an accelerating moving state, namely, the controlled object in the vehicle-mounted game moves in an accelerating way, for example, the racing car in the racing car game continuously runs in an accelerating way; if the opening depth of the accelerator pedal is smaller than the accelerator pedal depth threshold value, the target movement state is set to a coasting movement state, that is, the controlled object in the in-vehicle game is coasted at a reduced speed. Wherein the deceleration coasting movement is a freewheeling movement without acceleration power supply.
It should be understood that the accelerator pedal depth threshold is a threshold for triggering the accelerated movement of racing car and/or scene information, that is, when the opening depth of the accelerator pedal is smaller than the accelerator pedal depth threshold, the accelerator pedal is determined to be triggered by mistake, at this time, the controlled object is not required to be controlled to perform the accelerated operation, and only when the opening depth of the accelerator pedal is continuously increased until the accelerator pedal depth threshold is reached, the controlled object is controlled to move according to the acceleration movement state.
It should also be understood that, because the accelerator pedal is a control instruction for providing acceleration power to the controlled object, when the user needs to control continuous acceleration movement of the controlled object, for example, when the racing car continues to accelerate, the user needs to control the opening depth of the accelerator pedal to be greater than or equal to the accelerator pedal depth threshold value, and when the user releases the accelerator pedal to make its opening degree smaller than the accelerator pedal depth threshold value, it is determined that the supply of acceleration power to the controlled object is stopped, at this time, the controlled object can move in a deceleration sliding state until stopping due to friction or the like (a state simulating that sliding is decelerated until stopping when no power is provided when the vehicle actually runs).
Further, as shown in fig. 4, when the opening depth of the accelerator pedal is greater than or equal to the accelerator pedal depth threshold, the method further includes:
s401: an accelerator pedal depth interval in which an opening depth of an accelerator pedal is located is identified.
S402: and acquiring the acceleration rate matched with the depth interval of the accelerator pedal according to the depth interval of the accelerator pedal.
Wherein the acceleration rate is positively correlated with the opening depth of the accelerator pedal.
That is, after determining that the target movement state is the acceleration movement state according to the opening depth of the accelerator pedal, a corresponding accelerator pedal depth interval may be further determined according to the opening depth of the accelerator pedal, wherein each accelerator pedal depth interval corresponds to one acceleration rate, that is, the acceleration rate of the acceleration movement may be controlled according to the acceleration rate corresponding to the accelerator pedal depth interval. The acceleration rate may be the acceleration of the acceleration movement.
For example, assuming that the accelerator pedal depth may be divided into two accelerator pedal depth intervals, it is determined whether the opening depth of the accelerator pedal is greater than a minimum value of a certain accelerator pedal depth interval and less than a maximum value of the depth pedal depth interval, if so, the acceleration rate corresponding to the accelerator pedal depth interval is further obtained, and the controlled object is controlled to move according to the obtained acceleration rate. The depth interval of the accelerator pedal can be divided according to the depth of the accelerator pedal, and the depth interval of the accelerator pedal is divided into two accelerator pedal depth intervals, wherein the first accelerator pedal depth interval can be 5% -55%, the second accelerator pedal depth interval can be 55% -100%, the user can set the depth interval during each game, the game system can comprehensively give recommended setting values of the depth interval of the accelerator pedal according to the historical racing car speed record of a racing car played by the user before and the driving habit of the user in a conventional driving mode, and the comfort of stepping on the pedal during the game played by the user and the personalized driving habit of the user are guaranteed. The acceleration rate is positively correlated with the opening depth of the accelerator pedal, that is, the acceleration rate corresponding to the second accelerator pedal depth interval is greater than the acceleration rate corresponding to the first accelerator pedal depth interval, and when the opening depth of the accelerator pedal is in the second accelerator pedal depth interval, the controlled object moves at the highest speed, so that the effect of rapid acceleration and forward movement of the vehicle is created.
Specifically, if a user plays a game with a vehicle, setting an accelerator pedal function on a vehicle-mounted terminal to enable a racing car to accelerate to move beyond an accelerator pedal depth threshold value, and keeping the current state of the racing car when the accelerator pedal function is smaller than the accelerator pedal depth threshold value; when the user steps on the accelerator pedal, the acceleration is a1 when the depth of the accelerator pedal is in a first accelerator pedal depth interval, and the acceleration is a2 when the depth of the accelerator pedal is in a second accelerator pedal depth interval, wherein a2 is more than a1; when the speed of the racing car in the game is 50km/h, the user steps on the accelerator pedal, the depth of the accelerator pedal is in a second accelerator pedal depth interval, after t1 time, the speed is (50+t1a2) km/h, the depth of the accelerator pedal stepped on by the user is changed, the depth of the accelerator pedal is changed to be in a first accelerator pedal depth interval, after t2 time, the speed is (50+t1a2+t2a1) km/h, and when the user releases the accelerator pedal, the racing car gradually decelerates at the speed of (50+t1a2+t2a1) km/h until stopping or receiving a new control command.
Therefore, different accelerator pedal depth intervals are divided into different accelerator pedal opening depths, so that the controlled object can change according to different acceleration rates, different game experience requirements of a user in a game process can be met, and the game experience effect is improved.
It should be further understood that, in order to make the vehicle-mounted game have universality, a game setting function may be added, for example, in order to facilitate a user who continuously steps on the pedal inconveniently to play the game, or a setting scheme of keeping the current speed running at a constant speed may be provided after the accelerator pedal is released, that is, after the keeping speed scheme is provided, the user may only need to step on the accelerator pedal once to implement an operation of changing the subsequent moving speed of the controlled object, so that the controlled object may continuously run at the current speed, and the user may only need to control other parameters such as directions in the subsequent game process until the user steps on the accelerator pedal again to adjust the accelerating speed, or steps on the brake pedal to brake.
It should be appreciated that the accelerator pedal depth threshold and the division of accelerator pedal depth intervals may be adjusted according to different vehicle models, different games, and customer gaming needs.
According to one embodiment of the invention, the brake pedal depth signal in the CAN network is an unsigned periodic signal with a period of 20ms. The vehicle-mounted game terminal receives the brake pedal depth CAN signal forwarded by the gateway and maps the signal into a vehicle brake action input event command required by the vehicle-mounted game.
As shown in fig. 5, determining that the brake pedal is turned on according to the pedal type, controlling the controlled object in response to the control instruction of the pedal includes:
s501: when the opening depth of the brake pedal is greater than or equal to the brake pedal depth threshold value, the target movement state is set to the braking state.
S502: when the opening depth of the brake pedal is smaller than the brake pedal depth threshold value, the target movement state is set to the coasting movement state.
That is, the type of the pedal triggered by the user is first identified, the triggered pedal is determined to be a brake pedal, then, whether the opening depth of the brake pedal is greater than or equal to a brake pedal depth threshold value is determined, if the opening depth of the brake pedal is greater than or equal to the brake pedal depth threshold value, the target movement state is set to a braking state, that is, the controlled object in the vehicle-mounted game is decelerated under the action of braking force, that is, the time of decelerating and sliding until stopping is reduced under the action of the braking force, and if the opening depth of the brake pedal is less than the brake pedal depth threshold value, the target movement state is set to a sliding movement state, that is, the controlled object in the vehicle-mounted game is decelerated and slides or keeps the current vehicle speed to slide at a constant speed. Wherein the deceleration coasting movement is a freewheeling movement without acceleration power supply.
It should be understood that the brake pedal depth threshold is a threshold that triggers racing and/or scene information to accelerate braking, i.e., when the opening depth of the brake pedal is smaller than the brake pedal depth threshold, it may be determined that the brake pedal is triggered by mistake, at this time, the controlled object is not required to be controlled to generate braking operation, and only when the opening depth of the brake pedal is continuously increased until the brake pedal depth threshold is reached, the controlled object is controlled to accelerate stopping according to the braking state.
It should also be appreciated that since the brake pedal is the command to provide braking force to the controlled object, the user is required to control the depth of opening of the brake pedal to continue to be greater than or equal to the brake pedal depth threshold value, as the user is required to control the controlled object to continue to accelerate to stop before it has stopped, e.g., the racing car is stopped by accelerating the braking force rather than slowing down through the friction process in coasting until it is stopped. After the controlled object finally stops under the control of braking force, the controlled object is in a stop state before a start control instruction (for example, the opening degree of an accelerator pedal is greater than or equal to the depth threshold value of the accelerator pedal) is not acquired, that is, when a user releases the brake pedal, no new influence is generated on the controlled object.
Further, as shown in fig. 6, when the opening depth of the brake pedal is greater than or equal to the brake pedal depth threshold, the method further includes:
s601: a brake pedal depth interval in which a brake pedal opening depth is located is identified.
S602: and acquiring the braking rate matched with the depth interval of the brake pedal according to the depth interval of the brake pedal.
Wherein the brake rate is positively correlated to the depth of opening of the brake pedal.
That is, after determining that the target movement state is the brake movement state according to the opening depth of the brake pedal, a corresponding brake pedal depth interval may be further determined according to the opening depth of the brake pedal, wherein each brake pedal depth interval corresponds to a brake rate, that is, the brake rate of the brake movement may be controlled according to the brake rate corresponding to the brake pedal depth interval. Wherein the braking rate may be the acceleration of the brake.
For example, if the brake pedal depth is divided into two brake pedal depth intervals, it is determined whether the opening depth of the brake pedal is greater than a minimum value of a certain brake pedal depth interval and less than a maximum value of the depth pedal depth interval, if so, a brake rate corresponding to the brake pedal depth interval is further obtained, and brake control is performed on the controlled object according to the obtained brake rate. The brake pedal depth interval may be divided according to the depth of the brake pedal, for example, two brake pedal depth intervals may be divided, the first brake pedal depth interval may be 5% -55%, the second brake pedal depth interval may be 55% -100%, and the user may set the brake pedal depth interval during each game. The braking speed is positively related to the opening depth of the brake pedal, that is, the braking speed corresponding to the second brake pedal depth interval is greater than the braking speed corresponding to the first brake pedal depth interval, and when the opening depth of the brake pedal is in the second brake pedal depth interval, the controlled object immediately stops moving, so that the emergency braking effect of the vehicle is created.
It should be appreciated that the brake pedal depth threshold and the division of the brake pedal depth interval may be adjusted according to different vehicle models, different games, and customer gaming needs.
According to another embodiment of the present invention, before identifying a target movement state, it includes: and respectively acquiring an acceleration mapping curve matched with the accelerator pedal and a brake mapping curve matched with the brake pedal according to the pedal type.
Further, identifying the target movement state includes: acquiring an acceleration rate corresponding to the opening depth of an accelerator pedal according to the acceleration mapping curve; or according to the brake mapping curve, acquiring the brake rate corresponding to the opening depth of the brake pedal.
That is, a curve matching the opening depth of the pedal may be further set to obtain a corresponding control rate according to different opening depths of the pedal, wherein the accelerator pedal is matched with an acceleration map curve, and the greater the acceleration rate matched from the acceleration map curve is as the opening depth of the accelerator pedal increases, the greater the brake rate matched from the acceleration map curve is as the opening depth of the brake pedal increases, and similarly, the brake pedal is matched with a brake map curve.
In summary, according to the control method for the vehicle-mounted game provided by the embodiment of the invention, the type and the opening depth of the pedal can be identified, the corresponding target moving state is obtained, and the controlled object in the vehicle-mounted game is subjected to moving control according to the target moving state, so that a user experiences more real driving speed change when simulating the vehicle-mounted game, and the game experience is improved.
In order to achieve the above embodiment, the present invention further provides a control device for a vehicle-mounted game.
Fig. 7 is a block diagram of a control device for a vehicle-mounted game according to an embodiment of the present invention. As shown in fig. 7, the control device 100 for the in-vehicle game includes: an acquisition module 10, an identification module 20 and a control module 30.
Wherein, the acquisition module 10 is used for acquiring the type and the opening depth of a pedal, wherein the pedal type comprises an accelerator pedal and a brake pedal; an identification module 20 for identifying a target movement state according to the pedal type and the opening depth; and the control module 30 is used for carrying out movement control on the controlled object in the vehicle-mounted game according to the target movement state.
Further, the identification module 20 is further configured to determine whether the opening depth is greater than or equal to a preset depth threshold; if yes, the controlled object is controlled to respond to the control instruction of the pedal; if not, the target movement state is set to a sliding movement state.
Further, the identification module 20 is further configured to determine that the accelerator pedal is turned on according to the pedal type; when the opening depth of the accelerator pedal is greater than or equal to the accelerator pedal depth threshold, the target movement state is set to the accelerator movement state.
Further, the identifying module 20 is further configured to identify an accelerator pedal depth interval in which an opening depth of the accelerator pedal is located; acquiring an acceleration rate matched with the depth interval of the accelerator pedal according to the depth interval of the accelerator pedal; wherein the acceleration rate is positively correlated with the opening depth of the accelerator pedal.
Further, the identification module 20 is further configured to determine that the brake pedal is on based on the pedal type; and if the opening depth of the brake pedal is greater than or equal to the threshold value of the depth of the brake pedal, setting the target movement state to be a braking state.
Further, the identification module 20 is further configured to identify a brake pedal depth interval in which an opening depth of the brake pedal is located; according to the depth interval of the brake pedal, acquiring a brake rate matched with the depth interval of the brake pedal; wherein the acceleration rate is positively correlated with the opening depth of the brake pedal.
Further, the identification module 20 is further configured to obtain an acceleration map matching with the accelerator pedal and a brake map matching with the brake pedal according to the pedal type, respectively.
Further, the identification module 20 is further configured to obtain an acceleration rate corresponding to an opening depth of the accelerator pedal according to the acceleration mapping curve; or according to the brake mapping curve, acquiring the brake rate corresponding to the opening depth of the brake pedal.
It should be noted that the foregoing explanation of the embodiment of the control method of the in-vehicle game is also applicable to the control device of the in-vehicle game of this embodiment, and will not be repeated here.
In order to implement the above embodiment, the present invention also proposes a vehicle, as shown in fig. 8, in which a vehicle 200 includes a control device 100 for a vehicle-mounted game.
In order to achieve the above-described embodiments, the present invention also proposes a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the aforementioned control method of the in-vehicle game.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order from that shown or discussed, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present invention.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (8)

1. The control method of the vehicle-mounted game is characterized by comprising the following steps of:
identifying that the vehicle is in an on-board game mode;
acquiring a pedal type and an opening depth, wherein the pedal type comprises an accelerator pedal and a brake pedal;
identifying a target movement state according to the pedal type and the opening depth;
according to the target moving state, moving control is carried out on the controlled object in the vehicle-mounted game;
the identifying the target movement state according to the pedal type and the opening depth comprises the following steps:
judging whether the opening depth is larger than or equal to a preset depth threshold value;
if yes, the controlled object is controlled to respond to the control instruction of the pedal;
if not, setting the target moving state as a sliding moving state;
determining that the accelerator pedal is started according to the pedal type, and controlling the controlled object to respond to a control instruction of the pedal comprises the following steps:
determining that the accelerator pedal is turned on according to the pedal type;
setting the target movement state to an acceleration movement state when the opening depth of the accelerator pedal is greater than or equal to an accelerator pedal depth threshold;
when the opening depth of the accelerator pedal is greater than or equal to the accelerator pedal depth threshold, the method further comprises:
identifying an accelerator pedal depth interval in which the opening depth of the accelerator pedal is positioned;
acquiring an acceleration rate matched with the depth interval of the accelerator pedal according to the depth interval of the accelerator pedal;
wherein the acceleration rate is positively correlated with the opening depth of the accelerator pedal.
2. The control method according to claim 1, characterized in that the accelerator pedal is determined to be on in accordance with the pedal type, and the control of the controlled object in response to a control instruction of the pedal includes:
determining that the brake pedal is turned on according to the pedal type;
and setting the target movement state to a braking state when the opening depth of the brake pedal is greater than or equal to a brake pedal depth threshold.
3. The control method according to claim 2, characterized by further comprising, when the opening depth of the brake pedal is greater than or equal to a brake pedal depth threshold:
identifying a brake pedal depth interval in which the opening depth of the brake pedal is located;
acquiring a braking rate matched with the braking pedal depth interval according to the braking pedal depth interval;
wherein the acceleration rate is positively correlated with the opening depth of the brake pedal.
4. The control method according to claim 1, characterized by comprising, before identifying the target movement state:
and respectively acquiring an acceleration mapping curve matched with the accelerator pedal and a brake mapping curve matched with the brake pedal according to the pedal type.
5. The control method according to claim 4, characterized in that the identifying the target movement state includes:
acquiring an acceleration rate corresponding to the opening depth of the accelerator pedal according to the acceleration mapping curve; or alternatively
And acquiring a braking rate corresponding to the opening depth of the brake pedal according to the braking mapping curve.
6. A control device for a vehicle-mounted game, comprising:
the acquisition module is used for acquiring pedal types and opening depths, wherein the pedal types comprise an accelerator pedal and a brake pedal;
the identification module is used for identifying a target moving state according to the pedal type and the opening depth;
the control module is used for carrying out movement control on the controlled object in the vehicle-mounted game according to the target movement state;
the identifying the target movement state according to the pedal type and the opening depth comprises the following steps:
judging whether the opening depth is larger than or equal to a preset depth threshold value;
if yes, the controlled object is controlled to respond to the control instruction of the pedal;
if not, setting the target moving state as a sliding moving state;
determining that the accelerator pedal is started according to the pedal type, and controlling the controlled object to respond to a control instruction of the pedal comprises the following steps:
determining that the accelerator pedal is turned on according to the pedal type;
setting the target movement state to an acceleration movement state when the opening depth of the accelerator pedal is greater than or equal to an accelerator pedal depth threshold;
when the opening depth of the accelerator pedal is greater than or equal to the accelerator pedal depth threshold, the method further comprises:
identifying an accelerator pedal depth interval in which the opening depth of the accelerator pedal is positioned;
acquiring an acceleration rate matched with the depth interval of the accelerator pedal according to the depth interval of the accelerator pedal;
wherein the acceleration rate is positively correlated with the opening depth of the accelerator pedal.
7. A vehicle comprising the control device for an in-vehicle game according to claim 6.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements a control method of an in-vehicle game according to any one of claims 1-5.
CN201910939593.0A 2019-09-30 2019-09-30 Vehicle and game control method and device thereof Active CN112569609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910939593.0A CN112569609B (en) 2019-09-30 2019-09-30 Vehicle and game control method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910939593.0A CN112569609B (en) 2019-09-30 2019-09-30 Vehicle and game control method and device thereof

Publications (2)

Publication Number Publication Date
CN112569609A CN112569609A (en) 2021-03-30
CN112569609B true CN112569609B (en) 2024-03-19

Family

ID=75116143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910939593.0A Active CN112569609B (en) 2019-09-30 2019-09-30 Vehicle and game control method and device thereof

Country Status (1)

Country Link
CN (1) CN112569609B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113101672A (en) * 2021-04-23 2021-07-13 浙江吉利控股集团有限公司 Automobile intelligent cabin game control method and system
CN115035718B (en) * 2022-06-02 2023-04-18 东风汽车集团股份有限公司 Scene complexity evaluation method based on vehicle action types and times

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1173681A (en) * 1996-08-06 1998-02-18 科乐美股份有限公司 Seat support mechanism for simulation apparatus
CN106274554A (en) * 2016-09-09 2017-01-04 深圳比亚迪戴姆勒新技术有限公司 A kind of idling driving force control method and device
CN108305524A (en) * 2018-01-26 2018-07-20 北京工业大学 Immersion driving behavior antidote and system based on drive simulation platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1173681A (en) * 1996-08-06 1998-02-18 科乐美股份有限公司 Seat support mechanism for simulation apparatus
CN106274554A (en) * 2016-09-09 2017-01-04 深圳比亚迪戴姆勒新技术有限公司 A kind of idling driving force control method and device
CN108305524A (en) * 2018-01-26 2018-07-20 北京工业大学 Immersion driving behavior antidote and system based on drive simulation platform

Also Published As

Publication number Publication date
CN112569609A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN110368679B (en) Vehicle-mounted game method, device, vehicle and machine-readable medium
CN110368681B (en) Vehicle-mounted game method, device, vehicle and machine-readable medium
CN106314270B (en) Sound generating system for eco-friendly vehicle and method of controlling the same
CN110368682B (en) Interactive system and method for vehicle-mounted game
JP6631585B2 (en) Presentation control device, automatic operation control device, presentation control method, and automatic operation control method
JP2019043495A (en) Device, system and method for adjusting automatic operation
CN110559656A (en) Vehicle-mounted air conditioner control method and device in game scene
CN112569609B (en) Vehicle and game control method and device thereof
JPWO2020066331A1 (en) Vehicle control unit
KR101745152B1 (en) Automatic parking assist system and operation method thereof
CN101405175A (en) Vehicle travel control device and vehicle travel control method
JP2013082376A (en) Parking assist device
US11302299B2 (en) Apparatus for controlling vehicle sound and method thereof
CN109863060A (en) For controlling the method for the massage unit for the massage apparatus being arranged in seat, for the seat arrangement in vehicle or vehicle
JP2000237451A (en) Problem solution type vehicle game device
JP7365191B2 (en) Parking support device, parking support method, and parking support program
WO2019058462A1 (en) Method for learning travel characteristics, and travel assistance device
WO2023174133A1 (en) Control method and apparatus for vehicle, central control platform, and storage medium
JP6942144B2 (en) Driving support device and driving support method
CN116726478A (en) Game hand feeling feedback method, device and medium based on steering wheel
CN116745595A (en) Method for test driving with at least one test vehicle
WO2020246089A1 (en) Information presentation control device
US10560735B2 (en) Media augmentation through automotive motion
CN112758014A (en) Driving signal processing method and vehicle
JP5235319B2 (en) Game machine that adjusts the elapsed time in the game according to the speed of the moving body

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant