Military Technology

Chapter 7 Bug-Free Programs

Looking at the full screen of code, Zou Xiaodong couldn't help but exclaimed, "Damn it, you wrote it."

"Stop sighing, hurry up to work!" Wu Hao patted him and urged.

Zou Xiaodong grabbed his arm and looked at him with an unbelievable expression: "Who are you and where is Wu Hao?"

"Fuck off!" Wu Hao rolled his eyes involuntarily when he heard the words, pulled his arm away from his hand and said, "Stop playing, hurry up to work, we have limited time."

"No, is this what you wrote? I don't believe it, this code is not at the same level as what you wrote before. At this level, it is much better than the thousand-degree engineer who came to the school to give a presentation last time. Yes." Zou Xiaodong said with an incredulous look on his face.

"Especially this paragraph, \u003cbutton nclick=document..."

Looking at Zou Xiaodong's surprised look, he couldn't help interrupting: "There are a lot of things you don't know, and you'll know it later."

"Really?" Zou Xiaodong asked suspiciously.

Wu Hao patted the back of the guy's head and said angrily, "When did I lie to you?"

Zou Xiaodong shook his head and said, "This may not be possible. For example, we are going to meet new students in our sophomore year. When we meet a beautiful junior girl, you even lied to me about asking someone to eat..."

"Boss, come and see this." Yang Fan shouted at him.

"Boss?" Wu Hao said in a daze.

"Yes, don't tell your boss what to call you." Yang Fan asked at him.

Wu Hao rubbed his nose and said, "Call it whatever you want, what's the matter."

"This is the drone I designed and the related parts list, you can take a look." Yang Fan handed him the blueprint in his hand.

"According to your needs, I have referenced some array drones currently on the market, so I think a relatively stable and easy-to-control quadcopter is our best choice."

Yangfan showed him the schematic diagram of the UAV design drawn in the picture: "Look, these are four shafts, which are used to install motors and propellers. The middle position is used to carry the flight control system, batteries, and other loads. "

"What size can this drone be made of?" Wu Hao asked while looking at the design.

Yang Fan shook his head and said: "This is not necessarily the case. The size of this four-axis drone is very large. The large one can be five or six meters in diameter and can be manned to fly. The small one is said to be the size of a thumb now. , was used by the US Army for battlefield reconnaissance.

Of course, this also depends on our usage. If it's just flying, it can be done very little. But if you want to carry a load and control the air for a long time, it should be larger. As far as our current use is concerned, I think a small drone with a diameter of about ten to fifteen centimeters is more suitable. "

"So how much does it cost to make this drone?" Wu Hao asked after thinking for a while.

Yang Fan looked at the parts list and responded to him: "This is not necessarily, it depends on the quality of our parts.

Generally speaking, it takes at least three or four hundred to assemble such a fist-sized drone by ourselves. "

"What if I buy it?" Wu Hao asked.

Yang Fan thought about it for a while, and then said to him: "If you buy it, it will be cheaper. A drone like a certain treasure with a camera and a remote control costs only two or three hundred, and it does a better job. "

Seeing Wu Hao's doubtful affection, Yang Fan introduced with a smile: "It's still a matter of production cost. If the number of production is large, the natural cost will be reduced. Moreover, they get the parts directly from the manufacturer, so the price must be much cheaper. "

"Two or three hundred, then can we buy these drones back for modification." Wu Hao asked after thinking for a while.

"Refit?"

Yang Fan thought for a moment, then nodded at him and said, "Yes, yes, yes.

But we don't yet know what exactly these drones are like. We need to buy some samples of different brands to come back and have a look, and then choose one that suits us.

We need a large number, at least one or two hundred. Such orders can be ordered directly from their factory, and they can also be produced to our specifications. For example, remove the camera, do not need the remote control and so on. "

"Okay, I'll leave this to you. You pick some samples and come back to test to see if they meet our needs. For funding, you can go directly to Wang Qian, and I'll just sign it." Wu Hao nodded. road.

"Received!" Yang Fan made a gesture and then got busy.

Seeing Yang Fan continue to work, Wu Hao smiled and continued to work. There are still many jobs waiting for him.

This set of UAV swarm array control system is divided into several subsystems. And the framework of these subsystems needs him to build, and with Zou Xiaodong's ability, he can only refine and perfect them.

Of course, this is not a direct dictation, but a compilation and summary of the relevant information in the brain according to the needs. And make appropriate deletions and modifications, so as to meet their needs.

"Haozi, you are looking at the two units of positioning error measurement and three-dimensional normal distribution. I don't know where to start." Zou Xiaodong shouted at him.

"I'll take a look." Wu Hao slid the swivel chair to Zou Xiaodong's side and looked at the computer screen carefully.

"Here, you have a bug, just fix it." Wu Hao said, pointing to the code on the computer screen.

Zou Xiaodong was a little discouraged: "I said, it always feels wrong. It turns out that there is a bug again. When the program I wrote has no bugs, it will be good."

"It's beautiful to think, there is no way for a programmer to have bugs, even God can't do it." Wu Hao joked with a smile.

"I just thought... No, Haozi, you wrote so much code, why didn't I find bud from it." Zou Xiaodong suddenly came back to his senses at him.

Uh... Wu Hao was stunned for a moment, he couldn't say that these things were ready-made in his mind, he just needed to carry them. Even if it is edited and edited by myself, it is like a college student doing a question in the third grade of elementary school. How can mistakes be made easily.

"Why not, there are many. Some I have modified myself, and some you haven't discovered yet. When you go back to test, all bugs will appear."

When he was talking about it, Wu Hao couldn't help sweating in his heart. It seems that I have to pay attention to it in the future. It is also necessary to have more errors in the program code I wrote.

"It's also true that some bugs can't be found until the final test. Even if they are tested, they may not be able to be found. Otherwise, why would W Soft have so many patches."

While the two were talking, Zhang Jun walked out in a hurry with a lot of boxed lunches in between, and then said happily to everyone: "Come, come, everyone has eaten, and they all choose what you like."

"Fatty, what are you doing so happy, is there a happy event?" Zou Xiaodong joked at Zhang Dong.

If it was normal, Zhang Jun would fight back, but today's Zhang Jun doesn't seem to care, but while taking out the lunch box from his bag, he excitedly said to a few people: "Let me tell you, our company Registration has been approved."

"real?"

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

You'll Also Like