D
D
ddddd tttt2016-09-30 17:44:37
Programming
ddddd tttt, 2016-09-30 17:44:37

How to program a quadcopter?

How quadrocopters are programmed, for example, for the joint flight of several quadrocopters together. The teacher says that he does not know in what language and how they are programmed.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Armenian Radio, 2016-09-30
@gbg

Learn: -linal
(linear algebra, a boring subject, bystudents whine "why do we need matrices" and confuse columns and rows)
(suffering?) ADD))
-GA (harmonic analysis - Fourier transforms and other horrors that for some reason help to write stable control algorithms. They cause yawns in ordinary students, since they consist of 146% of gloomy integrals and the rule "boa and in water")
-FM (numerical modeling - solving problems of mathematics by numerical methods. Bydlokodery merge, because here figakproduction will not work - the result will not converge. You will have to think with your head).
-theoretical mechanics (theoretical mechanics. Applying all of the above to the problems of mechanics. Oh-oh, you have to learn what a Hamiltonian is, some kind of nerdness, it’s better to play dotka.
) take off)
-VA (variation analysis. Well, solve that Hamiltonian from termekh in a reasonable time using numerical methods, and even so that it flies, not falls)
This is something like three courses of a specialized university.
The implementation language is not as important as the control algorithms. However, the study of the above usually gets rid of the stupid ideas of writing software for controllers in LUA and brings in the correct ideas about using C.
"Just like that, without effort and without knowledge, you can only sculpt doorways and datings.

A
Alexander, 2016-09-30
@NeiroNx

Firstly, it depends on the quadcopter - maybe there is a full-fledged linux on board with 512 meg of RAM, or maybe a dead Chinese controller with proprietary firmware. In any case, there must be a leader and a follower - one obeys the commands of the other. Only the leader is controlled - the followers follow him according to a certain algorithm - the coordinates of the leader, the type of construction and the position number in the formation are known - the coordinates of the leader are updated - the program of the slave calculates new coordinates and initiates movement towards them.

A
Alexey, 2016-09-30
@alsopub

If you are talking about beautiful videos on YouTube, where quadrics play ping-pong or something like that, then there quadrics are relatively standard, and there are good cameras and laser radars around that calculate the position of quadrics in the air and give commands as if from a control panel.
It doesn’t matter at all in what language, well, let’s say in C ++ or in any other, for which there is a good image recognition library like opencv. And you can calculate the system of equations and implement the desired algorithm in any language.

S
Sergey Kuzmin, 2016-09-30
@Flashmond

Well damn. Such a device may have its own language. Maybe microcontrollers are programmed in C, maybe in a similar language. In general, there is no definite answer. Here you can answer, on what the remote control from the TV is programmed? Or, for example, video recorders - most manufacturers will simply not tell you about this until you get a job with them

R
Rou1997, 2016-09-30
@Rou1997

Before programming and knowing how, you must have the quadcopter itself! If it is not and is not foreseen, then why is the question at all, and if you plan to create a quadrocopter, then the cheapest and most flexible options are Atmega (Arduino) and ARM Cortex (Raspberry, etc.), it is not so difficult to implement on its own control, and joint flight too, but most likely ready-made special boards will be easier, but it’s not a fact that they support joint flight out of the box and / or it can be implemented on them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question