05.11.2012 Views

Navigation Functionalities for an Autonomous UAV Helicopter

Navigation Functionalities for an Autonomous UAV Helicopter

Navigation Functionalities for an Autonomous UAV Helicopter

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

4.2. TRAJECTORY GENERATOR 41<br />

Calculation of the outer loop inputs<br />

We c<strong>an</strong> finally address the problem of generating the reference inputs <strong>for</strong><br />

the outer control loop. The inputs will be calculated in the <strong>for</strong>m of control<br />

errors (difference between the current helicopter state <strong>an</strong>d the desired one)<br />

as follows.<br />

1. Calculation of the position error vector δp.<br />

The position error vector is the difference between the control point<br />

position pn cp <strong>an</strong>d the helicopter position given by the INS/GPS system<br />

pn heli . In order to be used in the outer loop control equations the<br />

vector must be rotated from the navigation frame to the body frame<br />

using the rotation matrix C b n:<br />

δp b = C b n(p n cp − p n heli)<br />

As explained in section 4.2.2, the control point position is calculated<br />

using feedback from the helicopter position. The method does not<br />

search <strong>for</strong> the control point along the whole path segment but it<br />

remembers the value of the parameter s (e.g. the previous control<br />

point) from the previous control cycle <strong>an</strong>d starts the search from<br />

there. By doing this, the search is very fast since the new control<br />

point will not be far from the previous one (the control function is<br />

called with a frequency of 50Hz). At the beginning of each segment,<br />

the parameter value is set to zero.<br />

Once the new value of s is found, the position error vector δp b c<strong>an</strong><br />

be calculated together with the local path t<strong>an</strong>gent T <strong>an</strong>d curvature<br />

K.<br />

2. Calculation of the velocity error vector δv.<br />

The velocity error vector is the difference between the target velocity<br />

vtarg <strong>an</strong>d the helicopter velocity given by the INS/GPS system v n heli .<br />

The target velocity is obviously t<strong>an</strong>gent to the geometric path. The<br />

direction of the t<strong>an</strong>gent vector is given by:

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

Saved successfully!

Ooh no, something went wrong!