Chapter 17 Code Codes

Under the leadership of Yin Tianhui, Yang Feng and Li Qiang walked through the narrow laboratory corridor, and when they passed through the laboratory corridor, they could see that the laboratory next to them was full of programmers and machines experimenting. Occasionally, a few people were playing online games on their computers, and when they saw Dr. Yin Tianhui passing through the corridor, they quickly pressed the Alt+Tab key to switch to the programming interface. And even next to the machines that are experimenting, the machines are constantly moving, and the experimenters are smoking cigarettes in the corner of the laboratory, and they are chatting in groups. When he saw the group of them coming, he quickly snuffed out the cigarette butt in his hand, threw it on the ground, stepped on the cigarette butt with his foot, and looked up at the robot as if nothing had happened. And around them is the light blue and light yellow intertwined, the smoke that has not yet dissipated, the light blue is the smoke that was supposed to be inhaled, and the light yellow is the smoke that is spit out, which is really trying to cover up.

They made a beeline to the penultimate room at the end of the distance. The moment I pushed the door in, the two of them were chatting about the stock market.

One person said: "A cup of tea, a pack of cigarettes, a broken stock staring for a long time".

Another said, "I also lost money in the stock market today." I don't know if I can bottom out in the afternoon."

They saw Yin Tianhui walk into the office. So he stood up and shouted softly, "Hello chairman!", and Yin Tianhui made a gesture for them to sit down, turned to Yang Feng and said, "You flash the program to the ROM." These two are our testers and can assist you", so he stepped aside and motioned for Yang Feng to do the demonstration.

Yang Feng's expression was very confident, he took out the car he made that day from his backpack, put it directly on the ground, and drew a black line with a marker on the white floor tiles, and the car automatically traveled on the drawn black line when it was powered on.

Yin Tianhui smiled slightly disdainfully after seeing it and said, "You are actually a pediatrician. What kind of equipment do you see we are?", along the direction Yin Tianhui pointed, Yang Feng saw a piece of equipment that was half a person tall. The device was well-made, with a stainless steel casing with a brushed metal finish. Yang Feng looked back at his single-chip microcomputer car, and there was really a feeling of being a little witch.

Seeing such a huge machine, Yang Feng was stunned for a moment, and then smiled slightly: he didn't feel that the difficulties in front of him had affected him much. Looking at this well-made machine, Yang Feng felt like a friend he hadn't seen for a long time, walked up and down in front of this robot, looked up and down, and gently touched the shell of this device with his hand, which felt silky and cold to the touch. There is a terminal computer that can be operated on this device, running the Linux operating system, which can modify the program at any time, and this computer controls all the C51 chips of the entire robot. The functions achieved by each C51 chip are not the same, and to some extent, although it is well-made and has many chips, this machine does not achieve very complex functions. It has two robotic arms, which can achieve 360 degrees of rotation without dead angles.

"What is this machine used for?", Yang Feng asked with a grin.

- "It can be used to transport supplies, and at this stage it can achieve the functions that it can achieve is not yet ready for production. Most of the software functions have not yet been implemented, and it was originally planned that this robot could walk on rough terrain, but it took half a year to develop this product in our company. Time is tight, the task is heavy", Yin Tianhui saw that Yang Feng liked his design very much, and said calmly, after all, no one will give a smiling person a closed door, not to mention that Yang Feng showed a high interest in this equipment, which is a great affirmation of his own design.

Yang Feng looked at Yin Tianhui and looked back at the two technicians whose expressions had not changed, but he was thinking in his heart: "Since the time is tight and the task is heavy, why are the employees of this company overworked?"

Yin Tianhui saw Yang Feng's extremely high interest, thought of himself back then, thought of his original intention to study computer science, and thought of giving this young man a chance to show himself: "Look at it, if you can drive this machine, how long will it take?"

Yang Feng nodded and gestured, silent, and then walked to the technician and asked the technician, "Can you show me the code of this machine?"

The technician looked back at Yin Tianhui, who nodded slightly. The technician saw that Yin Tianhui's attitude was clear, and said, "You can take a look."

Yang Feng sat on the chair, looking at the code on the screen, he felt that there seemed to be some problem with those codes, he glanced at it with his eyes, turned back to Yin Tianhui and said, "I will take about three hours for this program." ”

Why does Yang Feng have such confidence? That's because when Yang Feng made this software in the Internet café, he had already analyzed all possible scenarios, and it encapsulated a series of powerful libraries (Libraries), as the core of C51's SDK, in the event of an unexpected situation, the robot can automatically call these APIs.

After Yin Tianhui heard what Yang Feng said, he felt a little surprised, and thought: "Yang Feng's words are a little arrogant and a little complacent. Although Yin Tianhui has a lot of opportunities, it takes a lot of time to deal with the company's affairs. But see Yang Feng. Yin Tianhui decided that he might as well wait for Yang Feng for three hours. Then he said to Yang Feng: "You can get it, I'll wait for you here." ”

Afterwards, Yin Tianhui sat cross-legged on the chair. Yang Feng turned around and began to discuss the technical problems encountered with the technicians. After nearly half an hour of discussion, Yang Feng found that there was a big technical flaw in the logic of the smart car. This technical flaw will result in the underlying architecture having to be refactored. This gave Yang Feng an opportunity to quickly open his laptop and copy the SDK he had packaged from Keil to the technician's computer. Yang Feng connected the technician's computer with the terminal on the robot's body, and then opened VIM and began to write C code.

After a week of continuous practice, Yang Feng's C language level has reached the point of perfection, and lines of code continue to flash on the screen with the tapping of his fingertips. include、malloc、free、tcflush…… In Yang Feng's eyes, the picture is like a musical score, and he is the pianist who plays this beautiful music and the composer who composes this musical score.

Yin Tianhui and Li Qiang sighed involuntarily from time to time next to them: "Oh my God", "This technology is really good!", "Well, our company lacks such talents", "Wow"......