Adaptative high-gain extended Kalman filter and applications
Adaptative high-gain extended Kalman filter and applications
Adaptative high-gain extended Kalman filter and applications
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
tel-00559107, version 1 - 24 Jan 2011<br />
Scicos call from<br />
scilab console<br />
Scilab call from the Konsole terminal<br />
4.3 real-time Implementation<br />
Real-time clock<br />
Real-time task<br />
Superblock<br />
Figure 4.21: Graphical Implementation of a real-time task.<br />
For portability <strong>and</strong> flexibility reasons, we used a Linux Live CD 14 comprising the RTAI-<br />
Lab suite: RTAI-Knoppix 15 [3, 94]. When we operate in realtime, that is to say when an<br />
observer is running, the RT tasks don’t require any hard drive access. Consequently there is<br />
no difference between the linux live CD <strong>and</strong> a regular linux installation.<br />
The development of a real-time executable is done from Scicos, launched from Scilab<br />
as shown on Figure 4.21. A Scicos diagram, which is meant to be compiled as a real-time<br />
application is composed of two blocks:<br />
− an external clock (in red),<br />
− a Scicos superblock that contains the whole real-time task (in black).<br />
The only input to this block is the external clock signal. Communication between the system<br />
<strong>and</strong> the real-time task is done using specific blocks (signal generation, Scopes, Analog/Digital<br />
<strong>and</strong> Digital/Analog blocks [34]). They can be found in the RTAI-Lib palette 16 .<br />
The graphical program obtained is compiled into a real-time executable with the help of<br />
an automatic code generator. Figure 4.22 shows the three steps of the compilation:<br />
14 A Live CD is an O.S. that deploys directly from the CD. No specific installation is needed on the host<br />
machine. The programs <strong>and</strong> real-time tasks can be provided via an external storage source as a USB key.<br />
In short, as far as the various softwares are concerned, the only hardware devices required are the CD with<br />
RTAI-Knoppix <strong>and</strong> a USB key.<br />
15 The version we used was built on a Linux kernel, 2.6.17 (SMP enabled kernel is available) <strong>and</strong> embedded<br />
with<br />
− RTAI version 3.4<br />
− Scilab-4.0/Scicos CACSD platform.<br />
16 In Scicos language, a palette is a collection of predefined blocks.<br />
78