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

Vehicle and game control method and device thereof Download PDF

Info

Publication number
CN112569609A
CN112569609A CN201910939593.0A CN201910939593A CN112569609A CN 112569609 A CN112569609 A CN 112569609A CN 201910939593 A CN201910939593 A CN 201910939593A CN 112569609 A CN112569609 A CN 112569609A
Authority
CN
China
Prior art keywords
pedal
depth
vehicle
accelerator pedal
brake pedal
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.)
Granted
Application number
CN201910939593.0A
Other languages
Chinese (zh)
Other versions
CN112569609B (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

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/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 in-vehicle gaming 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 moving state according to the pedal type and the opening depth; and according to the target moving state, carrying out moving control on the controlled object in the vehicle-mounted game, and controlling the speed change of the moving of the vehicle-mounted game scene.

Description

Vehicle and game control method and device thereof
Technical Field
The invention relates to the technical field of vehicles, in particular to a vehicle and a game control method and device thereof.
Background
In the related technology, the pure electric vehicle is controlled by the vehicle control unit to simulate driving by utilizing the characteristic of high electronic electric control of the pure electric vehicle. However, in the related art, when the game simulation driving is performed, the calculation method of the vehicle speed control has errors, the game adaptation range is narrow, and the speed change feeling of the game simulation driving is poor.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the first purpose of the invention is to provide a control method of an in-vehicle game, so as to realize speed change control of scene movement of the in-vehicle game.
A second object of the present invention is to provide a control device for an in-vehicle game.
A third object of the invention is to propose a vehicle.
A fourth object of the invention is to propose a computer-readable storage medium.
In order to achieve the above object, a first embodiment of the present invention provides a method for controlling an in-vehicle game, including the steps of: identifying that the vehicle is in an in-vehicle gaming 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 moving state according to the pedal type and the opening depth; and performing movement control on the controlled object in the vehicle-mounted game according to the target movement state.
According to an embodiment of the present invention, the identifying a target moving state according to the pedal type and the opening depth includes: judging whether the opening depth is greater than or equal to a preset depth threshold value or not; if yes, controlling the controlled object to respond to the control instruction of the pedal; and if not, setting the target movement state as a sliding movement state.
According to an embodiment of the present invention, determining that the accelerator pedal is on according to the pedal type, and controlling the controlled object in response to a control command of the pedal includes: determining that the accelerator pedal is turned on according to the pedal type; and when the opening depth of the accelerator pedal is greater than or equal to an accelerator pedal depth threshold value, setting the target movement state as an acceleration movement state.
According to one embodiment of the invention, when the opening depth of the accelerator pedal is greater than or equal to the accelerator pedal depth threshold, the method further comprises the following steps: identifying an accelerator pedal depth interval in which an opening depth of the accelerator pedal is located; acquiring an acceleration rate matched with the accelerator pedal depth interval according to the accelerator pedal depth interval; wherein the acceleration rate is positively correlated with the opening depth of the accelerator pedal.
According to an embodiment of the present invention, determining that the accelerator pedal is on according to the pedal type, and controlling the controlled object in response to a control command of the pedal includes: determining that the brake pedal is turned on according to the pedal type; and when the opening depth of the brake pedal is greater than or equal to a brake pedal depth threshold value, setting the target moving state as a braking state.
According to one embodiment of the invention, when the opening depth of the brake pedal is greater than or equal to the brake pedal depth threshold value, the method further comprises the following steps: identifying a brake pedal depth interval in which the opening depth of the brake pedal is located; according to the depth interval of the brake pedal, obtaining 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.
According to one embodiment of the invention, before identifying the target movement state, the method comprises: and respectively acquiring an acceleration mapping curve matched with the acceleration pedal and a brake mapping curve matched with the brake pedal according to the pedal type.
According to an embodiment of the present invention, the identifying the target moving state includes: acquiring an acceleration rate corresponding to the opening depth of the accelerator pedal according to the acceleration mapping curve; or obtaining the braking rate corresponding to the opening depth of the brake pedal according to the braking mapping curve.
According to the control method of the vehicle-mounted game, 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 controlled to move according to the target moving state, so that a user can experience more real driving speed change during simulation of the vehicle-mounted game, and game feeling is improved.
In order to achieve the above object, a second aspect of the present invention provides a control device for an in-vehicle 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 the moving state of the target 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.
In order to achieve the above object, a third aspect of the present invention provides a vehicle including the control device for an in-vehicle 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 present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a control method of an in-vehicle game of an embodiment of the present invention;
FIG. 2 is a flow chart of a method of controlling an in-vehicle game according to an embodiment of the present invention;
fig. 3 is a flowchart of a control method of an in-vehicle game according to another embodiment of the present invention;
FIG. 4 is a flowchart of a control method of an in-vehicle game according to still another embodiment of the present invention;
FIG. 5 is a flowchart of a control method of an in-vehicle game according to still another embodiment of the present invention;
fig. 6 is a flowchart of a control method of an in-vehicle game according to still another embodiment of the present invention;
FIG. 7 is a block diagram of a control device for an in-vehicle 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 present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In the related art, the automobile game mainly includes modes of touch screen operation of a mobile phone screen, handle operation, driving simulation cabin operation and the like. The operation modes of the mobile phone touch screen and the gamepad are mainly actions of operating a game target object through a key, and compared with a vehicle-mounted game, the mobile phone touch screen and the gamepad are lack of real vehicle driving feeling and are poor in interestingness. Compared with the vehicle-mounted game, the driving simulation cabin has the advantages that although the operation feeling is almost the same, the game type of the driving simulator is single, the requirements of players on diversity cannot be met, and the driving simulation cabin and the vehicle-mounted game have differences in signal processing. The vehicle-mounted game combines the sensor and the vehicle controller to operate through the CAN network operating signal sensor game interface end, and CAN adapt to various vehicle types and vehicle-mounted games.
A vehicle and a game control method and apparatus thereof according to an embodiment of the present invention will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a control method of an in-vehicle game according to an embodiment of the present invention. As shown in fig. 1, the method for controlling an in-vehicle game according to an embodiment of the present invention includes the following steps:
s101: it is identified that the vehicle is in an in-vehicle gaming mode.
The vehicle-mounted game mode can be a mode for simulating a game when the vehicle is parked. In the mode, a game scene can be displayed through the vehicle-mounted game terminal or projected to a windshield, a side glass and/or a rearview mirror and the like of the vehicle to simulate a real driving environment for a user, so that the user can be mapped to a game through pedal operation, and driving feeling can be simulated really.
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 moving state of the target 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, when the user performs the in-vehicle game control, in order to ensure the sense of realism of driving, the acceleration operation during the game simulation may be performed by stepping on the accelerator pedal, and the brake operation during the game simulation may be performed by stepping on 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 controlled to move according to the target moving state, so that a user experiences more real driving speed change during simulation of the vehicle-mounted game, and game feeling is improved.
The controlled object in the vehicle-mounted game is usually scene information in the game or racing cars in the game, when the controlled object is a scene, the scene information can be displayed and changed in an acceleration mode, in a braking process, the scene information can be stopped being changed, when the controlled object is a racing car, in the acceleration process, driving data of the controlled racing car is acceleration data, and in the braking process, the driving data of the racing car is braking data.
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 by the vehicle control unit VCU, the vehicle control unit VCU sends the opening depth of the accelerator pedal and the opening depth of the brake pedal to the gateway through the controller CAN line after operation, the signals are forwarded to the game terminal through the gateway, and the game terminal receives the required CAN line signal through the vehicle CAN line network and then is mapped to the work input event instruction of slow acceleration, fast acceleration, slow braking and fast braking of the vehicle in the corresponding vehicle racing game through the correspondingly developed built-in application program or bottom layer drive program on the game terminal.
According to one embodiment of the invention, the accelerator pedal depth signal in the CAN network is an unsigned periodic type signal with a period of 20 ms. And the vehicle-mounted game terminal receives the CAN signal of the depth of the accelerator pedal 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, the identifying of the moving state of the object according to the pedal type and the opening depth includes:
s201: and judging whether the opening depth is greater than or equal to a preset depth threshold value or not.
S202: and if so, controlling the controlled object to respond to the control instruction of the pedal.
S203: if not, the target movement state is set to the coasting movement state.
Specifically, determining the accelerator pedal to be opened according to the pedal type, as shown in fig. 3, controlling the controlled object in response to the control command of the pedal includes:
s301: when the opening depth of the accelerator pedal is greater than or equal to the accelerator pedal depth threshold, the target moving state is set to an acceleration moving state.
S302: and when the opening depth of the accelerator pedal is smaller than the accelerator pedal depth threshold value, setting the target movement state as 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 greater than or equal to an accelerator pedal depth threshold value is judged, and if the opening depth of the accelerator pedal is greater than or equal to the accelerator pedal depth threshold value, the target moving state is set to be an acceleration moving state, namely, a controlled object in the vehicle-mounted game is accelerated to move, for example, the racing car in the racing car-racing game is continuously accelerated to run; and if the opening depth of the accelerator pedal is smaller than the accelerator pedal depth threshold value, setting the target movement state as a coasting movement state, namely, decelerating coasting movement of the controlled object in the vehicle-mounted game. Wherein the deceleration sliding movement is a freewheeling movement process without the supply of acceleration power.
It should be understood that the accelerator pedal depth threshold is a threshold for triggering racing and/or scene information acceleration movement, that is, when the opening depth of the accelerator pedal is less than the accelerator pedal depth threshold, it can be determined that the accelerator pedal is triggered by mistake, and at this time, the controlled object does not need to be controlled to accelerate, and only when the opening depth of the accelerator pedal continuously increases until the accelerator pedal depth threshold is reached, the controlled object is controlled to move according to the acceleration movement state.
It should be further understood that, since the accelerator pedal is a control command for providing acceleration power to the controlled object, when the user needs to control the controlled object to continuously accelerate, for example, when the racing car continuously accelerates, the user needs to control the opening depth of the accelerator pedal to be continuously greater than or equal to the accelerator pedal depth threshold value, and when the user releases the accelerator pedal to make the opening degree smaller than the accelerator pedal depth threshold value, the user determines that the acceleration power is not provided to the controlled object, and at this time, the controlled object can move in a deceleration and sliding state until the controlled object stops due to friction or the like (a state in which the controlled object decelerates to stop after simulating unpowered sliding 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 at which the opening depth of the 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 to 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, the corresponding accelerator pedal depth interval may be further determined according to the opening depth of the accelerator pedal, where 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. Wherein the acceleration rate may be an acceleration of the acceleration movement.
For example, assuming that the accelerator pedal depth may be divided into two accelerator pedal depth intervals, determining whether the opening depth of the accelerator pedal is greater than the minimum value of a certain accelerator pedal depth interval and less than the maximum value of the depth pedal depth interval, if so, further obtaining an acceleration rate corresponding to the accelerator pedal depth interval, and performing movement control on the controlled object according to the obtained acceleration rate. The depth interval of the accelerator pedal can be divided according to the depth of the accelerator pedal, the depth interval of the first accelerator pedal is divided into two depth intervals of the accelerator pedal, the depth interval of the first accelerator pedal can be 5% -55%, the depth interval of the second accelerator pedal can be 55% -100%, the depth interval can be set by a user in each game, the game system can comprehensively give a recommended set value of the depth interval of the pedal according to the speed record of the historical racing car in which the user plays the racing car games before and the driving habits of the user in the conventional driving mode, and the comfort of stepping the pedal when the user plays the games and the personalized driving habits of the user are guaranteed. The acceleration rate is positively correlated with the opening depth of the accelerator pedal, namely, 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 to realize the effect of rapid acceleration and advance of the vehicle.
Specifically, if a user plays a game with a vehicle, an accelerator pedal function is set on the vehicle-mounted terminal, so that the racing vehicle can move in an accelerated manner beyond an accelerator pedal depth threshold value and keep the current state of the racing vehicle below the accelerator pedal depth threshold value; when the user steps on the accelerator pedal, the depth of the accelerator pedal is in a first accelerator pedal depth interval, the acceleration is a1, the depth of the accelerator pedal is in a second accelerator pedal depth interval, the acceleration is a2, wherein a2 is greater than a 1; 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+ t1 a2) km/h, the depth of the accelerator pedal is changed when the user steps on the accelerator pedal, the depth of the accelerator pedal is changed to be in a first accelerator pedal depth interval, after t2 time, the speed is (50+ t1 a2+ t2 a1) km/h, at the moment, the user releases the accelerator pedal, and the racing car is gradually decelerated at the speed of (50+ t1 a2+ t2 a1) km/h until stopping or receiving a new control command.
Therefore, different accelerator pedal depth intervals are divided according to the opening depth of the accelerator pedal, so that the controlled object can change according to different acceleration rates, different game experience requirements of a user in the game process can be met, and the game experience effect is improved.
It should also be understood that, in order to make the in-vehicle game have universality, a game setting function may be added, for example, in order to facilitate the game for the user who has inconvenience in continuously stepping on the pedal, a setting scheme may be further set, in which after the accelerator pedal is released, the setting scheme is not changed in deceleration, but the current speed is kept running at a constant speed, that is, after the speed keeping scheme is set, the user may only need to step on the accelerator pedal once to realize the operation of changing the subsequent moving speed of the controlled object, so that the controlled object can continuously run according to the current speed, and the user only needs to control other parameters such as direction and the like in the subsequent game process, until the user steps on the accelerator pedal again to adjust the acceleration rate, or.
It should be appreciated that the accelerator pedal depth threshold and the division of the accelerator pedal depth interval may be adjusted for different vehicle models, different games, and the customer's gaming needs.
According to one embodiment of the invention, the brake pedal depth signal in the CAN network is an unsigned periodic type signal with a period of 20 ms. And the vehicle-mounted game terminal receives the CAN signal of the depth of the brake pedal forwarded by the gateway and maps the signal into a vehicle braking action input event instruction required by the vehicle-mounted game.
As shown in fig. 5, determining that the brake pedal is opened according to the pedal type, and controlling the controlled object to respond to the control command of the pedal comprises the following steps:
s501: and when the opening depth of the brake pedal is greater than or equal to the brake pedal depth threshold value, setting the target moving state as a braking state.
S502: and when the opening depth of the brake pedal is smaller than the brake pedal depth threshold value, setting the target movement state as a sliding movement state.
That is, firstly, the type of the pedal triggered by the user is 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 or not is judged, if the opening depth of the brake pedal is greater than or equal to the brake pedal depth threshold value, the target moving state is set to be the braking state, namely, the controlled object in the vehicle-mounted game decelerates and moves under the action of braking force, namely, the time from deceleration sliding to 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 moving state is set to be the sliding moving state, namely, the controlled object in the vehicle-mounted game decelerates and slides and moves or keeps the current vehicle speed to slide. Wherein the deceleration sliding movement is a freewheeling movement process without the supply of acceleration power.
It should be understood that the brake pedal depth threshold is a threshold for triggering racing and/or scene information to accelerate braking, that is, when the opening depth of the brake pedal is less than the brake pedal depth threshold, it can be determined that the brake pedal is triggered by mistake, at this time, the controlled object does not need to be controlled to generate braking operation, and only when the opening depth of the brake pedal continuously increases until the brake pedal depth threshold is reached, the controlled object is controlled to accelerate and stop according to the braking state.
It should also be understood that, since the brake pedal is a command for providing braking force to the controlled object, the user is required to control the opening depth of the brake pedal to be continuously greater than or equal to the brake pedal depth threshold value before the user needs to control the controlled object to stop quickly before the controlled object is stopped. After the controlled object is finally stopped under the control of the braking force, the controlled object is in a stop state before a starting control instruction (for example, the opening degree of an accelerator pedal is greater than or equal to an accelerator pedal depth threshold value) is not acquired, that is, the user releases the brake pedal and does not have new influence 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: and identifying a brake pedal depth interval in which the opening depth of the brake pedal is positioned.
S602: and obtaining the braking rate matched with the depth interval of the brake pedal according to the depth interval of the brake pedal.
Wherein the braking rate is positively correlated to the opening depth of the brake pedal.
That is, after determining that the target movement state is the braking movement state according to the opening depth of the brake pedal, the corresponding brake pedal depth interval may be further determined according to the opening depth of the brake pedal, where each brake pedal depth interval corresponds to a braking rate, that is, the braking rate of the braking movement may be controlled according to the braking rate corresponding to the brake pedal depth interval. Wherein the braking rate may be an acceleration of the braking.
For example, assuming that the depth of the brake pedal can be divided into two brake pedal depth intervals, it is determined whether the opening depth of the brake pedal is greater than the minimum value of a certain brake pedal depth interval and less than the maximum value of the depth pedal depth interval, if so, the braking rate corresponding to the brake pedal depth interval is further obtained, and the controlled object is subjected to braking control according to the obtained braking rate. The depth interval of the brake pedal can be divided according to the depth of the brake pedal, and by taking the division into two depth intervals of the brake pedal as an example, the depth interval of the first brake pedal can be 5% -55%, the depth interval of the second brake pedal can be 55% -100%, and the depth interval can be set by a user during each game. The braking rate is positively correlated with the opening depth of the brake pedal, namely, the braking rate corresponding to the second brake pedal depth interval is greater than the braking rate 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 as to build the effect of emergency braking of the vehicle.
It should be appreciated that the brake pedal depth threshold and the division of the brake pedal depth interval may be adjusted for different vehicle models, different games, and the customer's gaming needs.
According to another embodiment of the present invention, before identifying the target moving state, the method includes: and respectively acquiring an acceleration mapping curve matched with the acceleration pedal and a brake mapping curve matched with the brake pedal according to the pedal type.
Further, identifying the target moving state comprises: acquiring an acceleration rate corresponding to the opening depth of an accelerator pedal according to an acceleration mapping curve; or obtaining the braking rate corresponding to the opening depth of the brake pedal according to the braking mapping curve.
That is, a curve matched with the opening depth of the pedal can be further set to obtain corresponding control rates according to different pedal opening depths, wherein the accelerator pedal is matched with an acceleration mapping curve, the acceleration rate matched from the acceleration mapping curve is larger as the opening depth of the accelerator pedal increases, and similarly, the brake pedal is matched with a brake mapping curve, and the brake rate matched from the acceleration mapping curve is larger as the opening depth of the brake pedal increases.
In summary, according to the control method of the vehicle-mounted game in the embodiment of the present 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 controlled to move according to the target moving state, so that the user experiences a more real change in the driving speed during simulation of the vehicle-mounted game, and the game experience is improved.
In order to realize the embodiment, the invention further provides a control device of the vehicle-mounted game.
Fig. 7 is a block diagram schematically illustrating a control device for an in-vehicle 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.
The device comprises an acquisition module 10, a control module and a display 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 20 is used for identifying the moving state of the target 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, controlling the controlled object to respond to the control instruction of the pedal; and if not, setting the target movement state as a sliding movement state.
Further, the identification module 20 is further configured to determine that an accelerator pedal is turned on according to the pedal type; and when the opening depth of the accelerator pedal is greater than or equal to the accelerator pedal depth threshold value, setting the target moving state as an acceleration moving state.
Further, the identification module 20 is further configured to identify an accelerator pedal depth interval in which the 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 to the opening depth of the accelerator pedal.
Further, the identification module 20 is further configured to determine that the brake pedal is turned on according to the pedal type; and when the opening depth of the brake pedal is greater than or equal to the brake pedal depth threshold value, setting the target moving state as a braking state.
Further, the identification module 20 is further configured to identify a brake pedal depth interval where the opening depth of the brake pedal is located; according to the depth interval of the brake pedal, obtaining 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 mapping curve matching with an acceleration pedal and a braking mapping curve matching with a braking pedal according to the pedal type.
Further, the identification module 20 is further configured to obtain an acceleration rate corresponding to the opening depth of the accelerator pedal according to the acceleration mapping curve; or obtaining the braking rate corresponding to the opening depth of the brake pedal according to the braking mapping curve.
It should be noted that the foregoing explanation on the embodiment of the control method for the in-vehicle game is also applicable to the control device for the in-vehicle game in this embodiment, and details are not repeated here.
In order to implement the above embodiment, the present invention further provides a vehicle, as shown in fig. 8, a vehicle 200 includes a control device 100 for an in-vehicle game.
In order to achieve the above 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 herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean 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 invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer 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, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited 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 steps of a custom logic function or process, and alternate 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, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement 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). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can 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 should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (11)

