Chapter 122

After finishing the mechanical design of the solar panel of the mech, it is the solar concentrating part of the mech. The song is basically completed, only the design of the head of the mech is left, and the mech is not Possess the ability to think, so you can only listen to some relatively simple words, and make various reactions against all kinds of words from the outside world. It is difficult to understand the more difficult words and rare words. After all, the degree of intelligence lies here. , it is impossible to be so intelligent.Even these simple words that can be understood are not judged and reacted by mechas based on the knowledge reserves in their own databases, but programmed by programmers in the database in advance.For example, the programmer has set a program response in the program, so that the mech can respond quickly and slap the other party when it hears the phrase "I want to hit you". At this time, the code needs to be set in advance, and The design of this code is very rigid, the four characters "I want to hit you" must not be less than one character, if one of these four characters is missing, then the mecha will not be able to respond.For the code, you can use the if code, if 'I want to hit you', ab, here a means that this is a method, and this method officially calls a method of mecha punching, so I won't write the code in detail here .Simply put, ab is the specific parameter in the calling method, and this b is a specific action of the mecha. For example, when the mecha is about to punch, it is obvious that the mecha needs to raise its arm, and then the arm of the mecha Attack forward, at this time the mech's fist is clenched, and the entire mech's arm moves along the target in front of it until it hits the target in front of it. Hit you' is a response to the phrase.

After all, the mecha is a machine, not a human being, so we can only rigidly design some responses to external words. For example, I want to design the mecha so that when the four words "I want to hit you" appear three words At this time, the mecha will attack, instead of waiting for someone from the outside to say four words before starting to attack.Since I want to hit you, there are only four words, and as long as there are three words, the mecha will react, so it is said to choose three words out of the four words. At this time, there are a total of four possibilities, such as this possibility. The program design with few features is very simple, you only need to list all these four possibilities in the program.Since there are only 4 possibilities, write this code directly.Simply write it in C, if (I want to hit 丨 丨 I want you 丨 丨 I want to hit you 丨 丨 I want to hit you) return the attack command of the mecha, when the external sound is identified by the sound card of the mecha, these four words appear. In any of the above situations, at this time, the control center of the mecha will transmit the attack signal to the place where the mecha receives the command according to the pre-set program code in the system program. The upper arm and the arm are the same as before. When the upper arm of the mech receives the command from the control center, it will stretch the wire rope near the upper arm of the mech. The first thing to stretch is the wire rope that goes up the upper arm , when the wire rope of the mech is stretched to a certain extent, the position of the big arm of the mech remains fixed and no longer rises. At this time, the big arm of the mech is controlled to move forward, and the forearm of the mech also starts to move forward. Does it move with the movement of the big arm of the mecha? The fist of the mecha is parallel to the forearm of the mecha, and the fist is in a clenched state. At this time, the mecha will continue to move forward. A's clenching action can also give the mech a slap action. At this time, the mecha is no longer clenching its fist, but changed to the mecha's slap style, that is, the mecha has 4 fingers like a human palm. The head is completely straightened. At this time, the fingers of the mecha are straightened, which is equivalent to the shape of the mecha becoming a slap, and the slap of this mecha will continue to move with the movement of the upper arm and the forearm of the mecha. Movement, when the mecha's slap touches or attacks the target in front of it, the mecha's slap can use a very large force due to the huge inertia. After all, the power of the mecha's slap comes from the mecha's big arm And the inertia of the movement caused by the forearm of the mech when it is moving, plus the hardness of the mecha is very high, all of which are made of metal, which is very high in terms of hardness, and the slap at this time is very large. The force to hit the target in front of you, such as attacking a tree in front of you, since the material of the mecha is made of hard metal, there must be no problem with the hardness of the mecha, if the small tree being attacked If its thickness is relatively thin, the mech at this time will hit the tree in front of it with its very hard metal palm, which can easily destroy the small tree in front of it.Of course, the destructive power of mechs is also limited. It is still possible to destroy small trees that are not strong like small trees. Is it impossible to destroy trees that can only be hugged by several people? The hardness is very high, but the thickness of the armor is relatively average, so it is still possible to destroy those small trees or other relatively small and easy to destroy places.Of course, if the mecha is equipped with some weapons, the mecha can still easily destroy those targets that are much larger than him, but there is no doubt that the current Liu Yun does not intend to change Yunfan Technology Company into a battle Because Liu Yun doesn't want to do those boring and labor-intensive things, the reason why he can't engage in these combat-related problems is that these combat-type weapons are too expensive. Liu Yun's biggest task at present is to make money It is to promote the sales of solar cars and the promotion of solar mechs. As for other things, Liu Yun has no plans at present, and even if he wants to make some combat weapons that cost a lot of money, Liu Yun does not have this. Conditions, you must know that the current mechas need to spend a lot of money before they start to be manufactured. Deng will probably spend even more when he actually starts producing the mechas, so the preliminary work of the mechas still needs to be done well. Yes, and at the same time, we must also do a good job in the revenue situation. It is impossible to ignore everything, as long as you have a dream in your heart.If the promotion of mechs goes well, the promotion of mechas this time should be better than the sales of cars. Is it possible to study mechas after earning enough money? At the same time, the sales of mechas this time Should get her more points.Liu Yun couldn't remember how long he hadn't earned points.

(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