CN111870933A - Vehicle control method and device and computer storage medium - Google Patents
Vehicle control method and device and computer storage medium Download PDFInfo
- Publication number
- CN111870933A CN111870933A CN202010590263.8A CN202010590263A CN111870933A CN 111870933 A CN111870933 A CN 111870933A CN 202010590263 A CN202010590263 A CN 202010590263A CN 111870933 A CN111870933 A CN 111870933A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- game
- active suspension
- control
- game operation
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 239000000725 suspension Substances 0.000 claims abstract description 131
- 230000015654 memory Effects 0.000 claims description 37
- 230000008859 change Effects 0.000 claims description 21
- 230000009471 action Effects 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 14
- 230000001133 acceleration Effects 0.000 claims description 6
- 230000008569 process Effects 0.000 abstract description 8
- 230000001360 synchronised effect Effects 0.000 description 6
- 238000011161 development Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000013016 damping Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000035807 sensation Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/20—Input arrangements for video game devices
- A63F13/24—Constructional details thereof, e.g. game controllers with detachable joystick handles
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
- A63F13/42—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
- A63F13/422—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle automatically for the purpose of assisting the player, e.g. automatic braking in a driving game
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/80—Special adaptations for executing a specific game genre or game mode
- A63F13/803—Driving vehicles or craft, e.g. cars, airplanes, ships, robots or tanks
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R11/00—Arrangements for holding or mounting articles, not otherwise provided for
- B60R11/02—Arrangements for holding or mounting articles, not otherwise provided for for radio sets, television sets, telephones, or the like; Arrangement of controls thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Mechanical Engineering (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a vehicle control method, a device and a computer storage medium, which are applied to an active suspension controller of a vehicle, wherein the vehicle control method comprises the following steps: acquiring a game operation instruction input by a user when operating a game; inquiring the corresponding relation between different set game operation instructions and active suspension control instructions according to the game operation instructions, and acquiring active suspension control instructions corresponding to the game operation instructions; and sending the active suspension control instruction corresponding to the game operation instruction to an active suspension actuator of the vehicle so as to control the vehicle to shake according to the game operation instruction. According to the vehicle control method, the vehicle control device and the computer storage medium, the vehicle is controlled to shake according to the game operation instruction input when the user operates the game, so that the vehicle shakes according to the intention of the user, the implementation process is simple, the safety of the vehicle is not affected, and the use experience of the user is improved.
Description
Technical Field
The present invention relates to the field of vehicles, and in particular, to a vehicle control method, apparatus, and computer storage medium.
Background
With the continuous development of science and technology, vehicles become more and more intelligent, and advanced vehicle entertainment systems are an important development direction of future vehicles. The primary vehicle entertainment system usually plays audio and video through the vehicle machine of the vehicle, and the more advanced vehicle entertainment system is added with game functions besides audio and video playing. In the related art, the game function of the vehicle entertainment system is mainly implemented by installing a game application program on the vehicle, and the game application program does not perform information interaction with the vehicle. However, users may wish to interact with the vehicle to control the vehicle state change during the game, thereby maximizing the entertainment effect of the game. For example, a game scene is set as a driving game, and a user controls a virtual vehicle in the game to turn left, and at this time, if the vehicle can tilt to the right, the user can feel that the body tilts to the right, and the real effect of the game can be increased. Therefore, from the perspective of the fidelity and the impact of the game, the game system capable of performing information interaction with the vehicle is more advanced and is a development direction in the future. However, it is difficult for the game control program to communicate with the vehicle and control the vehicle state change, because the purpose of controlling the vehicle actuator by the game application program is achieved, the control risk of the vehicle is increased, and the control logic efficiency of the vehicle is reduced or the safety level is reduced. Therefore, how to control the vehicle actuator by the game application without affecting the safety of the vehicle is still under research.
Disclosure of Invention
The invention aims to provide a vehicle control method, a vehicle control device and a computer storage medium, which are simple in implementation process, do not influence the safety of a vehicle and improve the use experience of a user.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a vehicle control method, which is applied to an active suspension controller of a vehicle, and includes:
acquiring a game operation instruction input by a user when operating a game;
inquiring the corresponding relation between different set game operation instructions and active suspension control instructions according to the game operation instructions, and acquiring active suspension control instructions corresponding to the game operation instructions;
and sending the active suspension control instruction corresponding to the game operation instruction to an active suspension actuator of the vehicle so as to control the vehicle to shake according to the game operation instruction.
As one embodiment, before obtaining a game operation instruction input by a user when operating a game, the method further includes:
acquiring current state information of the vehicle;
judging whether the current state of the vehicle is suitable for starting a game control mode or not according to the current state information of the vehicle;
and when the current state of the vehicle is determined to be suitable for starting a game control mode, switching a control logic to the game control mode, and executing the step of acquiring a game operation instruction input by a user when the user operates a game.
As one embodiment, the current state information of the vehicle includes at least one of: steering wheel angle information, lateral acceleration information, vehicle speed information.
As one embodiment, the obtaining the current state information of the vehicle includes:
and after a game starting instruction is received, acquiring the current state information of the vehicle.
As one of the implementation modes, the method further comprises the following steps:
and sending a preset prompting message when the current state of the vehicle is determined not to be suitable for starting the game control mode, wherein the preset prompting message is used for prompting the failure of starting the game control mode for the user.
As one embodiment, the obtaining of the game operation instruction input by the user when the user operates the game includes:
reading operation action data of a user when the user operates a game from the CAN bus;
analyzing the operation action data when the user operates the game, and acquiring a corresponding game operation instruction input when the user operates the game.
As one embodiment, after the sending the active suspension control instruction corresponding to the game operation instruction to an active suspension actuator of the vehicle to control the vehicle to shake according to the game operation instruction, the method further includes:
acquiring state change information of the vehicle;
and correcting the active suspension control command corresponding to the game operation command according to the state change information of the vehicle, and sending the corrected active suspension control command corresponding to the game operation command to an active suspension actuator of the vehicle.
As one of the implementation modes, the method further comprises the following steps:
and closing the game control mode when the vehicle is determined to be not suitable for continuously starting the game control mode according to the state change information of the vehicle.
In a second aspect, an embodiment of the present invention provides a vehicle control apparatus, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the vehicle control method according to the first aspect when executing the computer program.
In a third aspect, an embodiment of the present invention provides a computer storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the vehicle control method according to the first aspect.
The embodiment of the invention provides a vehicle control method, a vehicle control device and a computer storage medium, wherein the vehicle control method comprises the following steps: acquiring a game operation instruction input by a user when operating a game; inquiring the corresponding relation between different set game operation instructions and active suspension control instructions according to the game operation instructions, and acquiring active suspension control instructions corresponding to the game operation instructions; and sending the active suspension control instruction corresponding to the game operation instruction to an active suspension actuator of the vehicle so as to control the vehicle to shake according to the game operation instruction. Therefore, according to the game operation instruction input when the user operates the game, the vehicle is controlled to shake according to the game operation instruction, so that the vehicle shakes according to the intention of the user, the implementation process is simple, the safety of the vehicle is not affected, and the use experience of the user is improved.
Drawings
FIG. 1 is a schematic flow chart of a vehicle control method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a vehicle control method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a vehicle control method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a vehicle control device according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further elaborated by combining the drawings and the specific embodiments in the specification. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, a vehicle control method provided in an embodiment of the present invention may be executed by a vehicle control apparatus provided in an embodiment of the present invention, where the vehicle control apparatus may be implemented in a software and/or hardware manner, and the vehicle control method is applied to an active suspension controller of a vehicle in this embodiment as an example, and includes the following steps:
step S101: acquiring a game operation instruction input by a user when operating a game;
it should be noted that, in the active suspension of the vehicle, the stiffness and damping characteristics of the suspension system can be dynamically and adaptively adjusted according to the driving conditions of the vehicle (the motion state of the vehicle, the road surface condition, etc.), so that the suspension system is always in the optimal vibration damping state, and the vehicle can achieve the optimal driving smoothness, steering stability and riding comfort. Here, the user may perform a game operation by installing a game application on the car, and during the game operation, the user may operate a game through an input device, such as a car screen, a keyboard, a joystick, or a body sensation, to input a corresponding game operation instruction. The process of acquiring the game operation instruction input by the user when operating the game can be divided into two steps: the first step is that the car machine reads the operation action when the user operates the game, the operation action when the car machine reads the user operates the game is very simple, for example, when a 'keyboard' is pressed, the car machine reads the action of controlling the keyboard by the user, and when a 'gamepad' is pressed, the car machine reads the action of controlling a key on the gamepad by the user; and the second step is that after the car machine reads the operation action when the user operates the game, the operation action data when the user operates the game is converted into a data signal which CAN be transmitted by the CAN bus.
In one embodiment, the obtaining of the game operation instruction input by the user when operating the game includes: reading operation action data of a user when the user operates a game from the CAN bus; analyzing the operation action data when the user operates the game, and acquiring a corresponding game operation instruction input when the user operates the game. After the user operates the game, the input operation data is converted into CAN bus state data, the active suspension controller of the vehicle reads the operation data when the user operates the game from the CAN bus, and analyzes the required data signal through a CAN decoder of the active suspension controller, and after the data signal is calculated, the corresponding game operation command input when the user operates the game is obtained.
In an embodiment, before obtaining the game operation instruction input by the user when operating the game, the method may further include: acquiring current state information of the vehicle; judging whether the current state of the vehicle is suitable for starting a game control mode or not according to the current state information of the vehicle; and when the current state of the vehicle is determined to be suitable for starting a game control mode, switching a control logic to the game control mode, and executing the step of acquiring a game operation instruction input by a user when the user operates a game.
Here, before the active suspension controller of the vehicle acquires a game operation instruction input by a user when operating a game, current state information of the vehicle, which is used to represent a current state of the vehicle, such as whether the vehicle is in a driving state, whether the vehicle is turning, or the like, may also be acquired. The current state information of the vehicle includes at least one of: steering wheel angle information, lateral acceleration information, vehicle speed information. And acquiring whether the vehicle is turning or running straight according to the steering wheel information, and acquiring whether the vehicle is running or not according to the lateral acceleration information and the vehicle speed information. Judging whether the current state of the vehicle is suitable for starting a game control mode or not according to the current state information of the vehicle, switching a control logic to the game control mode when the current state of the vehicle is determined to be suitable for starting the game control mode, analyzing operation action data when a user operates a game instead of analyzing the current state information of the vehicle on a CAN bus by an active suspension controller of the vehicle, and reading the operation action data when the user operates the game from the CAN bus by the active suspension controller of the vehicle and analyzing a required data signal by a CAN decoder.
In an embodiment, the method may further comprise: and sending a preset prompting message when the current state of the vehicle is determined not to be suitable for starting the game control mode, wherein the preset prompting message is used for prompting the failure of starting the game control mode for the user. Specifically, when the active suspension controller of the vehicle determines that the current state of the vehicle is not suitable for starting the game control mode according to the current state information of the vehicle, a preset prompt message is sent, wherein the preset prompt message is used for prompting the failure of starting the game control mode for the user, namely, although the user selects to switch to the game control mode, the vehicle cannot execute the game control mode. For example, if the vehicle is found to be running according to the current state information of the vehicle, it is determined that the current state of the vehicle is not suitable for starting the game control mode, the vehicle still maintains the original vehicle control mode, and at this time, the active suspension controller of the vehicle still keeps analyzing the current state information of the vehicle on the CAN bus and sends out a preset prompt message, where the preset prompt message may be a text prompt message and/or a voice prompt message, for example, the preset prompt message may be "the current state of the vehicle is not suitable for starting the game control mode". Therefore, only when the current state of the vehicle is determined to be suitable for starting the game control mode, the control logic is switched to the game control mode, otherwise, the vehicle still maintains the original vehicle control mode, so that the game operation is carried out only in the vehicle state suitable for starting the game control mode, and the driving safety and the vehicle safety of a user are further improved.
In one embodiment, the obtaining the current state information of the vehicle includes: and after a game starting instruction is received, acquiring the current state information of the vehicle. Here, when the user in the vehicle needs to start the game, the user can operate by starting a game application installed in the vehicle. After receiving the command of opening the game application program, the vehicle machine sends a game starting command to the active suspension controller of the vehicle, and the active suspension controller of the vehicle can acquire the game starting command. The method for obtaining the current state information of the vehicle includes that the active suspension controller of the vehicle obtains the current state information of the vehicle after receiving a game starting instruction sent by a vehicle machine, and the current state information of the vehicle is read from a CAN bus after the active suspension controller of the vehicle receives the game starting instruction sent by the vehicle machine. The current state information of the vehicle, such as steering wheel angle information, lateral acceleration information, vehicle speed information, etc., is transmitted to the CAN bus of the vehicle by the corresponding electronic control unit. For example, the steering wheel angle information of the vehicle is measured by a steering angle sensor at the steering wheel, analyzed by an electronic power steering electronic control unit, and then sent to the CAN bus for use by other controllers on the vehicle. The method comprises the steps that an active suspension controller of a vehicle reads current state information of the vehicle in a vehicle control mode, and an active suspension control command is obtained after calculation and sent to an active suspension actuator of the vehicle; when the game control mode is started, the active suspension controller of the vehicle reads the game operation instruction, and obtains a control instruction sent to the active suspension actuator after calculation. But the current state information of the vehicle is still being monitored when the game control mode is turned on to confirm that the current state of the vehicle is suitable for turning on the game control mode and is safely controllable.
Step S102: inquiring the corresponding relation between different set game operation instructions and active suspension control instructions according to the game operation instructions, and acquiring active suspension control instructions corresponding to the game operation instructions;
here, the active suspension controller of the vehicle may be preset and stored with a corresponding relationship between different game operation commands and active suspension control commands, for example, the active suspension control command corresponding to the preset game operation command "turn left" is "the vehicle lean right"; the active suspension control instruction corresponding to the game operation instruction 'brake' is preset to be 'vehicle forward tilting' and the like, so that the corresponding active suspension control instruction can be obtained by inquiring the corresponding relation between different game operation instructions and the active suspension control instruction according to the game operation instruction. Therefore, the corresponding relation between different set game operation instructions and the active suspension control instruction is inquired to obtain the active suspension control instruction corresponding to the game operation instruction input by the user when the user operates the game, the processing speed is high, and the user use experience is further improved.
Step S103: and sending the active suspension control instruction corresponding to the game operation instruction to an active suspension actuator of the vehicle so as to control the vehicle to shake according to the game operation instruction.
Specifically, the active suspension controller of the vehicle acquires an active suspension control instruction corresponding to the game operation instruction according to the query in step S102, and sends the active suspension control instruction to the active suspension actuator of the vehicle, so that the active suspension actuator of the vehicle executes the active suspension control instruction to control the vehicle to shake according to the game operation instruction.
In summary, in the vehicle control method provided in the above embodiment, the active suspension controller of the vehicle obtains the active suspension control instruction corresponding to the game operation instruction according to the game operation instruction input by the user when the user operates the game, and sends the active suspension control instruction to the active suspension actuator of the vehicle, so as to control the vehicle to shake according to the game operation instruction, so that the vehicle shakes according to the user intention, the implementation process is simple, the vehicle safety is not affected, and the user experience is improved.
In one embodiment, after the sending the active suspension control instruction corresponding to the game operation instruction to an active suspension actuator of the vehicle to control the vehicle to shake according to the game operation instruction, the method further includes: acquiring state change information of the vehicle; and correcting the active suspension control command corresponding to the game operation command according to the state change information of the vehicle, and sending the corrected active suspension control command corresponding to the game operation command to an active suspension actuator of the vehicle.
It can be understood that after the active suspension actuator of the vehicle controls the vehicle to shake according to the game operation instruction, the current state of the vehicle changes correspondingly. The active suspension controller of the vehicle acquires the state change information of the vehicle, and the state change information can be obtained by controlling the vehicle shaking by the active suspension actuator of the vehicle, and the shaking is detected by the active suspension sensor and fed back to the active suspension controller. And the active suspension controller corrects the active suspension control command corresponding to the game operation command according to the state change information of the vehicle, sends the corrected active suspension control command corresponding to the game operation command to an active suspension actuator of the vehicle, and controls the active suspension actuator to work again, so that closed-loop control is realized. Therefore, the active suspension control instruction is corrected in real time according to the state change information of the vehicle and is sent to the active suspension actuator of the vehicle, and the use experience of a user is further improved.
In an embodiment, the method may further comprise: and closing the game control mode when the vehicle is determined to be not suitable for continuously starting the game control mode according to the state change information of the vehicle.
Here, during the process of the user operating the game, the active suspension controller of the vehicle constantly monitors the state of the vehicle to determine whether the current state of the vehicle is suitable for starting the game control mode, and if it is determined that the vehicle is not suitable for continuing to start the game control mode according to the state change information of the vehicle, the active suspension controller of the vehicle closes the game control mode and timely switches back to the vehicle control mode. Thus, the driving safety and the vehicle safety of the user are further improved.
Based on the same inventive concept of the foregoing embodiments, the present embodiment describes technical solutions of the foregoing embodiments in detail through specific examples. Fig. 2 is a schematic diagram of a principle of a vehicle control method according to an embodiment of the present invention, referring to fig. 2, a game player performs a game operation on a vehicle of a vehicle, the game player performs a game input on the vehicle, a game interface feeds back a game visual and audio effect to the game player, the game input of the game player is converted into a bus status signal and sent to an active suspension controller of the vehicle, the active suspension controller of the vehicle generates a control signal according to the status signal and sends the control signal to an active suspension actuator, and the active suspension actuator starts to operate according to the received control signal to drive the vehicle to sway, so that the body of the game player feels the vehicle sway.
Fig. 3 is a schematic specific flowchart of a vehicle control method according to an embodiment of the present invention, including the following steps:
step S201: receiving a game starting instruction;
here, when a user in the vehicle needs to start a game, the user can operate by starting a game application installed in the vehicle, and the active suspension controller of the vehicle can acquire a game start instruction through the vehicle.
Step S202: judging whether the current state of the vehicle is suitable for starting a game control mode, if so, executing a step S203, otherwise, executing a step S204;
here, before controlling a vehicle to start a game, a user automatically detects a current vehicle state of the vehicle, and determines whether the current state of the vehicle is suitable for starting a game control mode by acquiring current state information of the vehicle, wherein the current state information of the vehicle includes at least one of: steering wheel angle information, lateral acceleration information, vehicle speed information. If the current state of the vehicle is determined to be suitable for starting the game control mode, step S203 is executed, otherwise step S204 is executed.
Step S203: switching to a game control mode;
when the current state of the vehicle is determined to be suitable for starting the game control mode, the control logic is switched to the game control mode, at the moment, the active suspension controller of the vehicle does not analyze the current state information of the vehicle on the CAN bus any more, but analyzes operation action data when a user operates the game, and the active suspension controller of the vehicle starts to read the operation action data when the user operates the game from the CAN bus and analyzes required data signals through a CAN decoder.
Step S204: maintaining the vehicle control mode;
here, when it is determined that the current state of the vehicle is not suitable for starting the game control mode, the control logic is kept in the vehicle control mode, and at this time, the active suspension controller of the vehicle still keeps analyzing the current state information of the vehicle on the CAN bus and sends out a preset prompting message, wherein the preset prompting message is used for prompting a user that the starting of the game control mode fails.
Step S205: acquiring a corresponding active suspension control instruction according to the game operation instruction;
here, the active suspension controller of the vehicle may be preset and stored with a corresponding relationship between different game operation commands and active suspension control commands, so as to obtain corresponding active suspension control commands according to the corresponding relationship between the different game operation commands and the active suspension control commands.
Step S206: and controlling the vehicle to shake through the active suspension actuator according to the active suspension control instruction.
Here, an active suspension actuator of a vehicle receives an active suspension control instruction corresponding to a game operation instruction sent by an active suspension controller to control the vehicle to shake according to the game operation instruction.
In addition, the active suspension controller of the vehicle can also acquire state change information of the vehicle, correct the active suspension control command corresponding to the game operation command according to the state change information of the vehicle, send the corrected active suspension control command corresponding to the game operation command to the active suspension actuator of the vehicle, and control the active suspension actuator of the vehicle to work again. In the game operation process, the active suspension controller of the vehicle monitors the state of the vehicle all the time, judges whether the current state of the vehicle is suitable for starting the game control mode or not, and if the active suspension controller of the vehicle determines that the vehicle is not suitable for continuously starting the game control mode according to the state change information of the vehicle, the active suspension controller of the vehicle closes the game control mode, switches back to the vehicle control mode in time, and ensures the safety of the vehicle.
In summary, the user controls the vehicle to start the game, the vehicle automatically detects the current state of the vehicle, and if it is determined that the current state of the vehicle is not suitable for starting the game control mode, for example, if the vehicle is found to be running, a prompt message is sent out, and the vehicle still maintains the original vehicle control mode; if the current state of the vehicle is determined to be suitable for starting a game control mode, an active suspension controller of the vehicle switches a control logic to the game control mode, the active suspension controller starts to read a game operation instruction input when a user operates a game on a CAN bus, analyzes the game operation instruction, acquires a corresponding active suspension control instruction and sends the corresponding active suspension control instruction to an active suspension actuator of the vehicle, the active suspension actuator executes the active suspension control instruction to control the vehicle to shake according to the game operation instruction, an active suspension sensor detects the vehicle shake and feeds the vehicle shake back to the active suspension controller, the active suspension controller corrects the active suspension control instruction corresponding to the game operation instruction according to the state change information of the vehicle and sends the corrected active suspension control instruction to the active suspension actuator of the vehicle, and controlling the active suspension actuator to work again, thereby realizing closed loop control. In the game operation process, the active suspension controller of the vehicle monitors the state of the vehicle all the time, judges whether the current state of the vehicle is suitable for starting a game control mode or not, and closes the game control mode and switches back to the vehicle control mode in time if the vehicle is determined to be unsuitable for continuously starting the game control mode according to the state change information of the vehicle. Therefore, the aim of controlling the vehicle executing mechanism by the game application program is fulfilled on the premise of not influencing the safety of the vehicle, and the use experience of a user is improved.
Based on the same inventive concept as the foregoing embodiment, an embodiment of the present invention provides a vehicle control apparatus, as shown in fig. 4, including: a processor 110 and a memory 111 for storing computer programs capable of running on the processor 110; the processor 110 illustrated in fig. 4 is not used to refer to the number of the processors 110 as one, but is only used to refer to the position relationship of the processor 110 relative to other devices, and in practical applications, the number of the processors 110 may be one or more; similarly, the memory 111 illustrated in fig. 4 is also used in the same sense, that is, it is only used to refer to the position relationship of the memory 111 relative to other devices, and in practical applications, the number of the memory 111 may be one or more. The processor 110 is configured to implement the vehicle control method applied to the vehicle control apparatus when the computer program is executed.
The vehicle control apparatus may further include: at least one network interface 112. The various components of the vehicle control device are coupled together by a bus system 113. It will be appreciated that the bus system 113 is used to enable communications among the components. The bus system 113 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 113 in FIG. 4.
The memory 111 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 111 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 111 in the embodiment of the invention is used to store various types of data to support the operation of the vehicle control apparatus. Examples of such data include: any computer program for operating on the vehicle control device, such as operating systems and application programs; contact data; telephone book data; a message; a picture; video, etc. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs may include various application programs such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. Here, the program that implements the method of the embodiment of the present invention may be included in an application program.
Based on the same inventive concept of the foregoing embodiments, this embodiment further provides a computer storage medium, where a computer program is stored in the computer storage medium, where the computer storage medium may be a Memory such as a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash Memory (flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read Only Memory (CD-ROM), and the like; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc. The computer program stored in the computer storage medium implements the vehicle control method applied to the above-described vehicle control apparatus when executed by a processor. Please refer to the description of the embodiment shown in fig. 1 for a specific step flow realized when the computer program is executed by the processor, which is not described herein again.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
As used herein, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, including not only those elements listed, but also other elements not expressly listed.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (10)
1. A vehicle control method is applied to an active suspension controller of a vehicle, and is characterized by comprising the following steps:
acquiring a game operation instruction input by a user when operating a game;
inquiring the corresponding relation between different set game operation instructions and active suspension control instructions according to the game operation instructions, and acquiring active suspension control instructions corresponding to the game operation instructions;
and sending the active suspension control instruction corresponding to the game operation instruction to an active suspension actuator of the vehicle so as to control the vehicle to shake according to the game operation instruction.
2. The vehicle control method according to claim 1, wherein before the obtaining of the game operation instruction input by the user while operating the game, the method further comprises:
acquiring current state information of the vehicle;
judging whether the current state of the vehicle is suitable for starting a game control mode or not according to the current state information of the vehicle;
and when the current state of the vehicle is determined to be suitable for starting a game control mode, switching a control logic to the game control mode, and executing the step of acquiring a game operation instruction input by a user when the user operates a game.
3. The vehicle control method according to claim 2, characterized in that the current state information of the vehicle includes at least one of: steering wheel angle information, lateral acceleration information, vehicle speed information.
4. The vehicle control method according to claim 2, wherein the acquiring current state information of the vehicle includes:
and after a game starting instruction is received, acquiring the current state information of the vehicle.
5. The vehicle control method according to claim 2, characterized by further comprising:
and sending a preset prompting message when the current state of the vehicle is determined not to be suitable for starting the game control mode, wherein the preset prompting message is used for prompting the failure of starting the game control mode for the user.
6. The vehicle control method according to claim 1, wherein the acquiring of the game operation instruction input by the user while operating the game includes:
reading operation action data of a user when the user operates a game from the CAN bus;
analyzing the operation action data when the user operates the game, and acquiring a corresponding game operation instruction input when the user operates the game.
7. The vehicle control method according to claim 1, wherein after the sending of the active suspension control command corresponding to the game operation command to an active suspension actuator of the vehicle to control the vehicle to shake according to the game operation command, the method further comprises:
acquiring state change information of the vehicle;
and correcting the active suspension control command corresponding to the game operation command according to the state change information of the vehicle, and sending the corrected active suspension control command corresponding to the game operation command to an active suspension actuator of the vehicle.
8. The vehicle control method according to claim 7, characterized by further comprising:
and closing the game control mode when the vehicle is determined to be not suitable for continuously starting the game control mode according to the state change information of the vehicle.
9. A vehicle control apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the vehicle control method according to any one of claims 1 to 8 are implemented when the processor executes the computer program.
10. A computer storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the vehicle control method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010590263.8A CN111870933A (en) | 2020-06-24 | 2020-06-24 | Vehicle control method and device and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010590263.8A CN111870933A (en) | 2020-06-24 | 2020-06-24 | Vehicle control method and device and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111870933A true CN111870933A (en) | 2020-11-03 |
Family
ID=73156938
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010590263.8A Pending CN111870933A (en) | 2020-06-24 | 2020-06-24 | Vehicle control method and device and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111870933A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113318457A (en) * | 2021-06-24 | 2021-08-31 | 中国第一汽车股份有限公司 | Control method, device, equipment and storage medium |
CN115040874A (en) * | 2022-06-15 | 2022-09-13 | 成都童趣智能游乐设备有限公司 | Real vehicle driving and game driving integrated racing car game system and method |
CN115177948A (en) * | 2022-06-30 | 2022-10-14 | 重庆长安汽车股份有限公司 | Vehicle interaction method and system supporting handheld entertainment equipment and automobile |
WO2024131934A1 (en) * | 2022-12-23 | 2024-06-27 | Nio Technology (Anhui) Co., Ltd | Functional safety for an electrical vehicle in stationary mode |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100248826A1 (en) * | 2009-03-24 | 2010-09-30 | Kabushiki Kaisha Square Enix (Also Trading As Square Enix Co., Ltd.) | Game apparatus, game progressing method, and recording medium |
CN102810235A (en) * | 2011-06-02 | 2012-12-05 | 环球娱乐株式会社 | Gaming machine having plural gaming modes |
CN109316743A (en) * | 2018-07-31 | 2019-02-12 | 努比亚技术有限公司 | A kind of game control method, terminal and computer readable storage medium |
CN110368681A (en) * | 2019-08-07 | 2019-10-25 | 广州小鹏汽车科技有限公司 | Vehicle-mounted method for gaming, device, vehicle and machine readable media |
CN110368682A (en) * | 2019-08-07 | 2019-10-25 | 广州小鹏汽车科技有限公司 | A kind of interactive system and method for vehicle-mounted game |
CN110401774A (en) * | 2019-07-26 | 2019-11-01 | 苏州蜗牛数字科技股份有限公司 | A kind of method and device of game mode switching |
-
2020
- 2020-06-24 CN CN202010590263.8A patent/CN111870933A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100248826A1 (en) * | 2009-03-24 | 2010-09-30 | Kabushiki Kaisha Square Enix (Also Trading As Square Enix Co., Ltd.) | Game apparatus, game progressing method, and recording medium |
CN102810235A (en) * | 2011-06-02 | 2012-12-05 | 环球娱乐株式会社 | Gaming machine having plural gaming modes |
CN109316743A (en) * | 2018-07-31 | 2019-02-12 | 努比亚技术有限公司 | A kind of game control method, terminal and computer readable storage medium |
CN110401774A (en) * | 2019-07-26 | 2019-11-01 | 苏州蜗牛数字科技股份有限公司 | A kind of method and device of game mode switching |
CN110368681A (en) * | 2019-08-07 | 2019-10-25 | 广州小鹏汽车科技有限公司 | Vehicle-mounted method for gaming, device, vehicle and machine readable media |
CN110368682A (en) * | 2019-08-07 | 2019-10-25 | 广州小鹏汽车科技有限公司 | A kind of interactive system and method for vehicle-mounted game |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113318457A (en) * | 2021-06-24 | 2021-08-31 | 中国第一汽车股份有限公司 | Control method, device, equipment and storage medium |
CN115040874A (en) * | 2022-06-15 | 2022-09-13 | 成都童趣智能游乐设备有限公司 | Real vehicle driving and game driving integrated racing car game system and method |
CN115177948A (en) * | 2022-06-30 | 2022-10-14 | 重庆长安汽车股份有限公司 | Vehicle interaction method and system supporting handheld entertainment equipment and automobile |
WO2024131934A1 (en) * | 2022-12-23 | 2024-06-27 | Nio Technology (Anhui) Co., Ltd | Functional safety for an electrical vehicle in stationary mode |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111870933A (en) | Vehicle control method and device and computer storage medium | |
CN111873742A (en) | Vehicle control method and device and computer storage medium | |
CN111619576B (en) | Control method, device, equipment and storage medium | |
WO2022095673A1 (en) | Frame rate adjustment method and apparatus, device, computer readable storage medium, and computer program product | |
CN112153600B (en) | Audio management method, device and system and computer storage medium | |
JP2019036140A (en) | Controller, method for control, and computer program | |
WO2011033854A1 (en) | Game device, game interruption program, storage medium in which game interruption program is stored | |
CN112208282B (en) | Control method, control device, computer equipment and storage medium | |
JP4241222B2 (en) | In-vehicle display device | |
JP3899883B2 (en) | Text-to-speech synthesizer for vehicles | |
US20230082308A1 (en) | Virtual connected vehicle infrastructure | |
JP2021008148A (en) | On-vehicle system, on-vehicle device and control method | |
JP3481230B2 (en) | GAME DEVICE, GAME DEVICE CONTROL METHOD, AND PROGRAM | |
JP3392494B2 (en) | Video playback device | |
CN113602347A (en) | Control method, device, medium and equipment for electric steering assistance | |
JP2005329754A (en) | Driver's perception control device | |
CN113525271A (en) | Vehicle noise reduction method, vehicle machine and computer storage medium | |
CN113415341A (en) | Steering wheel silent control method and device based on steer-by-wire system | |
AU2020213381A1 (en) | Industrial Vehicle | |
CN113002449A (en) | Control method and device for vehicle-mounted HMI equipment | |
CN112169309A (en) | Vehicle-mounted game control method and system and vehicle-mounted game controller | |
CN116863783A (en) | Drive simulation system and drive simulation method based on drive-by-wire chassis | |
CN115794024B (en) | Volume adjusting method, device, medium, chip and vehicle | |
US20080178027A1 (en) | Music reproducing device | |
Shah et al. | Integration of Voice Assistant and SmartDeviceLink to Control Vehicle Ambient Environment. |
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 |