1. A control method of a vehicle-mounted game is characterized by comprising the following steps:
identifying that the vehicle is in an in-vehicle gaming 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 moving state according to the pedal type and the opening depth;
and performing movement control on the controlled object in the vehicle-mounted game according to the target movement state.
2. The control method of claim 1, wherein said identifying a target movement state based on said pedal type and said opening depth comprises:
judging whether the opening depth is greater than or equal to a preset depth threshold value or not;
if yes, controlling the controlled object to respond to the control instruction of the pedal;
and if not, setting the target movement state as a sliding movement state.
3. The control method according to claim 2, wherein determining that the accelerator pedal is on according to the pedal type, 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 when the opening depth of the accelerator pedal is greater than or equal to an accelerator pedal depth threshold value, setting the target movement state as an acceleration movement state.
4. The control method according to claim 3, characterized by further comprising, when the opening depth of the accelerator pedal is greater than or equal to an accelerator pedal depth threshold:
identifying an accelerator pedal depth interval in which an opening depth of the accelerator pedal is located;
acquiring an acceleration rate matched with the accelerator pedal depth interval according to the accelerator pedal depth interval;
wherein the acceleration rate is positively correlated with the opening depth of the accelerator pedal.
5. The control method according to claim 2, wherein determining that the accelerator pedal is on according to the pedal type, 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 when the opening depth of the brake pedal is greater than or equal to a brake pedal depth threshold value, setting the target moving state as a braking state.
6. The control method of claim 5, further comprising, when the depth of activation 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;
according to the depth interval of the brake pedal, obtaining 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.
7. The control method according to claim 1, before identifying the target moving state, comprising:
and respectively acquiring an acceleration mapping curve matched with the acceleration pedal and a brake mapping curve matched with the brake pedal according to the pedal type.
8. The control method according to claim 7, wherein the identifying the target moving state includes:
acquiring an acceleration rate corresponding to the opening depth of the accelerator pedal according to the acceleration mapping curve; or
And obtaining the braking rate corresponding to the opening depth of the brake pedal according to the braking mapping curve.
9. A control device for an in-vehicle game, comprising:
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 the moving state of the target 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.
10. A vehicle characterized by comprising the control device of the in-vehicle game according to claim 9.
11. 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 to 8.
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 true CN112569609A (en) 2021-03-30
CN112569609B 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)

