28.02.2014 Views

The Development of Neural Network Based System Identification ...

The Development of Neural Network Based System Identification ...

The Development of Neural Network Based System Identification ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7.2 FLIGHT TESTS IMPLEMENTATION 185<br />

recursive NN training were found to be too computationally intensive to perform on<br />

the real-time processor.<br />

Several improvements are made in the s<strong>of</strong>tware program to reduce the total computation<br />

time. <strong>The</strong> main improvements are listed in Table 7.1. <strong>The</strong> first improvement<br />

is in the implementation <strong>of</strong> Xsens ‘plug and play’ IMU driver.<br />

<strong>The</strong> original IMU<br />

driver from Labview R○ s<strong>of</strong>tware spent considerable computation time on determining the<br />

data format, number <strong>of</strong> bytes and redundant error handling. Since the data format is<br />

known, these functions can be removed. <strong>The</strong> same principle applies to the NMSS model<br />

conversion and the Hildreth’s QP algorithm, where redundant functions are removed.<br />

Finally, a Look-Up-Table (LUT) design is implemented for calculation <strong>of</strong> Γ and Φ, to<br />

reduce the amount <strong>of</strong> calculation involved in the nested ‘For’ loops.<br />

Table 7.1 <strong>The</strong> list <strong>of</strong> improvements made in the control s<strong>of</strong>tware program. Note that the timing<br />

statistics are obtained using pr<strong>of</strong>iling tools in Labview R○ .<br />

Type <strong>of</strong> improments<br />

Removed redundant functions<br />

from the IMU driver<br />

Removed redundant calculation<br />

in the NMSS model<br />

Removed redundant calculation:<br />

constraint violation check<br />

LUT design for the model prediction<br />

gains<br />

Sub-VI<br />

Xsens Mti<br />

IMU Driver<br />

Model<br />

Conversion<br />

ms/run ms/run % gain<br />

(old) (new)<br />

114.15 4.29 96.2<br />

1.73 0.35 79.8<br />

Hildreth’s QP 1.33 1.07 19.6<br />

MPC Gains 16.02 4.08 74.5<br />

Besides these improvements, several design tips were followed to keep the computation<br />

time as low as possible. <strong>The</strong>se design tips are:<br />

• <strong>The</strong> number <strong>of</strong> flight data samples transmitted to the ground control station is<br />

limited to 10 samples at a time to reduce network overhead.<br />

• Graphical visualisation <strong>of</strong> the output variables is avoided in the real-time processor<br />

in order to remove unnecessary computational overhead. <strong>The</strong> visualisation <strong>of</strong><br />

the sensor measurement and control input monitoring is displayed on the ground<br />

control station via the network shared variables protocol.

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

Saved successfully!

Ooh no, something went wrong!