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 />
4.3.4 Implementation Issues<br />
4.3 real-time Implementation<br />
Once the Live CD is loaded <strong>and</strong> the computer is running under the Linux distribution,<br />
the real-time environment has to be activated following three stages:<br />
1. several RTAI <strong>and</strong> COMEDI modules are loaded with the following shell comm<strong>and</strong>s (Cf.<br />
[34], page 11) 21 :<br />
insmod / usr / r e a l t i m e / modules / r t a i h a l . ko}<br />
insmod / usr / r e a l t i m e / modules / r t a i u p . ko $\ sharp$or r t a i l x r t . ko}<br />
insmod / usr / r e a l t i m e / modules / r t a i f i f o s . ko}<br />
insmod / usr / r e a l t i m e / modules / r t a i s e m . ko}<br />
insmod / usr / r e a l t i m e / modules / rtai mbx . ko}<br />
insmod / usr / r e a l t i m e / modules / r t a i m s g . ko}<br />
insmod / usr / r e a l t i m e / modules / r t a i n e t r p c . ko ThisNode =”127.0.0.1”}<br />
insmod / usr / r e a l t i m e / modules / rtai shm . ko}<br />
insmod / usr / r e a l t i m e / modules / r t a i l e d s . ko}<br />
insmod / usr / r e a l t i m e / modules / r t a i s i g n a l . ko}<br />
insmod / usr / r e a l t i m e / modules / r t a i t a s k l e t s . ko}<br />
modprobe n i p c i m i o }<br />
modprobe comedi }<br />
modprobe kcomedilib }<br />
modprobe c o m e d i fc}<br />
insmod / usr / r e a l t i m e / modules / r t a i c o m e d i . ko }<br />
2. the calibration of input/output signals is taken over by a routine provided with the<br />
Comedi drivers. The corresponding shell comm<strong>and</strong>s are:<br />
comedi \ c o n f i g /dev/ comedi0 n i \ pcimio<br />
comedi \ c a l i b r a t e −−no−c a l i b r a t e −S ni6024e . c a l i b r a t i o n<br />
chmod 666 /dev/comedi {∗}<br />
During this calibration large amplitude step impulses are sent to the motor. In this<br />
part of the procedure, it is essential to safety that the power supply BE OFF.<br />
At the end of the calibration, when the routine stops, the voltage step IS UP (i.e. a <strong>high</strong><br />
amount of voltage is delivered as soon as one turns the power supply on). This problem<br />
is addressed by implementing a (dummy) program 22 that generates any input signal<br />
<strong>and</strong> sends it to the power supply. The corresponding executable is then run for a few<br />
seconds. At the end of every RTAI-Lab generated program, output signals generated by<br />
the program are reset to zero. Consider that this program is named end of load.cos. The<br />
corresponding realtime executable, after compilation, is end of load.exe. The comm<strong>and</strong><br />
lines for a full <strong>and</strong> safe calibration are then:<br />
comedi \ c o n f i g /dev/ comedi0 n i \ pcimio<br />
comedi \ c a l i b r a t e −−no−c a l i b r a t e −S ni6024e . c a l i b r a t i o n<br />
chmod 666 /dev/comedi {∗}<br />
. / e n d of l o a d −f 5<br />
21 Without Super User rights, those comm<strong>and</strong>s are ignored. Employing the sudo comm<strong>and</strong> is sufficient.<br />
22 i.e. A clock, any signal (sine wave or step) <strong>and</strong> a Digital/Analog block.<br />
84