Chapter 115

To put it bluntly, it is to give the mecha's bending process a public static data.For example, set this public static class as public static int a. When the user of the mecha enters the system according to the user manual, once he checks 30 degrees or 60 degrees, this value will be assigned to public static int a.If the user sets a bend of 30 degrees, then this a=30.Next, compare a with 45 and 90. When a < 45, insert a between 0° and 30° of the process. When the value of a > 45, insert a between 45° and 90° of the bending process. between [-] degrees.Sorting is performed in the process according to the size of the integers, which can avoid the confusion of the mecha operation due to the arrangement of the integers.When the user of the mecha closes the mecha system, the public static a will be destroyed and become the value assigned at the beginning to continue to participate in the next user's check.

This can ensure the orderly logic of the system and the control of the mecha, so that the work of the mecha will not be disturbed.

Therefore, Liu Yun does not intend to open the system permissions to mech users.

At the same time, the user interface of the mech system is a window-type operation interface. After all, the window-type operation interface is more intuitive and vivid. The term window-type operation interface may be unfamiliar to everyone. To put it bluntly, it is the windows operating system.The code-based operating system is more representative of dos, which is the software in the computer that can input English letters to execute commands, called command, or cmd.exe for short.This kind of operating system can operate the machine only by entering codes. The disadvantage is that it needs to understand English and certain code knowledge. It is not as intuitive as the window interface, so Liu Yun will definitely not use DOS as the mecha operation interface.The main reason is that mecha face faces are all people, not programmers. If face face programmers use DOS to operate, there will be no problem, but it is obviously inappropriate to use DOS to face ordinary people.

At present, the 1.0 version of the mech is mainly to operate the mech with the interface, and the vegetative person is not considered. When the 2.0 version of the mecha will be added, the vegetative person’s operation mode will be added to it, but the mecha suitable for the vegetative person is slightly more complicated than the ordinary mecha. Some, because the mechas used by ordinary people can not only control the mechas by operating buttons, but also use 3D scanning technology to control the mechas.It means that the operator of the mecha stands in the cockpit of the mecha. At this time, the users of the mecha can make various actions according to their own needs, and the 3D scanner will scan the users in the cockpit. , after analyzing the actions of the mecha user, the mecha will issue instructions to imitate the action of the mecha user, so that the use of the mecha can be controlled more conveniently and quickly. It can be said that it is very friendly to most people. Those who don't know how to control mechs will be very comfortable with this mode of scanning with a 3D scanner. The main reason is that this 3D scanning mode is suitable for everyone, for those who respond slowly and for those who are not very good at It is a very good mode for people who control mechas. Those who are not very good at manipulating mechas only need to make various actions according to their own needs, and the 3D scanner will take the people in the cockpit. The movements are scanned and copied, and then the user's movements are analyzed, mainly the hand and foot movements of Li Jia's operator. To put it bluntly, it is to copy the mecha user's arms, palms, feet, thighs, calves, and waist Whether there is bending over, whether there is turning left and right, it is as simple as that, except for analyzing the movements of these few human bodies, the shape control center in other places will not analyze and copy them.

This is called the 3D copy control mode. For most people, they don't need this mode. They can use the normal mode, that is, the mode of manipulating the mechanical buttons to control the mecha.Moreover, the operation mode of manipulating the mechanical buttons is much more interesting than simply using the 3D copy control mode. After all, manipulating the mecha according to one's own actions is very advanced and feels very high-grade, but that's all, far more than that. It’s not the joy of manipulating the mechanical buttons, it’s a real feeling of manipulating the machine, which is equivalent to which part of the user presses the button to work, it can be said to be controlled one by one.The operation mode of this mechanical button is very interesting and more realistic, suitable for people who like machinery. At the same time, this control mode is to receive and execute commands one by one by the control center, while the 3D copy mode is to directly scan the user of the mecha. The whole body movement, after analyzing the arm and palm of the mech user, as well as the movement of the thigh, calf, foot and waist, gives a simulation of all the movements, this simulation is given by the control center of the mech A parallel command is equivalent to giving commands to the mecha's hands and arms, the mecha's thighs, calves, feet, and mecha's waist at the same time, so that these actions can be completed at the same time. It can be said that simulating human actions is more similar. This is The biggest advantage of the 3D scan copy mode.

This advantage is still very advantageous. After all, if the user of the mecha uses the mechanical button mode to control the mecha, he must send one request to the mecha one after another. This request is connected in series, which means that the request is one. Follow one by one, it is impossible to send all the requests to the control center of the mech at once.The biggest difference between the 1D copy mode of the mech and the mechanical button control of the mech is that the 3D copy mode of the mech analyzes all the actions of the mech user at one time, and after analyzing all the actions of the mech user Transform these actions into instructions for each part of the mecha at one time. At this time, the instructions are parallel, and each part of each machine will control the parts of the mecha according to the instructions when receiving the instructions.But this command is not parallel to the part of the mecha, because the current version 3 of the mecha, even the instructions of a certain part of the mecha version 1.0 in the future, cannot be parallelized, mainly because it is in one part Parallel instructions are likely to cause problems in the operation of the mecha and complete logical confusion.

For example, let's take the big arm of the mech as an example.If a command to turn left is issued to the arm, then the arm of the mecha must turn to the left at this time, but two actions cannot be given to the arm at the same time. Turn right instruction, at this time the mech may appear logic confusion.In order to avoid this logical confusion, codes must be used to specify how to deal with two commands appearing at the same time on a mecha part.

(End of this chapter)

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like