Cited By (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
CN115035718A (en) * 2022-06-02 2022-09-09 东风汽车集团股份有限公司 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

Cited By (3)

* 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
CN115035718A (en) * 2022-06-02 2022-09-09 东风汽车集团股份有限公司 Scene complexity evaluation method based on vehicle action types and times
CN115035718B (en) * 2022-06-02 2023-04-18 东风汽车集团股份有限公司 Scene complexity evaluation method based on vehicle action types and times

Also Published As

Publication number Publication date
CN112569609B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
CN110368679B (en) Vehicle-mounted game method, device, vehicle and machine-readable medium
CN110368682B (en) Interactive system and method for vehicle-mounted game
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
US9940921B2 (en) Vehicle, vehicle control method and vehicle driving sound control apparatus
JP6631585B2 (en) Presentation control device, automatic operation control device, presentation control method, and automatic operation control method
CN110559656A (en) Vehicle-mounted air conditioner control method and device in game scene
CN112569609B (en) Vehicle and game control method and device thereof
US11302299B2 (en) Apparatus for controlling vehicle sound and method thereof
CN109677412B (en) Apparatus and method for controlling creep torque in environmentally friendly vehicle
US10055093B2 (en) Vehicles with navigation units and methods of controlling the vehicles using the navigation units
CN101405175A (en) Vehicle travel control device and vehicle travel control method
CN112373475B (en) Vehicle control method, device, medium, equipment and vehicle
CN109808708A (en) Vehicle diagnostics operation
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
CN112717371B (en) Vehicle, control method and system thereof, and storage medium
CN116061825A (en) Vehicle control method and device, electronic equipment and vehicle
WO2019058462A1 (en) Method for learning travel characteristics, and travel assistance device
US20190300015A1 (en) Vehicle control apparatus
JP6942144B2 (en) Driving support device and driving support method
WO2023174133A1 (en) Control method and apparatus for vehicle, central control platform, and storage medium
CN112569583B (en) Vehicle, realization method of simulated game, vehicle-mounted display terminal and medium
CN110371051B (en) Prompt tone playing method and device for vehicle-mounted entertainment
CN116726478A (en) Game hand feeling feedback method, device and medium based on steering wheel
CN113942504B (en) Self-adaptive cruise control method and device

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