13.08.2018 Views

[Studies in Computational Intelligence 481] Artur Babiarz, Robert Bieda, Karol Jędrasiak, Aleksander Nawrat (auth.), Aleksander Nawrat, Zygmunt Kuś (eds.) - Vision Based Systemsfor UAV Applications (2013, Sprin

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Prototyp<strong>in</strong>g the Autonomous Flight Algorithms Us<strong>in</strong>g the Prepar3D® Simulator 225<br />

(α , , ) is calculated relative to the object, not to the earth, and it is presented<br />

<strong>in</strong> fig. 5 <strong>in</strong> a block "Relative Rotate". The mechanism of function<strong>in</strong>g of the block<br />

"Relative Rotate" is also described by the equation (2).<br />

(2)<br />

where: – rotate matrix created from actual values of Euler angles α,β,,<br />

– rotate matrix created from setpo<strong>in</strong>t values of Euler angles α ,β , ,<br />

– rotate matrix with Euler angles error α ,β , . The angles error can be<br />

calculated from three trigonometric formulas (3).<br />

α atan2 , <br />

β as<strong>in</strong> <br />

atan2 , (3)<br />

where: – roll angle, – pitch angle, – yaw angle.<br />

6 Autonomous Flight Algorithm<br />

To get a fully autonomous object, PI controllers are not enough. They are responsible<br />

only for the stabilization, what means that the plane can fly at the required<br />

height and setpo<strong>in</strong>t orientation relative to the ground. Fly<strong>in</strong>g object should store <strong>in</strong><br />

the memory the planned route with the takeoff and land<strong>in</strong>g positions. The route<br />

consists of a sequence of po<strong>in</strong>ts, described as a geographic coord<strong>in</strong>ates LLA, the<br />

Latitude (), Longitude () and Altitude (height above sea level, ). Each of the<br />

commands performed dur<strong>in</strong>g the flight must be properly <strong>in</strong>terpreted and converted<br />

to setpo<strong>in</strong>ts for the PI controllers.<br />

To navigate an unmanned object, algorithm uses the transformation from the<br />

geodetic position (LLA) to ENU coord<strong>in</strong>ates (East, North, Up) [13], which are<br />

formed from a plane tangent to the Earth's surface fixed to a specific location.<br />

Units are converted to meters.<br />

The presented autonomous flight algorithm consists of four partial algorithms<br />

responsible for tak<strong>in</strong>g-off, land<strong>in</strong>g, tak<strong>in</strong>g waypo<strong>in</strong>ts and circl<strong>in</strong>g.<br />

6.1 Tak<strong>in</strong>g-Off and Land<strong>in</strong>g Algorithm<br />

The basic requirement for the autonomous take-off are accurate measurements of<br />

geographical coord<strong>in</strong>ates and the altitude, of start and end of the runway. Take-off<br />

algorithm consists of only a few simple <strong>in</strong>structions. After launch<strong>in</strong>g the eng<strong>in</strong>e<br />

algorithm ma<strong>in</strong>ta<strong>in</strong> the orientation of the runway and it accelerate the aircraft to<br />

the desired speed. Next, the algorithm change the setpo<strong>in</strong>t pitch angle of the aircraft,<br />

and then there are determ<strong>in</strong>ed the ENU coord<strong>in</strong>ates for the dest<strong>in</strong>ation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!