2021-06-07 19:00:29 +02:00
<?xml version="1.0" encoding="utf-8"?>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml:lang = "en" >
< head >
2021-08-11 00:28:02 +02:00
<!-- 2021 - 08 - 11 mer. 00:07 -->
2021-06-07 19:00:29 +02:00
< meta http-equiv = "Content-Type" content = "text/html;charset=utf-8" / >
< title > Nano-Hexapod - Test Bench< / title >
< meta name = "author" content = "Dehaeze Thomas" / >
< meta name = "generator" content = "Org Mode" / >
< link rel = "stylesheet" type = "text/css" href = "https://research.tdehaeze.xyz/css/style.css" / >
< script type = "text/javascript" src = "https://research.tdehaeze.xyz/js/script.js" > < / script >
2021-06-08 22:39:35 +02:00
< script >
MathJax = {
svg: {
scale: 1,
fontCache: "global"
},
tex: {
tags: "ams",
multlineWidth: "%MULTLINEWIDTH",
tagSide: "right",
macros: {bm: ["\\boldsymbol{#1}",1],},
tagIndent: ".8em"
}
};
< / script >
< script id = "MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js">< / script >
2021-06-07 19:00:29 +02:00
< / head >
< body >
< div id = "org-div-home-and-up" >
< a accesskey = "h" href = "../index.html" > UP < / a >
|
< a accesskey = "H" href = "../index.html" > HOME < / a >
2021-08-11 00:28:02 +02:00
< / div > < div id = "content" class = "content" >
2021-06-07 19:00:29 +02:00
< h1 class = "title" > Nano-Hexapod - Test Bench< / h1 >
2021-08-11 00:28:02 +02:00
< div id = "table-of-contents" role = "doc-toc" >
2021-06-07 19:00:29 +02:00
< h2 > Table of Contents< / h2 >
2021-08-11 00:28:02 +02:00
< div id = "text-table-of-contents" role = "doc-toc" >
2021-06-07 19:00:29 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org27bb771" > 1. Encoders fixed to the Struts - Dynamics< / a >
2021-06-08 22:14:48 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org55be926" > 1.1. Identification of the dynamics< / a >
2021-06-08 22:15:02 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org48716a7" > 1.1.1. Load Measurement Data< / a > < / li >
< li > < a href = "#orga5bc612" > 1.1.2. Spectral Analysis - Setup< / a > < / li >
< li > < a href = "#orgd898a53" > 1.1.3. Transfer function from Actuator to Encoder< / a > < / li >
< li > < a href = "#org8391bbe" > 1.1.4. Transfer function from Actuator to Force Sensor< / a > < / li >
< li > < a href = "#org57f5af8" > 1.1.5. Save Identified Plants< / a > < / li >
2021-06-09 18:14:45 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#orgef2f9ca" > 1.2. Comparison with the Simscape Model< / a >
2021-06-09 18:14:45 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org264c1a8" > 1.2.1. Load measured FRF< / a > < / li >
< li > < a href = "#orgbc2eba7" > 1.2.2. Dynamics from Actuator to Force Sensors< / a > < / li >
< li > < a href = "#org093f685" > 1.2.3. Dynamics from Actuator to Encoder< / a > < / li >
< li > < a href = "#org05c24be" > 1.2.4. Effect of a change in bending damping of the joints< / a > < / li >
< li > < a href = "#org03f6dec" > 1.2.5. Effect of a change in damping factor of the APA< / a > < / li >
< li > < a href = "#orgb0aae6c" > 1.2.6. Effect of a change in stiffness damping coef of the APA< / a > < / li >
< li > < a href = "#org3081404" > 1.2.7. Effect of a change in mass damping coef of the APA< / a > < / li >
< li > < a href = "#org5aec8b7" > 1.2.8. Using Flexible model< / a > < / li >
< li > < a href = "#org3336f61" > 1.2.9. Flexible model + encoders fixed to the plates< / a > < / li >
2021-06-09 18:14:45 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org2b90a8a" > 1.3. Integral Force Feedback< / a >
2021-06-09 18:14:45 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org3b1a2c3" > 1.3.1. IFF Control Law and Optimal Gain< / a > < / li >
< li > < a href = "#org35445ff" > 1.3.2. Effect of IFF on the plant - Simulations< / a > < / li >
< li > < a href = "#orga8e3e31" > 1.3.3. Effect of IFF on the plant - Experimental Results< / a >
2021-06-10 17:52:16 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#orgd5f47cb" > 1.3.3.1. Load Data< / a > < / li >
< li > < a href = "#org0dac262" > 1.3.3.2. Spectral Analysis - Setup< / a > < / li >
< li > < a href = "#orgb24b205" > 1.3.3.3. DVF Plant< / a > < / li >
< li > < a href = "#org05fd801" > 1.3.3.4. Experimental Results - Comparison of the un-damped and fully damped system< / a > < / li >
2021-06-10 17:52:16 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org2615373" > 1.3.4. Experimental Results - Damped Plant with Optimal gain< / a >
2021-06-10 17:52:16 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#orgf80ac64" > 1.3.4.1. Load Data< / a > < / li >
< li > < a href = "#org516011f" > 1.3.4.2. Spectral Analysis - Setup< / a > < / li >
< li > < a href = "#orgafba9ad" > 1.3.4.3. DVF Plant< / a > < / li >
2021-06-08 22:15:02 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org6daf853" > 1.3.5. Comparison with the Flexible model< / a > < / li >
< li > < a href = "#orgcd51296" > 1.3.6. Conclusion< / a > < / li >
2021-06-08 22:14:48 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org3a041e1" > 1.4. Modal Analysis< / a >
2021-06-14 17:29:28 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#orgc94b67b" > 1.4.1. Obtained Mode Shapes< / a > < / li >
< li > < a href = "#org8ecee01" > 1.4.2. Nano-Hexapod Compliance - Effect of IFF< / a > < / li >
< li > < a href = "#orga586e56" > 1.4.3. Comparison with the Simscape Model< / a > < / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org7ea9ada" > 1.5. Conclusion< / a > < / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org70a9ea8" > 2. Encoders fixed to the plates - Dynamics< / a >
2021-06-30 22:45:20 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org62d466e" > 2.1. Identification of the dynamics< / a >
2021-06-30 22:45:20 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org0eb1087" > 2.1.1. Data Loading and Spectral Analysis Setup< / a > < / li >
< li > < a href = "#org991f21b" > 2.1.2. Transfer function from Actuator to Encoder< / a > < / li >
< li > < a href = "#orgc6d4396" > 2.1.3. Transfer function from Actuator to Force Sensor< / a > < / li >
< li > < a href = "#orge5a55c9" > 2.1.4. Save Identified Plants< / a > < / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org4e15881" > 2.2. Comparison with the Simscape Model< / a >
2021-06-30 22:45:20 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org453d81e" > 2.2.1. Identification Setup< / a > < / li >
< li > < a href = "#orgf3de112" > 2.2.2. Dynamics from Actuator to Force Sensors< / a > < / li >
< li > < a href = "#orgba463af" > 2.2.3. Dynamics from Actuator to Encoder< / a > < / li >
< li > < a href = "#org2db7f31" > 2.2.4. Flexible Top Plate< / a > < / li >
< li > < a href = "#org083987d" > 2.2.5. Conclusion< / a > < / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#orge309141" > 2.3. Integral Force Feedback< / a >
2021-06-30 22:45:20 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org8dd6a19" > 2.3.1. Effect of IFF on the plant - Simscape Model< / a > < / li >
< li > < a href = "#orgc489575" > 2.3.2. Effect of IFF on the plant - FRF< / a > < / li >
< li > < a href = "#org7839237" > 2.3.3. Comparison of the measured FRF and the Simscape model< / a > < / li >
< li > < a href = "#org20ba5d0" > 2.3.4. Save Damped Plant< / a > < / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#orgebf17b0" > 2.4. Effect of Payload mass - Robust IFF< / a >
< ul >
< li > < a href = "#org16f048f" > 2.4.1. Measured Frequency Response Functions< / a >
< ul >
< li > < a href = "#org9522866" > 2.4.1.1. Compute FRF in open-loop< / a > < / li >
< / ul >
< / li >
< li > < a href = "#org12266b9" > 2.4.2. Transfer function from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\)< / a > < / li >
< li > < a href = "#orgc82608d" > 2.4.3. Transfer function from \(\bm{u}\) to \(\bm{\tau}_m\)< / a > < / li >
< / ul >
< / li >
< li > < a href = "#org3be7275" > 2.5. Comparison with the Simscape model< / a >
< ul >
< li > < a href = "#org802dca8" > 2.5.1. System Identification< / a > < / li >
< li > < a href = "#org9ea98d0" > 2.5.2. Transfer function from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\)< / a > < / li >
< li > < a href = "#orga7ec239" > 2.5.3. Transfer function from \(\bm{u}\) to \(\bm{\tau}_m\)< / a > < / li >
< / ul >
< / li >
< li > < a href = "#orgdf62632" > 2.6. Integral Force Feedback Controller< / a >
< ul >
< li > < a href = "#orgc38f0c5" > 2.6.1. Robust IFF Controller< / a > < / li >
< li > < a href = "#orgd57b870" > 2.6.2. Estimated Damped Plant from the Simscape model< / a > < / li >
< li > < a href = "#org5a28a14" > 2.6.3. Compute the identified FRF with IFF< / a > < / li >
< li > < a href = "#org4428186" > 2.6.4. Comparison of the measured FRF and the Simscape model< / a > < / li >
< li > < a href = "#orga655da4" > 2.6.5. Change of coupling with IFF< / a > < / li >
< / ul >
< / li >
< li > < a href = "#org1635da4" > 2.7. Un-Balanced mass< / a >
< ul >
< li > < a href = "#org40ee3db" > 2.7.1. Introduction< / a > < / li >
< li > < a href = "#org63b837f" > 2.7.2. Compute the identified FRF with IFF< / a > < / li >
< li > < a href = "#orgeb31df7" > 2.7.3. Effect of an unbalanced payload< / a > < / li >
< / ul >
< / li >
< li > < a href = "#org9054d1f" > 2.8. Conclusion< / a > < / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org2b937bc" > 3. Decentralized High Authority Control with Integral Force Feedback< / a >
2021-06-30 22:45:20 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org9a35a39" > 3.1. Reference Tracking - Trajectories< / a >
2021-06-30 22:45:20 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#orgfef5e8a" > 3.1.1. Y-Z Scans< / a > < / li >
< li > < a href = "#orgcfb49fe" > 3.1.2. Tilt Scans< / a > < / li >
< li > < a href = "#orgca342bd" > 3.1.3. “ NASS” reference path< / a > < / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org0d4acf2" > 3.2. First Basic High Authority Controller< / a >
2021-07-02 18:26:05 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org00e6da4" > 3.2.1. HAC Controller< / a > < / li >
< li > < a href = "#orgc70fcda" > 3.2.2. Verification of the Stability using the Simscape model< / a > < / li >
< li > < a href = "#orgc2498b3" > 3.2.3. Experimental Validation< / a > < / li >
< li > < a href = "#org097768b" > 3.2.4. Controller with increased stability margins< / a > < / li >
< / ul >
< / li >
< li > < a href = "#orgda33206" > 3.3. Interaction Analysis and Decoupling< / a >
2021-06-30 22:45:20 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#orgd028ee3" > 3.3.1. Parameters< / a > < / li >
< li > < a href = "#org1134a28" > 3.3.2. No Decoupling (Decentralized)< / a > < / li >
< li > < a href = "#org0a20ca4" > 3.3.3. Static Decoupling< / a > < / li >
< li > < a href = "#orgea56664" > 3.3.4. Decoupling at the Crossover< / a > < / li >
< li > < a href = "#org6ed2b1e" > 3.3.5. SVD Decoupling< / a > < / li >
< li > < a href = "#org3d05e13" > 3.3.6. Dynamic decoupling< / a > < / li >
< li > < a href = "#org961f42e" > 3.3.7. Jacobian Decoupling - Center of Stiffness< / a > < / li >
< li > < a href = "#orgab2ab01" > 3.3.8. Jacobian Decoupling - Center of Mass< / a > < / li >
< li > < a href = "#org3065fbc" > 3.3.9. Decoupling Comparison< / a > < / li >
< li > < a href = "#orgc4c95f1" > 3.3.10. Decoupling Robustness< / a > < / li >
< li > < a href = "#org83b915d" > 3.3.11. Conclusion< / a > < / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#orga4a2f4c" > 3.4. Robust High Authority Controller< / a >
< ul >
< li > < a href = "#org49ac8c0" > 3.4.1. Using Jacobian evaluated at the center of stiffness< / a >
< ul >
< li > < a href = "#org9fa18a6" > 3.4.1.1. Decoupled Plant< / a > < / li >
< li > < a href = "#org0ed8546" > 3.4.1.2. SISO Controller Design< / a > < / li >
< li > < a href = "#orga459b5d" > 3.4.1.3. Obtained Loop Gain< / a > < / li >
< li > < a href = "#orgc3ebc4d" > 3.4.1.4. Verification of the Stability< / a > < / li >
< li > < a href = "#org54c9fd8" > 3.4.1.5. Save for further analysis< / a > < / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org344ae47" > 3.4.2. Using Singular Value Decomposition< / a >
2021-06-30 22:45:20 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org0483140" > 3.4.2.1. Decoupled Plant< / a > < / li >
< li > < a href = "#orgb453991" > 3.4.2.2. Controller Design< / a > < / li >
< li > < a href = "#orgce73c82" > 3.4.2.3. Loop Gain< / a > < / li >
< li > < a href = "#orgdc321d6" > 3.4.2.4. Stability Verification< / a > < / li >
< li > < a href = "#org10c11f1" > 3.4.2.5. Save for further analysis< / a > < / li >
< / ul >
< / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / li >
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org389fd05" > 4. Functions< / a >
< ul >
< li > < a href = "#orgaedf22d" > 4.1. < code > generateXYZTrajectory< / code > < / a >
2021-06-30 22:45:20 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org4592698" > Function description< / a > < / li >
< li > < a href = "#orgc831b1f" > Optional Parameters< / a > < / li >
< li > < a href = "#org04cc6d1" > Initialize Time Vectors< / a > < / li >
< li > < a href = "#org4e2ed71" > XYZ Trajectory< / a > < / li >
< li > < a href = "#org3adc499" > Reference Signal< / a > < / li >
< / ul >
< / li >
< li > < a href = "#org1d16faf" > 4.2. < code > generateYZScanTrajectory< / code > < / a >
2021-06-30 22:45:20 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org8b01e4e" > Function description< / a > < / li >
< li > < a href = "#orgf2a9da4" > Optional Parameters< / a > < / li >
< li > < a href = "#org4fa7fa6" > Initialize Time Vectors< / a > < / li >
< li > < a href = "#org2f375c2" > Y and Z vectors< / a > < / li >
< li > < a href = "#org932f1e9" > Reference Signal< / a > < / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org1102bd3" > 4.3. < code > generateSpiralAngleTrajectory< / code > < / a >
2021-06-30 22:45:20 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#orgacd87d8" > Function description< / a > < / li >
< li > < a href = "#org98d3529" > Optional Parameters< / a > < / li >
< li > < a href = "#org81e2c56" > Initialize Time Vectors< / a > < / li >
< li > < a href = "#org5135672" > Rx and Ry vectors< / a > < / li >
< li > < a href = "#org9fc9808" > Reference Signal< / a > < / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org7e41bc2" > 4.4. < code > getTransformationMatrixAcc< / code > < / a >
2021-06-30 22:45:20 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#org4e45815" > Function description< / a > < / li >
< li > < a href = "#orgb00c58f" > Transformation matrix from motion of the solid body to accelerometer measurements< / a > < / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / li >
2021-08-11 00:28:02 +02:00
< li > < a href = "#orgce997c7" > 4.5. < code > getJacobianNanoHexapod< / code > < / a >
2021-06-30 22:45:20 +02:00
< ul >
2021-08-11 00:28:02 +02:00
< li > < a href = "#orgbcc9780" > Function description< / a > < / li >
< li > < a href = "#orgb865195" > Transformation matrix from motion of the solid body to accelerometer measurements< / a > < / li >
2021-06-14 17:29:28 +02:00
< / ul >
< / li >
2021-06-10 17:52:16 +02:00
< / ul >
< / li >
2021-06-07 19:00:29 +02:00
< / ul >
< / div >
< / div >
< hr >
< p > This report is also available as a < a href = "./test-bench-nano-hexapod.pdf" > pdf< / a > .< / p >
< hr >
2021-06-09 18:14:45 +02:00
< p >
2021-08-11 00:28:02 +02:00
This document is dedicated to the experimental study of the nano-hexapod shown in Figure < a href = "#org9849d6e" > 1< / a > .
2021-06-09 18:14:45 +02:00
< / p >
2021-06-14 18:08:46 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org9849d6e" class = "figure" >
2021-06-14 18:08:46 +02:00
< p > < img src = "figs/IMG_20210608_152917.jpg" alt = "IMG_20210608_152917.jpg" / >
< / p >
< p > < span class = "figure-number" > Figure 1: < / span > Nano-Hexapod< / p >
< / div >
2021-08-11 00:28:02 +02:00
< div class = "note" id = "orgbb5d6c3" >
2021-06-07 19:00:29 +02:00
< p >
2021-08-11 00:28:02 +02:00
Here are the documentation of the equipment used for this test bench (lots of them are shwon in Figure < a href = "#orgd4b0782" > 2< / a > ):
2021-06-07 19:00:29 +02:00
< / p >
< ul class = "org-ul" >
< li > Voltage Amplifier: PiezoDrive < a href = "doc/PD200-V7-R1.pdf" > PD200< / a > < / li >
< li > Amplified Piezoelectric Actuator: Cedrat < a href = "doc/APA300ML.pdf" > APA300ML< / a > < / li >
< li > DAC/ADC: Speedgoat < a href = "doc/IO131-OEM-Datasheet.pdf" > IO313< / a > < / li >
< li > Encoder: Renishaw < a href = "doc/L-9517-9678-05-A_Data_sheet_VIONiC_series_en.pdf" > Vionic< / a > and used < a href = "doc/L-9517-9862-01-C_Data_sheet_RKLC_EN.pdf" > Ruler< / a > < / li >
< li > Interferometers: Attocube< / li >
< / ul >
< / div >
2021-06-08 22:14:48 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orgd4b0782" class = "figure" >
2021-06-08 22:14:48 +02:00
< p > < img src = "figs/IMG_20210608_154722.jpg" alt = "IMG_20210608_154722.jpg" / >
< / p >
< p > < span class = "figure-number" > Figure 2: < / span > Nano-Hexapod and the control electronics< / p >
< / div >
2021-06-14 18:08:46 +02:00
< p >
2021-08-11 00:28:02 +02:00
In Figure < a href = "#orgb1a7b80" > 3< / a > is shown a block diagram of the experimental setup.
When possible, the notations are consistent with this diagram and summarized in Table < a href = "#orgd8cffcb" > 1< / a > .
2021-06-14 18:08:46 +02:00
< / p >
2021-06-09 18:14:45 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orgb1a7b80" class = "figure" >
2021-06-09 18:14:45 +02:00
< p > < img src = "figs/nano_hexapod_signals.png" alt = "nano_hexapod_signals.png" / >
< / p >
< p > < span class = "figure-number" > Figure 3: < / span > Block diagram of the system with named signals< / p >
< / div >
2021-08-11 00:28:02 +02:00
< table id = "orgd8cffcb" border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
2021-06-09 18:14:45 +02:00
< caption class = "t-above" > < span class = "table-number" > Table 1:< / span > List of signals< / caption >
< colgroup >
< col class = "org-left" / >
< col class = "org-left" / >
< col class = "org-left" / >
< col class = "org-left" / >
< col class = "org-left" / >
< / colgroup >
< thead >
< tr >
< th scope = "col" class = "org-left" >   < / th >
< th scope = "col" class = "org-left" > < b > Unit< / b > < / th >
< th scope = "col" class = "org-left" > < b > Matlab< / b > < / th >
< th scope = "col" class = "org-left" > < b > Vector< / b > < / th >
< th scope = "col" class = "org-left" > < b > Elements< / b > < / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "org-left" > Control Input (wanted DAC voltage)< / td >
< td class = "org-left" > < code > [V]< / code > < / td >
< td class = "org-left" > < code > u< / code > < / td >
< td class = "org-left" > \(\bm{u}\)< / td >
< td class = "org-left" > \(u_i\)< / td >
< / tr >
< tr >
< td class = "org-left" > DAC Output Voltage< / td >
< td class = "org-left" > < code > [V]< / code > < / td >
< td class = "org-left" > < code > u< / code > < / td >
< td class = "org-left" > \(\tilde{\bm{u}}\)< / td >
< td class = "org-left" > \(\tilde{u}_i\)< / td >
< / tr >
< tr >
< td class = "org-left" > PD200 Output Voltage< / td >
< td class = "org-left" > < code > [V]< / code > < / td >
< td class = "org-left" > < code > ua< / code > < / td >
< td class = "org-left" > \(\bm{u}_a\)< / td >
< td class = "org-left" > \(u_{a,i}\)< / td >
< / tr >
< tr >
< td class = "org-left" > Actuator applied force< / td >
< td class = "org-left" > < code > [N]< / code > < / td >
< td class = "org-left" > < code > tau< / code > < / td >
< td class = "org-left" > \(\bm{\tau}\)< / td >
< td class = "org-left" > \(\tau_i\)< / td >
< / tr >
< / tbody >
< tbody >
< tr >
< td class = "org-left" > Strut motion< / td >
< td class = "org-left" > < code > [m]< / code > < / td >
< td class = "org-left" > < code > dL< / code > < / td >
< td class = "org-left" > \(d\bm{\mathcal{L}}\)< / td >
< td class = "org-left" > \(d\mathcal{L}_i\)< / td >
< / tr >
< tr >
< td class = "org-left" > Encoder measured displacement< / td >
< td class = "org-left" > < code > [m]< / code > < / td >
< td class = "org-left" > < code > dLm< / code > < / td >
< td class = "org-left" > \(d\bm{\mathcal{L}}_m\)< / td >
< td class = "org-left" > \(d\mathcal{L}_{m,i}\)< / td >
< / tr >
< / tbody >
< tbody >
< tr >
< td class = "org-left" > Force Sensor strain< / td >
< td class = "org-left" > < code > [m]< / code > < / td >
< td class = "org-left" > < code > epsilon< / code > < / td >
< td class = "org-left" > \(\bm{\epsilon}\)< / td >
< td class = "org-left" > \(\epsilon_i\)< / td >
< / tr >
< tr >
< td class = "org-left" > Force Sensor Generated Voltage< / td >
< td class = "org-left" > < code > [V]< / code > < / td >
< td class = "org-left" > < code > taum< / code > < / td >
< td class = "org-left" > \(\tilde{\bm{\tau}}_m\)< / td >
< td class = "org-left" > \(\tilde{\tau}_{m,i}\)< / td >
< / tr >
< tr >
< td class = "org-left" > Measured Generated Voltage< / td >
< td class = "org-left" > < code > [V]< / code > < / td >
< td class = "org-left" > < code > taum< / code > < / td >
< td class = "org-left" > \(\bm{\tau}_m\)< / td >
< td class = "org-left" > \(\tau_{m,i}\)< / td >
< / tr >
< / tbody >
< tbody >
< tr >
< td class = "org-left" > Motion of the top platform< / td >
< td class = "org-left" > < code > [m,rad]< / code > < / td >
< td class = "org-left" > < code > dX< / code > < / td >
< td class = "org-left" > \(d\bm{\mathcal{X}}\)< / td >
< td class = "org-left" > \(d\mathcal{X}_i\)< / td >
< / tr >
< tr >
< td class = "org-left" > Metrology measured displacement< / td >
< td class = "org-left" > < code > [m,rad]< / code > < / td >
< td class = "org-left" > < code > dXm< / code > < / td >
< td class = "org-left" > \(d\bm{\mathcal{X}}_m\)< / td >
< td class = "org-left" > \(d\mathcal{X}_{m,i}\)< / td >
< / tr >
< / tbody >
< / table >
2021-06-14 18:08:46 +02:00
< p >
This document is divided in the following sections:
< / p >
< ul class = "org-ul" >
2021-08-11 00:28:02 +02:00
< li > Section < a href = "#org96cb99c" > 1< / a > : the dynamics of the nano-hexapod when the encoders are fixed to the struts is studied.< / li >
< li > Section < a href = "#org4e18927" > 2< / a > : the same is done when the encoders are fixed to the plates.< / li >
< li > Section < a href = "#org68c77df" > 3< / a > : a decentralized HAC-LAC strategy is studied and implemented.< / li >
2021-06-14 18:08:46 +02:00
< / ul >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org27bb771" class = "outline-2" >
< h2 id = "org27bb771" > < span class = "section-number-2" > 1.< / span > Encoders fixed to the Struts - Dynamics< / h2 >
2021-06-08 22:15:02 +02:00
< div class = "outline-text-2" id = "text-1" >
2021-06-14 18:08:46 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "org96cb99c" > < / a >
2021-06-14 18:08:46 +02:00
< / p >
2021-06-08 22:39:35 +02:00
< p >
In this section, the encoders are fixed to the struts.
< / p >
2021-06-14 18:08:46 +02:00
< p >
It is divided in the following sections:
< / p >
< ul class = "org-ul" >
2021-08-11 00:28:02 +02:00
< li > Section < a href = "#orgb137578" > 1.1< / a > : the transfer function matrix from the actuators to the force sensors and to the encoders is experimentally identified.< / li >
< li > Section < a href = "#orge21477b" > 1.2< / a > : the obtained FRF matrix is compared with the dynamics of the simscape model< / li >
< li > Section < a href = "#org033f80c" > 1.3< / a > : decentralized Integral Force Feedback (IFF) is applied and its performances are evaluated.< / li >
< li > Section < a href = "#org522a387" > 1.4< / a > : a modal analysis of the nano-hexapod is performed< / li >
2021-06-14 18:08:46 +02:00
< / ul >
2021-06-08 22:39:35 +02:00
< / div >
2021-06-08 22:14:48 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org55be926" class = "outline-3" >
< h3 id = "org55be926" > < span class = "section-number-3" > 1.1.< / span > Identification of the dynamics< / h3 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-3" id = "text-1-1" >
2021-06-14 18:08:46 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "orgb137578" > < / a >
2021-06-14 18:08:46 +02:00
< / p >
2021-06-09 18:14:45 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org48716a7" class = "outline-4" >
< h4 id = "org48716a7" > < span class = "section-number-4" > 1.1.1.< / span > Load Measurement Data< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-1-1" >
2021-06-08 22:14:48 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Load Identification Data< / span >
2021-06-09 18:14:45 +02:00
meas_data_lf = {};
2021-06-08 22:14:48 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
meas_data_lf(< span class = "org-matlab-math" > i< / span > ) = {load(sprintf(< span class = "org-string" > 'mat/frf_data_exc_strut_%i_noise_lf.mat'< / span > , < span class = "org-matlab-math" > i< / span > ), < span class = "org-string" > 't'< / span > , < span class = "org-string" > 'Va'< / span > , < span class = "org-string" > 'Vs'< / span > , < span class = "org-string" > 'de'< / span > )};
meas_data_hf(< span class = "org-matlab-math" > i< / span > ) = {load(sprintf(< span class = "org-string" > 'mat/frf_data_exc_strut_%i_noise_hf.mat'< / span > , < span class = "org-matlab-math" > i< / span > ), < span class = "org-string" > 't'< / span > , < span class = "org-string" > 'Va'< / span > , < span class = "org-string" > 'Vs'< / span > , < span class = "org-string" > 'de'< / span > )};
2021-06-08 22:14:48 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orga5bc612" class = "outline-4" >
< h4 id = "orga5bc612" > < span class = "section-number-4" > 1.1.2.< / span > Spectral Analysis - Setup< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-1-2" >
2021-06-08 22:14:48 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Setup useful variables< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Sampling Time [s]< / span >
Ts = (meas_data_lf{1}.t(end) < span class = "org-builtin" > -< / span > (meas_data_lf{1}.t(1)))< span class = "org-builtin" > /< / span > (length(meas_data_lf{1}.t)< span class = "org-builtin" > -< / span > 1);
2021-06-08 22:14:48 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Sampling Frequency [Hz]< / span >
Fs = 1< span class = "org-builtin" > /< / span > Ts;
2021-06-08 22:14:48 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Hannning Windows< / span >
win = hanning(ceil(1< span class = "org-builtin" > *< / span > Fs));
2021-06-08 22:14:48 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > And we get the frequency vector< / span >
[< span class = "org-builtin" > ~< / span > , f] = tfestimate(meas_data_lf{1}.Va, meas_data_lf{1}.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
2021-06-08 22:14:48 +02:00
2021-08-11 00:28:02 +02:00
i_lf = f < span class = "org-builtin" > < < / span > 250; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Points for low frequency excitation< / span >
i_hf = f < span class = "org-builtin" > > < / span > 250; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Points for high frequency excitation< / span >
2021-06-08 22:14:48 +02:00
< / pre >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgd898a53" class = "outline-4" >
< h4 id = "orgd898a53" > < span class = "section-number-4" > 1.1.3.< / span > Transfer function from Actuator to Encoder< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-1-3" >
2021-06-08 22:14:48 +02:00
< p >
2021-08-11 00:28:02 +02:00
First, let’ s compute the coherence from the excitation voltage and the displacement as measured by the encoders (Figure < a href = "#org2512188" > 4< / a > ).
2021-06-08 22:14:48 +02:00
< / p >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Coherence< / span >
2021-06-30 22:45:20 +02:00
coh_dvf = zeros(length(f), 6, 6);
2021-06-08 22:14:48 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
coh_dvf_lf = mscohere(meas_data_lf{< span class = "org-matlab-math" > i< / span > }.Va, meas_data_lf{< span class = "org-matlab-math" > i< / span > }.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
coh_dvf_hf = mscohere(meas_data_hf{< span class = "org-matlab-math" > i< / span > }.Va, meas_data_hf{< span class = "org-matlab-math" > i< / span > }.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
coh_dvf(< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-matlab-math" > i< / span > ) = [coh_dvf_lf(i_lf, < span class = "org-builtin" > :< / span > ); coh_dvf_hf(i_hf, < span class = "org-builtin" > :< / span > )];
2021-06-08 22:14:48 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org2512188" class = "figure" >
2021-06-08 22:14:48 +02:00
< p > < img src = "figs/enc_struts_dvf_coh.png" alt = "enc_struts_dvf_coh.png" / >
< / p >
2021-06-09 18:14:45 +02:00
< p > < span class = "figure-number" > Figure 4: < / span > Obtained coherence for the DVF plant< / p >
2021-06-08 22:14:48 +02:00
< / div >
< p >
2021-08-11 00:28:02 +02:00
Then the 6x6 transfer function matrix is estimated (Figure < a href = "#org8059051" > 5< / a > ).
2021-06-08 22:14:48 +02:00
< / p >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% DVF Plant (transfer function from u to dLm)< / span >
2021-06-30 22:45:20 +02:00
G_dvf = zeros(length(f), 6, 6);
2021-06-08 22:14:48 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
G_dvf_lf = tfestimate(meas_data_lf{< span class = "org-matlab-math" > i< / span > }.Va, meas_data_lf{< span class = "org-matlab-math" > i< / span > }.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
G_dvf_hf = tfestimate(meas_data_hf{< span class = "org-matlab-math" > i< / span > }.Va, meas_data_hf{< span class = "org-matlab-math" > i< / span > }.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
G_dvf(< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-matlab-math" > i< / span > ) = [G_dvf_lf(i_lf, < span class = "org-builtin" > :< / span > ); G_dvf_hf(i_hf, < span class = "org-builtin" > :< / span > )];
2021-06-08 22:14:48 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org8059051" class = "figure" >
2021-06-08 22:14:48 +02:00
< p > < img src = "figs/enc_struts_dvf_frf.png" alt = "enc_struts_dvf_frf.png" / >
< / p >
2021-06-09 18:14:45 +02:00
< p > < span class = "figure-number" > Figure 5: < / span > Measured FRF for the DVF plant< / p >
2021-06-08 22:14:48 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org8391bbe" class = "outline-4" >
< h4 id = "org8391bbe" > < span class = "section-number-4" > 1.1.4.< / span > Transfer function from Actuator to Force Sensor< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-1-4" >
2021-06-08 22:14:48 +02:00
< p >
2021-08-11 00:28:02 +02:00
First, let’ s compute the coherence from the excitation voltage and the displacement as measured by the encoders (Figure < a href = "#org2ac5b2c" > 6< / a > ).
2021-06-08 22:14:48 +02:00
< / p >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Coherence for the IFF plant< / span >
2021-06-30 22:45:20 +02:00
coh_iff = zeros(length(f), 6, 6);
2021-06-08 22:14:48 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
coh_iff_lf = mscohere(meas_data_lf{< span class = "org-matlab-math" > i< / span > }.Va, meas_data_lf{< span class = "org-matlab-math" > i< / span > }.Vs, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
coh_iff_hf = mscohere(meas_data_hf{< span class = "org-matlab-math" > i< / span > }.Va, meas_data_hf{< span class = "org-matlab-math" > i< / span > }.Vs, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
coh_iff(< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-matlab-math" > i< / span > ) = [coh_iff_lf(i_lf, < span class = "org-builtin" > :< / span > ); coh_iff_hf(i_hf, < span class = "org-builtin" > :< / span > )];
2021-06-08 22:14:48 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org2ac5b2c" class = "figure" >
2021-06-08 22:14:48 +02:00
< p > < img src = "figs/enc_struts_iff_coh.png" alt = "enc_struts_iff_coh.png" / >
< / p >
2021-06-09 18:14:45 +02:00
< p > < span class = "figure-number" > Figure 6: < / span > Obtained coherence for the IFF plant< / p >
2021-06-08 22:14:48 +02:00
< / div >
< p >
2021-08-11 00:28:02 +02:00
Then the 6x6 transfer function matrix is estimated (Figure < a href = "#org458b25c" > 7< / a > ).
2021-06-08 22:14:48 +02:00
< / p >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% IFF Plant< / span >
2021-06-30 22:45:20 +02:00
G_iff = zeros(length(f), 6, 6);
2021-06-08 22:14:48 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
G_iff_lf = tfestimate(meas_data_lf{< span class = "org-matlab-math" > i< / span > }.Va, meas_data_lf{< span class = "org-matlab-math" > i< / span > }.Vs, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
G_iff_hf = tfestimate(meas_data_hf{< span class = "org-matlab-math" > i< / span > }.Va, meas_data_hf{< span class = "org-matlab-math" > i< / span > }.Vs, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
G_iff(< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-matlab-math" > i< / span > ) = [G_iff_lf(i_lf, < span class = "org-builtin" > :< / span > ); G_iff_hf(i_hf, < span class = "org-builtin" > :< / span > )];
2021-06-08 22:14:48 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org458b25c" class = "figure" >
2021-06-08 22:14:48 +02:00
< p > < img src = "figs/enc_struts_iff_frf.png" alt = "enc_struts_iff_frf.png" / >
< / p >
2021-06-09 18:14:45 +02:00
< p > < span class = "figure-number" > Figure 7: < / span > Measured FRF for the IFF plant< / p >
< / div >
2021-06-08 22:14:48 +02:00
< / div >
< / div >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org57f5af8" class = "outline-4" >
< h4 id = "org57f5af8" > < span class = "section-number-4" > 1.1.5.< / span > Save Identified Plants< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-1-5" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > save(< span class = "org-string" > 'matlab/mat/identified_plants_enc_struts.mat'< / span > , < span class = "org-string" > 'f'< / span > , < span class = "org-string" > 'Ts'< / span > , < span class = "org-string" > 'G_iff'< / span > , < span class = "org-string" > 'G_dvf'< / span > )
< / pre >
< / div >
< / div >
< / div >
2021-06-08 22:14:48 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgef2f9ca" class = "outline-3" >
< h3 id = "orgef2f9ca" > < span class = "section-number-3" > 1.2.< / span > Comparison with the Simscape Model< / h3 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-3" id = "text-1-2" >
2021-06-08 22:39:35 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "orge21477b" > < / a >
2021-06-14 18:08:46 +02:00
< / p >
< p >
2021-06-09 18:14:45 +02:00
In this section, the measured dynamics is compared with the dynamics estimated from the Simscape model.
2021-06-08 22:39:35 +02:00
< / p >
2021-06-09 18:14:45 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org264c1a8" class = "outline-4" >
< h4 id = "org264c1a8" > < span class = "section-number-4" > 1.2.1.< / span > Load measured FRF< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-2-1" >
2021-06-09 18:14:45 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Load data< / span >
2021-06-30 22:45:20 +02:00
load(< span class = "org-string" > 'identified_plants_enc_struts.mat'< / span > , < span class = "org-string" > 'f'< / span > , < span class = "org-string" > 'Ts'< / span > , < span class = "org-string" > 'G_iff'< / span > , < span class = "org-string" > 'G_dvf'< / span > )
< / pre >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgbc2eba7" class = "outline-4" >
< h4 id = "orgbc2eba7" > < span class = "section-number-4" > 1.2.2.< / span > Dynamics from Actuator to Force Sensors< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-2-2" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialize Nano-Hexapod< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'struts'< / span > , < span class = "org-comment" > ...< / span >
2021-06-09 18:14:45 +02:00
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > '2dof'< / span > );
< / pre >
< / div >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the IFF Plant (transfer function from u to taum)< / span >
2021-06-09 18:14:45 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/dum'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Force Sensors< / span >
2021-06-09 18:14:45 +02:00
2021-08-11 00:28:02 +02:00
Giff = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-09 18:14:45 +02:00
< / pre >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org099ea6c" class = "figure" >
2021-06-09 18:14:45 +02:00
< p > < img src = "figs/enc_struts_iff_comp_simscape.png" alt = "enc_struts_iff_comp_simscape.png" / >
2021-06-08 22:39:35 +02:00
< / p >
2021-06-09 18:14:45 +02:00
< p > < span class = "figure-number" > Figure 8: < / span > Diagonal elements of the IFF Plant< / p >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org1f1dbe9" class = "figure" >
2021-06-09 18:14:45 +02:00
< p > < img src = "figs/enc_struts_iff_comp_offdiag_simscape.png" alt = "enc_struts_iff_comp_offdiag_simscape.png" / >
< / p >
< p > < span class = "figure-number" > Figure 9: < / span > Off diagonal elements of the IFF Plant< / p >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org093f685" class = "outline-4" >
< h4 id = "org093f685" > < span class = "section-number-4" > 1.2.3.< / span > Dynamics from Actuator to Encoder< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-2-3" >
2021-06-09 18:14:45 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialization of the Nano-Hexapod< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'struts'< / span > , < span class = "org-comment" > ...< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > 'flexible'< / span > );
2021-06-09 18:14:45 +02:00
< / pre >
< / div >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the DVF Plant (transfer function from u to dLm)< / span >
2021-06-09 18:14:45 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/D'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Encoders< / span >
2021-06-09 18:14:45 +02:00
2021-08-11 00:28:02 +02:00
Gdvf = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-09 18:14:45 +02:00
< / pre >
< / div >
2021-06-08 22:39:35 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org82a5210" class = "figure" >
2021-06-09 18:14:45 +02:00
< p > < img src = "figs/enc_struts_dvf_comp_simscape.png" alt = "enc_struts_dvf_comp_simscape.png" / >
2021-06-08 22:39:35 +02:00
< / p >
2021-06-09 18:14:45 +02:00
< p > < span class = "figure-number" > Figure 10: < / span > Diagonal elements of the DVF Plant< / p >
2021-06-08 22:39:35 +02:00
< / div >
2021-06-09 18:14:45 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org6a7ded5" class = "figure" >
2021-06-09 18:14:45 +02:00
< p > < img src = "figs/enc_struts_dvf_comp_offdiag_simscape.png" alt = "enc_struts_dvf_comp_offdiag_simscape.png" / >
2021-06-08 22:39:35 +02:00
< / p >
2021-06-09 18:14:45 +02:00
< p > < span class = "figure-number" > Figure 11: < / span > Off diagonal elements of the DVF Plant< / p >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org05c24be" class = "outline-4" >
< h4 id = "org05c24be" > < span class = "section-number-4" > 1.2.4.< / span > Effect of a change in bending damping of the joints< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-2-4" >
2021-06-08 22:14:48 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Tested bending dampings [Nm/(rad/s)]< / span >
cRs = [1e< span class = "org-builtin" > -< / span > 3, 5e< span class = "org-builtin" > -< / span > 3, 1e< span class = "org-builtin" > -< / span > 2, 5e< span class = "org-builtin" > -< / span > 2, 1e< span class = "org-builtin" > -< / span > 1];
2021-06-08 22:14:48 +02:00
< / pre >
< / div >
2021-06-09 18:14:45 +02:00
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the DVF Plant (transfer function from u to dLm)< / span >
2021-06-30 22:45:20 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/D'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Encoders< / span >
2021-06-30 22:45:20 +02:00
< / pre >
2021-06-08 22:15:02 +02:00
< / div >
2021-06-08 22:39:35 +02:00
< p >
2021-06-30 22:45:20 +02:00
Then the identification is performed for all the values of the bending damping.
2021-06-08 22:39:35 +02:00
< / p >
2021-06-08 22:14:48 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Idenfity the transfer function from actuator to encoder for all bending dampins< / span >
2021-06-30 22:45:20 +02:00
Gs = {zeros(length(cRs), 1)};
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:length(cRs)< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'struts'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > 'flexible'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_bot_cRx'< / span > , cRs(< span class = "org-matlab-math" > i< / span > ), < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_bot_cRy'< / span > , cRs(< span class = "org-matlab-math" > i< / span > ), < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_cRx'< / span > , cRs(< span class = "org-matlab-math" > i< / span > ), < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_cRy'< / span > , cRs(< span class = "org-matlab-math" > i< / span > ));
G = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-30 22:45:20 +02:00
G.InputName = {< span class = "org-string" > 'Va1'< / span > , < span class = "org-string" > 'Va2'< / span > , < span class = "org-string" > 'Va3'< / span > , < span class = "org-string" > 'Va4'< / span > , < span class = "org-string" > 'Va5'< / span > , < span class = "org-string" > 'Va6'< / span > };
G.OutputName = {< span class = "org-string" > 'dL1'< / span > , < span class = "org-string" > 'dL2'< / span > , < span class = "org-string" > 'dL3'< / span > , < span class = "org-string" > 'dL4'< / span > , < span class = "org-string" > 'dL5'< / span > , < span class = "org-string" > 'dL6'< / span > };
2021-08-11 00:28:02 +02:00
Gs(< span class = "org-matlab-math" > i< / span > ) = {G};
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
2021-06-08 22:14:48 +02:00
< / pre >
< / div >
2021-06-08 22:39:35 +02:00
2021-06-30 22:45:20 +02:00
< ul class = "org-ul" >
< li > Could be nice< / li >
< li > Actual damping is very small< / li >
< / ul >
2021-06-08 22:15:02 +02:00
< / div >
< / div >
2021-06-08 22:14:48 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org03f6dec" class = "outline-4" >
< h4 id = "org03f6dec" > < span class = "section-number-4" > 1.2.5.< / span > Effect of a change in damping factor of the APA< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-2-5" >
2021-06-09 18:14:45 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Tested bending dampings [Nm/(rad/s)]< / span >
xis = [1e< span class = "org-builtin" > -< / span > 3, 5e< span class = "org-builtin" > -< / span > 3, 1e< span class = "org-builtin" > -< / span > 2, 5e< span class = "org-builtin" > -< / span > 2, 1e< span class = "org-builtin" > -< / span > 1];
2021-06-09 18:14:45 +02:00
< / pre >
< / div >
2021-06-08 22:39:35 +02:00
2021-06-08 22:15:02 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the DVF Plant (transfer function from u to dLm)< / span >
2021-06-30 22:45:20 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/D'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Encoders< / span >
2021-06-08 22:15:02 +02:00
< / pre >
< / div >
2021-06-08 22:39:35 +02:00
2021-06-09 18:14:45 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Idenfity the transfer function from actuator to encoder for all bending dampins< / span >
2021-06-30 22:45:20 +02:00
Gs = {zeros(length(xis), 1)};
2021-06-09 18:14:45 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:length(xis)< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'struts'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > 'flexible'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_xi'< / span > , xis(< span class = "org-matlab-math" > i< / span > ));
2021-06-08 22:39:35 +02:00
2021-08-11 00:28:02 +02:00
G = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-30 22:45:20 +02:00
G.InputName = {< span class = "org-string" > 'Va1'< / span > , < span class = "org-string" > 'Va2'< / span > , < span class = "org-string" > 'Va3'< / span > , < span class = "org-string" > 'Va4'< / span > , < span class = "org-string" > 'Va5'< / span > , < span class = "org-string" > 'Va6'< / span > };
G.OutputName = {< span class = "org-string" > 'dL1'< / span > , < span class = "org-string" > 'dL2'< / span > , < span class = "org-string" > 'dL3'< / span > , < span class = "org-string" > 'dL4'< / span > , < span class = "org-string" > 'dL5'< / span > , < span class = "org-string" > 'dL6'< / span > };
2021-06-09 18:14:45 +02:00
2021-08-11 00:28:02 +02:00
Gs(< span class = "org-matlab-math" > i< / span > ) = {G};
2021-06-09 18:14:45 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org0b5be99" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/bode_Va_dL_effect_xi_damp.png" alt = "bode_Va_dL_effect_xi_damp.png" / >
2021-06-08 22:39:35 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< p > < span class = "figure-number" > Figure 12: < / span > Effect of the APA damping factor \(\xi\) on the dynamics from \(u\) to \(d\mathcal{L}\)< / p >
2021-06-08 22:15:02 +02:00
< / div >
2021-06-09 18:14:45 +02:00
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org43d4e17" >
2021-06-10 17:52:16 +02:00
< p >
2021-06-30 22:45:20 +02:00
Damping factor \(\xi\) has a large impact on the damping of the “ spurious resonances” at 200Hz and 300Hz.
2021-06-10 17:52:16 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-06-10 17:52:16 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div class = "question" id = "org134d898" >
2021-06-30 22:45:20 +02:00
< p >
Why is the damping factor does not change the damping of the first peak?
< / p >
2021-06-10 17:52:16 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgb0aae6c" class = "outline-4" >
< h4 id = "orgb0aae6c" > < span class = "section-number-4" > 1.2.6.< / span > Effect of a change in stiffness damping coef of the APA< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-2-6" >
2021-06-10 17:52:16 +02:00
< div class = "org-src-container" >
2021-06-30 22:45:20 +02:00
< pre class = "src src-matlab" > m_coef = 1e1;
2021-06-10 17:52:16 +02:00
< / pre >
< / div >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Tested bending dampings [Nm/(rad/s)]< / span >
k_coefs = [1e< span class = "org-builtin" > -< / span > 6, 5e< span class = "org-builtin" > -< / span > 6, 1e< span class = "org-builtin" > -< / span > 5, 5e< span class = "org-builtin" > -< / span > 5, 1e< span class = "org-builtin" > -< / span > 4];
2021-06-30 22:45:20 +02:00
< / pre >
2021-06-10 17:52:16 +02:00
< / div >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the DVF Plant (transfer function from u to dLm)< / span >
2021-06-30 22:45:20 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/D'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Encoders< / span >
2021-06-30 22:45:20 +02:00
< / pre >
2021-06-10 17:52:16 +02:00
< / div >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Idenfity the transfer function from actuator to encoder for all bending dampins< / span >
2021-06-30 22:45:20 +02:00
Gs = {zeros(length(k_coefs), 1)};
2021-08-11 00:28:02 +02:00
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'struts'< / span > , < span class = "org-comment" > ...< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > 'flexible'< / span > );
2021-06-10 17:52:16 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:length(k_coefs)< / span >
k_coef = k_coefs(< span class = "org-matlab-math" > i< / span > );
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
G = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-30 22:45:20 +02:00
G.InputName = {< span class = "org-string" > 'Va1'< / span > , < span class = "org-string" > 'Va2'< / span > , < span class = "org-string" > 'Va3'< / span > , < span class = "org-string" > 'Va4'< / span > , < span class = "org-string" > 'Va5'< / span > , < span class = "org-string" > 'Va6'< / span > };
G.OutputName = {< span class = "org-string" > 'dL1'< / span > , < span class = "org-string" > 'dL2'< / span > , < span class = "org-string" > 'dL3'< / span > , < span class = "org-string" > 'dL4'< / span > , < span class = "org-string" > 'dL5'< / span > , < span class = "org-string" > 'dL6'< / span > };
2021-08-11 00:28:02 +02:00
Gs(< span class = "org-matlab-math" > i< / span > ) = {G};
2021-06-10 17:52:16 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "orgcf917f8" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/bode_Va_dL_effect_k_coef.png" alt = "bode_Va_dL_effect_k_coef.png" / >
2021-06-10 17:52:16 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< p > < span class = "figure-number" > Figure 13: < / span > Effect of a change of the damping “ stiffness coeficient” on the transfer function from \(u\) to \(d\mathcal{L}\)< / p >
< / div >
< / div >
2021-06-10 17:52:16 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org3081404" class = "outline-4" >
< h4 id = "org3081404" > < span class = "section-number-4" > 1.2.7.< / span > Effect of a change in mass damping coef of the APA< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-2-7" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > k_coef = 1e< span class = "org-builtin" > -< / span > 6;
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-06-10 17:52:16 +02:00
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Tested bending dampings [Nm/(rad/s)]< / span >
2021-06-30 22:45:20 +02:00
m_coefs = [1e1, 5e1, 1e2, 5e2, 1e3];
< / pre >
2021-06-10 17:52:16 +02:00
< / div >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the DVF Plant (transfer function from u to dLm)< / span >
2021-06-30 22:45:20 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/D'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Encoders< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-06-10 17:52:16 +02:00
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Idenfity the transfer function from actuator to encoder for all bending dampins< / span >
2021-06-30 22:45:20 +02:00
Gs = {zeros(length(m_coefs), 1)};
2021-08-11 00:28:02 +02:00
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'struts'< / span > , < span class = "org-comment" > ...< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > 'flexible'< / span > );
2021-06-10 17:52:16 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:length(m_coefs)< / span >
m_coef = m_coefs(< span class = "org-matlab-math" > i< / span > );
2021-06-10 17:52:16 +02:00
2021-08-11 00:28:02 +02:00
G = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-30 22:45:20 +02:00
G.InputName = {< span class = "org-string" > 'Va1'< / span > , < span class = "org-string" > 'Va2'< / span > , < span class = "org-string" > 'Va3'< / span > , < span class = "org-string" > 'Va4'< / span > , < span class = "org-string" > 'Va5'< / span > , < span class = "org-string" > 'Va6'< / span > };
G.OutputName = {< span class = "org-string" > 'dL1'< / span > , < span class = "org-string" > 'dL2'< / span > , < span class = "org-string" > 'dL3'< / span > , < span class = "org-string" > 'dL4'< / span > , < span class = "org-string" > 'dL5'< / span > , < span class = "org-string" > 'dL6'< / span > };
2021-06-10 17:52:16 +02:00
2021-08-11 00:28:02 +02:00
Gs(< span class = "org-matlab-math" > i< / span > ) = {G};
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
2021-06-14 18:08:46 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "orgfbc9bbe" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/bode_Va_dL_effect_m_coef.png" alt = "bode_Va_dL_effect_m_coef.png" / >
2021-06-14 18:08:46 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< p > < span class = "figure-number" > Figure 14: < / span > Effect of a change of the damping “ mass coeficient” on the transfer function from \(u\) to \(d\mathcal{L}\)< / p >
< / div >
2021-06-10 17:52:16 +02:00
< / div >
< / div >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org5aec8b7" class = "outline-4" >
< h4 id = "org5aec8b7" > < span class = "section-number-4" > 1.2.8.< / span > Using Flexible model< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-2-8" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > d_aligns = [[< span class = "org-builtin" > -< / span > 0.05, < span class = "org-builtin" > -< / span > 0.3, 0];
2021-06-30 22:45:20 +02:00
[ 0, 0.5, 0];
2021-08-11 00:28:02 +02:00
[< span class = "org-builtin" > -< / span > 0.1, < span class = "org-builtin" > -< / span > 0.3, 0];
2021-06-30 22:45:20 +02:00
[ 0, 0.3, 0];
2021-08-11 00:28:02 +02:00
[< span class = "org-builtin" > -< / span > 0.05, 0.05, 0];
[0, 0, 0]]< span class = "org-builtin" > *< / span > 1e< span class = "org-builtin" > -< / span > 3;
2021-06-30 22:45:20 +02:00
< / pre >
2021-06-10 17:52:16 +02:00
< / div >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > d_aligns = zeros(6,3);
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > d_aligns(1,:) = [-0.05, -0.3, 0]*1e-3;< / span >
d_aligns(2,< span class = "org-builtin" > :< / span > ) = [ 0, 0.3, 0]< span class = "org-builtin" > *< / span > 1e< span class = "org-builtin" > -< / span > 3;
2021-06-30 22:45:20 +02:00
< / pre >
2021-06-10 17:52:16 +02:00
< / div >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialize Nano-Hexapod< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'struts'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > 'flexible'< / span > , < span class = "org-comment" > ...< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-string" > 'actuator_d_align'< / span > , d_aligns);
< / pre >
< / div >
2021-08-11 00:28:02 +02:00
< div class = "question" id = "orgd912ef0" >
2021-06-10 17:52:16 +02:00
< p >
2021-06-30 22:45:20 +02:00
Why do we have smaller resonances when using flexible APA?
On the test bench we have the same resonance as the 2DoF model.
Could it be due to the compliance in other dof of the flexible model?
2021-06-10 17:52:16 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-06-10 17:52:16 +02:00
< / div >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the DVF Plant (transfer function from u to dLm)< / span >
2021-06-30 22:45:20 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/D'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Encoders< / span >
2021-06-10 17:52:16 +02:00
2021-08-11 00:28:02 +02:00
Gdvf = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-10 17:52:16 +02:00
< / pre >
< / div >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the IFF Plant (transfer function from u to taum)< / span >
2021-06-30 22:45:20 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/dum'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Force Sensors< / span >
2021-06-10 17:52:16 +02:00
2021-08-11 00:28:02 +02:00
Giff = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-06-10 17:52:16 +02:00
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org3336f61" class = "outline-4" >
< h4 id = "org3336f61" > < span class = "section-number-4" > 1.2.9.< / span > Flexible model + encoders fixed to the plates< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-2-9" >
2021-06-10 17:52:16 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the IFF Plant (transfer function from u to taum)< / span >
2021-06-30 22:45:20 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/D'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Force Sensors< / span >
2021-06-10 17:52:16 +02:00
< / pre >
< / div >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > d_aligns = [[< span class = "org-builtin" > -< / span > 0.05, < span class = "org-builtin" > -< / span > 0.3, 0];
2021-06-30 22:45:20 +02:00
[ 0, 0.5, 0];
2021-08-11 00:28:02 +02:00
[< span class = "org-builtin" > -< / span > 0.1, < span class = "org-builtin" > -< / span > 0.3, 0];
2021-06-30 22:45:20 +02:00
[ 0, 0.3, 0];
2021-08-11 00:28:02 +02:00
[< span class = "org-builtin" > -< / span > 0.05, 0.05, 0];
[0, 0, 0]]< span class = "org-builtin" > *< / span > 1e< span class = "org-builtin" > -< / span > 3;
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-06-10 17:52:16 +02:00
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialize Nano-Hexapod< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'struts'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > 'flexible'< / span > , < span class = "org-comment" > ...< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-string" > 'actuator_d_align'< / span > , d_aligns);
< / pre >
< / div >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > Gdvf_struts = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialize Nano-Hexapod< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'plates'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > 'flexible'< / span > , < span class = "org-comment" > ...< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-string" > 'actuator_d_align'< / span > , d_aligns);
< / pre >
< / div >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > Gdvf_plates = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org4ad429d" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/dvf_plant_comp_struts_plates.png" alt = "dvf_plant_comp_struts_plates.png" / >
< / p >
< p > < span class = "figure-number" > Figure 15: < / span > Comparison of the dynamics from \(V_a\) to \(d_L\) when the encoders are fixed to the struts (blue) and to the plates (red). APA are modeled as a flexible element.< / p >
< / div >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org2b90a8a" class = "outline-3" >
< h3 id = "org2b90a8a" > < span class = "section-number-3" > 1.3.< / span > Integral Force Feedback< / h3 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-3" id = "text-1-3" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "org033f80c" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
< p >
In this section, the Integral Force Feedback (IFF) control strategy is applied to the nano-hexapod.
The main goal of this to add damping to the nano-hexapod’ s modes.
< / p >
< p >
2021-08-11 00:28:02 +02:00
The control architecture is shown in Figure < a href = "#org37cb219" > 16< / a > where \(\bm{K}_\text{IFF}\) is a diagonal \(6 \times 6\) controller.
2021-07-02 18:26:05 +02:00
< / p >
< p >
The system as then a new input \(\bm{u}^\prime\), and the transfer function from \(\bm{u}^\prime\) to \(d\bm{\mathcal{L}}_m\) should be easier to control than the initial transfer function from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\).
< / p >
2021-08-11 00:28:02 +02:00
< div id = "org37cb219" class = "figure" >
2021-07-02 18:26:05 +02:00
< p > < img src = "figs/control_architecture_iff_struts.png" alt = "control_architecture_iff_struts.png" / >
< / p >
< p > < span class = "figure-number" > Figure 16: < / span > Integral Force Feedback Strategy< / p >
< / div >
2021-06-30 22:45:20 +02:00
< p >
2021-07-02 18:26:05 +02:00
This section is structured as follow:
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
< ul class = "org-ul" >
2021-08-11 00:28:02 +02:00
< li > Section < a href = "#org2cbf04c" > 1.3.1< / a > : Using the Simscape model (APA taken as 2DoF model), the transfer function from \(\bm{u}\) to \(\bm{\tau}_m\) is identified. Based on the obtained dynamics, the control law is developed and the optimal gain is estimated using the Root Locus.< / li >
< li > Section < a href = "#org1428bac" > 1.3.2< / a > : Still using the Simscape model, the effect of the IFF gain on the the transfer function from \(\bm{u}^\prime\) to \(d\bm{\mathcal{L}}_m\) is studied.< / li >
< li > Section < a href = "#orgc3a5faa" > 1.3.3< / a > : The same is performed experimentally: several IFF gains are used and the damped plant is identified each time.< / li >
< li > Section < a href = "#orgff6ab22" > 1.3.4< / a > : The damped model and the identified damped system are compared for the optimal IFF gain. It is found that IFF indeed adds a lot of damping into the system. However it is not efficient in damping the spurious struts modes.< / li >
< li > Section < a href = "#orgc65dd56" > 1.3.5< / a > : Finally, a “ flexible” model of the APA is used in the Simscape model and the optimally damped model is compared with the measurements.< / li >
2021-07-02 18:26:05 +02:00
< / ul >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org3b1a2c3" class = "outline-4" >
< h4 id = "org3b1a2c3" > < span class = "section-number-4" > 1.3.1.< / span > IFF Control Law and Optimal Gain< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-3-1" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "org2cbf04c" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
< p >
Let’ s use a model of the Nano-Hexapod with the encoders fixed to the struts and the APA taken as 2DoF model.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialize Nano-Hexapod< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'struts'< / span > , < span class = "org-comment" > ...< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > '2dof'< / span > );
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
The transfer function from \(\bm{u}\) to \(\bm{\tau}_m\) is identified.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the IFF Plant (transfer function from u to taum)< / span >
2021-06-30 22:45:20 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/dum'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Force Sensors< / span >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
Giff = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
The IFF controller is defined as shown below:
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% IFF Controller< / span >
Kiff_g1 = < span class = "org-builtin" > -< / span > (1< span class = "org-builtin" > /< / span > (s < span class = "org-builtin" > +< / span > 2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > 40))< span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % LPF: provides integral action above 40Hz< / span >
(s< span class = "org-builtin" > /< / span > (s < span class = "org-builtin" > +< / span > 2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > 30))< span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % HPF: limit low frequency gain< / span >
(1< span class = "org-builtin" > /< / span > (1 < span class = "org-builtin" > +< / span > s< span class = "org-builtin" > /< / span > 2< span class = "org-builtin" > /< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > /< / span > 500))< span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % LPF: more robust to high frequency resonances< / span >
eye(6); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Diagonal 6x6 controller< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
Then, the poles of the system are shown in the complex plane as a function of the controller gain (i.e. Root Locus plot) in Figure < a href = "#org10ed37e" > 17< / a > .
2021-07-02 18:26:05 +02:00
A gain of \(400\) is chosen as the “ optimal” gain as it visually seems to be the gain that adds the maximum damping to all the suspension modes simultaneously.
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org10ed37e" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_struts_iff_root_locus.png" alt = "enc_struts_iff_root_locus.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 17: < / span > Root Locus for the IFF control strategy< / p >
2021-06-30 22:45:20 +02:00
< / div >
< p >
Then the “ optimal” IFF controller is:
< / p >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% IFF controller with Optimal gain< / span >
Kiff = 400< span class = "org-builtin" > *< / span > Kiff_g1;
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
And it is saved for further use.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-07-02 18:26:05 +02:00
< pre class = "src src-matlab" > save(< span class = "org-string" > 'mat/Kiff.mat'< / span > , < span class = "org-string" > 'Kiff'< / span > )
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The bode plots of the “ diagonal” elements of the loop gain are shown in Figure < a href = "#org8794a33" > 18< / a > .
2021-07-02 18:26:05 +02:00
It is shown that the phase and gain margins are quite high and the loop gain is large arround the resonances.
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org8794a33" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_struts_iff_opt_loop_gain.png" alt = "enc_struts_iff_opt_loop_gain.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 18: < / span > Bode plot of the “ decentralized loop gain” \(G_\text{iff}(i,i) \times K_\text{iff}(i,i)\)< / p >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org35445ff" class = "outline-4" >
< h4 id = "org35445ff" > < span class = "section-number-4" > 1.3.2.< / span > Effect of IFF on the plant - Simulations< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-3-2" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "org1428bac" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-07-02 18:26:05 +02:00
< p >
Still using the Simscape model with encoders fixed to the struts and 2DoF APA, the IFF strategy is tested.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialize the Simscape model in closed loop< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'struts'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > '2dof'< / span > , < span class = "org-comment" > ...< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-string" > 'controller_type'< / span > , < span class = "org-string" > 'iff'< / span > );
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
The following IFF gains are tried:
< / p >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Tested IFF gains< / span >
2021-07-02 18:26:05 +02:00
iff_gains = [4, 10, 20, 40, 100, 200, 400];
< / pre >
< / div >
< p >
And the transfer functions from \(\bm{u}^\prime\) to \(d\bm{\mathcal{L}}_m\) are identified for all the IFF gains.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the (damped) transfer function from u to dLm for different values of the IFF gain< / span >
2021-06-30 22:45:20 +02:00
Gd_iff = {zeros(1, length(iff_gains))};
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/dL'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Strut Displacement (encoder)< / span >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:length(iff_gains)< / span >
Kiff = iff_gains(< span class = "org-matlab-math" > i< / span > )< span class = "org-builtin" > *< / span > Kiff_g1< span class = "org-builtin" > *< / span > eye(6); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > IFF Controller< / span >
Gd_iff(< span class = "org-matlab-math" > i< / span > ) = {exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options)};
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
isstable(Gd_iff{< span class = "org-matlab-math" > i< / span > })
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The obtained dynamics are shown in Figure < a href = "#org1489674" > 19< / a > .
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org1489674" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_struts_iff_gains_effect_dvf_plant.png" alt = "enc_struts_iff_gains_effect_dvf_plant.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 19: < / span > Effect of the IFF gain \(g\) on the transfer function from \(\bm{\tau}\) to \(d\bm{\mathcal{L}}_m\)< / p >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orga8e3e31" class = "outline-4" >
< h4 id = "orga8e3e31" > < span class = "section-number-4" > 1.3.3.< / span > Effect of IFF on the plant - Experimental Results< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-3-3" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "orgc3a5faa" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< p >
2021-07-02 18:26:05 +02:00
The IFF strategy is applied experimentally and the transfer function from \(\bm{u}^\prime\) to \(d\bm{\mathcal{L}}_m\) is identified for all the defined values of the gain.
2021-06-30 22:45:20 +02:00
< / p >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgd5f47cb" class = "outline-5" >
< h5 id = "orgd5f47cb" > < span class = "section-number-5" > 1.3.3.1.< / span > Load Data< / h5 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-5" id = "text-1-3-3-1" >
< p >
First load the identification data.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Load Identification Data< / span >
2021-06-30 22:45:20 +02:00
meas_iff_gains = {};
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:length(iff_gains)< / span >
meas_iff_gains(< span class = "org-matlab-math" > i< / span > ) = {load(sprintf(< span class = "org-string" > 'mat/iff_strut_1_noise_g_%i.mat'< / span > , iff_gains(< span class = "org-matlab-math" > i< / span > )), < span class = "org-string" > 't'< / span > , < span class = "org-string" > 'Vexc'< / span > , < span class = "org-string" > 'Vs'< / span > , < span class = "org-string" > 'de'< / span > , < span class = "org-string" > 'u'< / span > )};
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org0dac262" class = "outline-5" >
< h5 id = "org0dac262" > < span class = "section-number-5" > 1.3.3.2.< / span > Spectral Analysis - Setup< / h5 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-5" id = "text-1-3-3-2" >
< p >
And define the useful variables that will be used for the identification using the < code > tfestimate< / code > function.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Setup useful variables< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Sampling Time [s]< / span >
Ts = (meas_iff_gains{1}.t(end) < span class = "org-builtin" > -< / span > (meas_iff_gains{1}.t(1)))< span class = "org-builtin" > /< / span > (length(meas_iff_gains{1}.t)< span class = "org-builtin" > -< / span > 1);
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Sampling Frequency [Hz]< / span >
Fs = 1< span class = "org-builtin" > /< / span > Ts;
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Hannning Windows< / span >
win = hanning(ceil(1< span class = "org-builtin" > *< / span > Fs));
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > And we get the frequency vector< / span >
[< span class = "org-builtin" > ~< / span > , f] = tfestimate(meas_iff_gains{1}.Vexc, meas_iff_gains{1}.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgb24b205" class = "outline-5" >
< h5 id = "orgb24b205" > < span class = "section-number-5" > 1.3.3.3.< / span > DVF Plant< / h5 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-5" id = "text-1-3-3-3" >
< p >
The transfer functions are estimated for all the values of the gain.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% DVF Plant (transfer function from u to dLm)< / span >
2021-06-30 22:45:20 +02:00
G_iff_gains = {};
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:length(iff_gains)< / span >
G_iff_gains{< span class = "org-matlab-math" > i< / span > } = tfestimate(meas_iff_gains{< span class = "org-matlab-math" > i< / span > }.Vexc, meas_iff_gains{< span class = "org-matlab-math" > i< / span > }.de(< span class = "org-builtin" > :< / span > ,1), win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The obtained dynamics as shown in the bode plot in Figure < a href = "#org36b9287" > 20< / a > .
2021-07-02 18:26:05 +02:00
The dashed curves are the results obtained using the model, and the solid curves the results from the experimental identification.
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org36b9287" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/comp_iff_gains_dvf_plant.png" alt = "comp_iff_gains_dvf_plant.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 20: < / span > Transfer function from \(u\) to \(d\mathcal{L}_m\) for multiple values of the IFF gain< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The bode plot is then zoomed on the suspension modes of the nano-hexapod in Figure < a href = "#orge16a85f" > 21< / a > .
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orge16a85f" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/comp_iff_gains_dvf_plant_zoom.png" alt = "comp_iff_gains_dvf_plant_zoom.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 21: < / span > Transfer function from \(u\) to \(d\mathcal{L}_m\) for multiple values of the IFF gain (Zoom)< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org4fa2d58" >
2021-06-30 22:45:20 +02:00
< p >
The IFF control strategy is very effective for the damping of the suspension modes.
It however does not damp the modes at 200Hz, 300Hz and 400Hz (flexible modes of the APA).
< / p >
< p >
2021-07-02 18:26:05 +02:00
Also, the experimental results and the models obtained from the Simscape model are in agreement concerning the damped system (up to the flexible modes).
2021-06-30 22:45:20 +02:00
< / p >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org05fd801" class = "outline-5" >
< h5 id = "org05fd801" > < span class = "section-number-5" > 1.3.3.4.< / span > Experimental Results - Comparison of the un-damped and fully damped system< / h5 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-5" id = "text-1-3-3-4" >
2021-06-30 22:45:20 +02:00
< p >
2021-08-11 00:28:02 +02:00
The un-damped and damped experimental plants are compared in Figure < a href = "#orgaf86039" > 22< / a > (diagonal terms).
2021-06-30 22:45:20 +02:00
< / p >
< p >
2021-07-02 18:26:05 +02:00
It is very clear that all the suspension modes are very well damped thanks to IFF.
However, there is little to no effect on the flexible modes of the struts and of the plate.
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orgaf86039" class = "figure" >
2021-07-02 18:26:05 +02:00
< p > < img src = "figs/comp_undamped_opt_iff_gain_diagonal.png" alt = "comp_undamped_opt_iff_gain_diagonal.png" / >
< / p >
< p > < span class = "figure-number" > Figure 22: < / span > Comparison of the diagonal elements of the tranfer function from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\) without active damping and with optimal IFF gain< / p >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org2615373" class = "outline-4" >
< h4 id = "org2615373" > < span class = "section-number-4" > 1.3.4.< / span > Experimental Results - Damped Plant with Optimal gain< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-3-4" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "orgff6ab22" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< p >
Let’ s now look at the \(6 \times 6\) damped plant with the optimal gain \(g = 400\).
< / p >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgf80ac64" class = "outline-5" >
< h5 id = "orgf80ac64" > < span class = "section-number-5" > 1.3.4.1.< / span > Load Data< / h5 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-5" id = "text-1-3-4-1" >
< p >
The experimental data are loaded.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Load Identification Data< / span >
2021-06-30 22:45:20 +02:00
meas_iff_struts = {};
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
meas_iff_struts(< span class = "org-matlab-math" > i< / span > ) = {load(sprintf(< span class = "org-string" > 'mat/iff_strut_%i_noise_g_400.mat'< / span > , < span class = "org-matlab-math" > i< / span > ), < span class = "org-string" > 't'< / span > , < span class = "org-string" > 'Vexc'< / span > , < span class = "org-string" > 'Vs'< / span > , < span class = "org-string" > 'de'< / span > , < span class = "org-string" > 'u'< / span > )};
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org516011f" class = "outline-5" >
< h5 id = "org516011f" > < span class = "section-number-5" > 1.3.4.2.< / span > Spectral Analysis - Setup< / h5 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-5" id = "text-1-3-4-2" >
< p >
And the parameters useful for the spectral analysis are defined.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Setup useful variables< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Sampling Time [s]< / span >
Ts = (meas_iff_struts{1}.t(end) < span class = "org-builtin" > -< / span > (meas_iff_struts{1}.t(1)))< span class = "org-builtin" > /< / span > (length(meas_iff_struts{1}.t)< span class = "org-builtin" > -< / span > 1);
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Sampling Frequency [Hz]< / span >
Fs = 1< span class = "org-builtin" > /< / span > Ts;
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Hannning Windows< / span >
win = hanning(ceil(1< span class = "org-builtin" > *< / span > Fs));
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > And we get the frequency vector< / span >
[< span class = "org-builtin" > ~< / span > , f] = tfestimate(meas_iff_struts{1}.Vexc, meas_iff_struts{1}.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgafba9ad" class = "outline-5" >
< h5 id = "orgafba9ad" > < span class = "section-number-5" > 1.3.4.3.< / span > DVF Plant< / h5 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-5" id = "text-1-3-4-3" >
< p >
Finally, the \(6 \times 6\) plant is identified using the < code > tfestimate< / code > function.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% DVF Plant (transfer function from u to dLm)< / span >
2021-06-30 22:45:20 +02:00
G_iff_opt = {};
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
G_iff_opt{< span class = "org-matlab-math" > i< / span > } = tfestimate(meas_iff_struts{< span class = "org-matlab-math" > i< / span > }.Vexc, meas_iff_struts{< span class = "org-matlab-math" > i< / span > }.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The obtained diagonal elements are compared with the model in Figure < a href = "#orgdea0fcf" > 23< / a > .
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orgdea0fcf" class = "figure" >
2021-06-10 17:52:16 +02:00
< p > < img src = "figs/damped_iff_plant_comp_diagonal.png" alt = "damped_iff_plant_comp_diagonal.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 23: < / span > Comparison of the diagonal elements of the transfer functions from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\) with active damping (IFF) applied with an optimal gain \(g = 400\)< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
And all the off-diagonal elements are compared with the model in Figure < a href = "#org8ac5fbc" > 24< / a > .
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org8ac5fbc" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/damped_iff_plant_comp_off_diagonal.png" alt = "damped_iff_plant_comp_off_diagonal.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 24: < / span > Comparison of the off-diagonal elements of the transfer functions from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\) with active damping (IFF) applied with an optimal gain \(g = 400\)< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org78667aa" >
2021-06-30 22:45:20 +02:00
< p >
With the IFF control strategy applied and the optimal gain used, the suspension modes are very well damped.
2021-07-02 18:26:05 +02:00
Remains the un-damped flexible modes of the APA (200Hz, 300Hz, 400Hz), and the modes of the plates (700Hz).
2021-06-30 22:45:20 +02:00
< / p >
< p >
The Simscape model and the experimental results are in very good agreement.
< / p >
< / div >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org6daf853" class = "outline-4" >
< h4 id = "org6daf853" > < span class = "section-number-4" > 1.3.5.< / span > Comparison with the Flexible model< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-3-5" >
2021-06-30 22:45:20 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "orgc65dd56" > < / a >
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
< p >
When using the 2-DoF model for the APA, the flexible modes of the struts were not modelled, and it was the main limitation of the model.
Now, let’ s use a flexible model for the APA, and see if the obtained damped plant using the model is similar to the measured dynamics.
2021-06-30 22:45:20 +02:00
< / p >
< p >
2021-07-02 18:26:05 +02:00
First, the nano-hexapod is initialized.
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Estimated misalignement of the struts< / span >
d_aligns = [[< span class = "org-builtin" > -< / span > 0.05, < span class = "org-builtin" > -< / span > 0.3, 0];
2021-07-02 18:26:05 +02:00
[ 0, 0.5, 0];
2021-08-11 00:28:02 +02:00
[< span class = "org-builtin" > -< / span > 0.1, < span class = "org-builtin" > -< / span > 0.3, 0];
2021-07-02 18:26:05 +02:00
[ 0, 0.3, 0];
2021-08-11 00:28:02 +02:00
[< span class = "org-builtin" > -< / span > 0.05, 0.05, 0];
[0, 0, 0]]< span class = "org-builtin" > *< / span > 1e< span class = "org-builtin" > -< / span > 3;
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-matlab-cellbreak" > %% Initialize Nano-Hexapod< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'struts'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > 'flexible'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_d_align'< / span > , d_aligns, < span class = "org-comment" > ...< / span >
2021-07-02 18:26:05 +02:00
< span class = "org-string" > 'controller_type'< / span > , < span class = "org-string" > 'iff'< / span > );
< / pre >
2021-06-30 22:45:20 +02:00
< / div >
< p >
2021-07-02 18:26:05 +02:00
And the “ optimal” controller is loaded.
2021-06-30 22:45:20 +02:00
< / p >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Optimal IFF controller< / span >
2021-07-02 18:26:05 +02:00
load(< span class = "org-string" > 'Kiff.mat'< / span > , < span class = "org-string" > 'Kiff'< / span > );
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< p >
2021-07-02 18:26:05 +02:00
The transfer function from \(\bm{u}^\prime\) to \(d\bm{\mathcal{L}}_m\) is identified using the Simscape model.
2021-06-30 22:45:20 +02:00
< / p >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Linearized inputs/outputs< / span >
2021-07-02 18:26:05 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/dL'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Strut Displacement (encoder)< / span >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-matlab-cellbreak" > %% Identification of the plant< / span >
Gd_iff = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< p >
2021-08-11 00:28:02 +02:00
The obtained diagonal elements are shown in Figure < a href = "#org2026c50" > 25< / a > while the off-diagonal elements are shown in Figure < a href = "#orgaf87896" > 26< / a > .
2021-06-30 22:45:20 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div id = "org2026c50" class = "figure" >
2021-07-02 18:26:05 +02:00
< p > < img src = "figs/enc_struts_iff_opt_damp_comp_flex_model_diag.png" alt = "enc_struts_iff_opt_damp_comp_flex_model_diag.png" / >
< / p >
< p > < span class = "figure-number" > Figure 25: < / span > Diagonal elements of the transfer function from \(\bm{u}^\prime\) to \(d\bm{\mathcal{L}}_m\) - comparison of the measured FRF and the identified dynamics using the flexible model< / p >
< / div >
2021-06-30 22:45:20 +02:00
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orgaf87896" class = "figure" >
2021-07-02 18:26:05 +02:00
< p > < img src = "figs/enc_struts_iff_opt_damp_comp_flex_model_off_diag.png" alt = "enc_struts_iff_opt_damp_comp_flex_model_off_diag.png" / >
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 26: < / span > Off-diagonal elements of the transfer function from \(\bm{u}^\prime\) to \(d\bm{\mathcal{L}}_m\) - comparison of the measured FRF and the identified dynamics using the flexible model< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org569ceac" >
2021-06-30 22:45:20 +02:00
< p >
2021-07-02 18:26:05 +02:00
Using flexible models for the APA, the agreement between the Simscape model of the nano-hexapod and the measured FRF is very good.
2021-06-30 22:45:20 +02:00
< / p >
< p >
2021-07-02 18:26:05 +02:00
Only the flexible mode of the top-plate is not appearing in the model which is very logical as the top plate is taken as a solid body.
2021-06-30 22:45:20 +02:00
< / p >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgcd51296" class = "outline-4" >
< h4 id = "orgcd51296" > < span class = "section-number-4" > 1.3.6.< / span > Conclusion< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-3-6" >
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org0fdb3d4" >
2021-06-30 22:45:20 +02:00
< p >
2021-07-02 18:26:05 +02:00
The decentralized Integral Force Feedback strategy applied on the nano-hexapod is very effective in damping all the suspension modes.
2021-06-30 22:45:20 +02:00
< / p >
< p >
2021-07-02 18:26:05 +02:00
The Simscape model (especially when using a flexible model for the APA) is shown to be very accurate, even when IFF is applied.
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
< / div >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org3a041e1" class = "outline-3" >
< h3 id = "org3a041e1" > < span class = "section-number-3" > 1.4.< / span > Modal Analysis< / h3 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-3" id = "text-1-4" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "org522a387" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
< p >
2021-08-11 00:28:02 +02:00
Several 3-axis accelerometers are fixed on the top platform of the nano-hexapod as shown in Figure < a href = "#org6b1041e" > 31< / a > .
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div id = "orgd18f41e" class = "figure" >
2021-07-02 18:26:05 +02:00
< p > < img src = "figs/accelerometers_nano_hexapod.jpg" alt = "accelerometers_nano_hexapod.jpg" / >
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 27: < / span > Location of the accelerometers on top of the nano-hexapod< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The top platform is then excited using an instrumented hammer as shown in Figure < a href = "#org88672a8" > 28< / a > .
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div id = "org88672a8" class = "figure" >
2021-07-02 18:26:05 +02:00
< p > < img src = "figs/hammer_excitation_compliance_meas.jpg" alt = "hammer_excitation_compliance_meas.jpg" / >
< / p >
< p > < span class = "figure-number" > Figure 28: < / span > Example of an excitation using an instrumented hammer< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
From this experiment, the resonance frequencies and the associated mode shapes can be computed (Section < a href = "#org5c8121c" > 1.4.1< / a > ).
Then, in Section < a href = "#org042444d" > 1.4.2< / a > , the vertical compliance of the nano-hexapod is experimentally estimated.
Finally, in Section < a href = "#org05fb36b" > 1.4.3< / a > , the measured compliance is compare with the estimated one from the Simscape model.
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgc94b67b" class = "outline-4" >
< h4 id = "orgc94b67b" > < span class = "section-number-4" > 1.4.1.< / span > Obtained Mode Shapes< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-4-1" >
2021-06-30 22:45:20 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "org5c8121c" > < / a >
2021-06-30 22:45:20 +02:00
< / p >
< p >
2021-08-11 00:28:02 +02:00
We can observe the mode shapes of the first 6 modes that are the suspension modes (the plate is behaving as a solid body) in Figure < a href = "#org7b58184" > 29< / a > .
2021-06-30 22:45:20 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div id = "org7b58184" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/mode_shapes_annotated.gif" alt = "mode_shapes_annotated.gif" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 29: < / span > Measured mode shapes for the first six modes< / p >
2021-06-30 22:45:20 +02:00
< / div >
< p >
2021-08-11 00:28:02 +02:00
Then, there is a mode at 692Hz which corresponds to a flexible mode of the top plate (Figure < a href = "#org05ba83f" > 30< / a > ).
2021-06-30 22:45:20 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div id = "org05ba83f" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/ModeShapeFlex1_crop.gif" alt = "ModeShapeFlex1_crop.gif" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 30: < / span > First flexible mode at 692Hz< / p >
2021-06-30 22:45:20 +02:00
< / div >
< p >
2021-08-11 00:28:02 +02:00
The obtained modes are summarized in Table < a href = "#orgacf7089" > 2< / a > .
2021-06-30 22:45:20 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< table id = "orgacf7089" border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
2021-06-30 22:45:20 +02:00
< caption class = "t-above" > < span class = "table-number" > Table 2:< / span > Description of the identified modes< / caption >
< colgroup >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-left" / >
< / colgroup >
< thead >
< tr >
< th scope = "col" class = "org-right" > Mode< / th >
< th scope = "col" class = "org-right" > Freq. [Hz]< / th >
< th scope = "col" class = "org-left" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "org-right" > 1< / td >
< td class = "org-right" > 105< / td >
< td class = "org-left" > Suspension Mode: Y-translation< / td >
< / tr >
< tr >
< td class = "org-right" > 2< / td >
< td class = "org-right" > 107< / td >
< td class = "org-left" > Suspension Mode: X-translation< / td >
< / tr >
< tr >
< td class = "org-right" > 3< / td >
< td class = "org-right" > 131< / td >
< td class = "org-left" > Suspension Mode: Z-translation< / td >
< / tr >
< tr >
< td class = "org-right" > 4< / td >
< td class = "org-right" > 161< / td >
< td class = "org-left" > Suspension Mode: Y-tilt< / td >
< / tr >
< tr >
< td class = "org-right" > 5< / td >
< td class = "org-right" > 162< / td >
< td class = "org-left" > Suspension Mode: X-tilt< / td >
< / tr >
< tr >
< td class = "org-right" > 6< / td >
< td class = "org-right" > 180< / td >
< td class = "org-left" > Suspension Mode: Z-rotation< / td >
< / tr >
< tr >
< td class = "org-right" > 7< / td >
< td class = "org-right" > 692< / td >
< td class = "org-left" > (flexible) Membrane mode of the top platform< / td >
< / tr >
< / tbody >
< / table >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org8ecee01" class = "outline-4" >
< h4 id = "org8ecee01" > < span class = "section-number-4" > 1.4.2.< / span > Nano-Hexapod Compliance - Effect of IFF< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-4-2" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "org042444d" > < / a >
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
< p >
In this section, we wish to estimated the effectiveness of the IFF strategy concerning the compliance.
< / p >
2021-06-30 22:45:20 +02:00
2021-07-02 18:26:05 +02:00
< p >
The top plate is excited vertically using the instrumented hammer two times:
< / p >
< ol class = "org-ol" >
< li > no control loop is used< / li >
< li > decentralized IFF is used< / li >
< / ol >
2021-06-30 22:45:20 +02:00
2021-07-02 18:26:05 +02:00
< p >
The data is loaded.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > frf_ol = load(< span class = "org-string" > 'Measurement_Z_axis.mat'< / span > ); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Open-Loop< / span >
frf_iff = load(< span class = "org-string" > 'Measurement_Z_axis_damped.mat'< / span > ); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > IFF< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< p >
2021-07-02 18:26:05 +02:00
The mean vertical motion of the top platform is computed by averaging all 5 accelerometers.
2021-06-30 22:45:20 +02:00
< / p >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Multiply by 10 (gain in m/s^2/V) and divide by 5 (number of accelerometers)< / span >
d_frf_ol = 10< span class = "org-builtin" > /< / span > 5< span class = "org-builtin" > *< / span > (frf_ol.FFT1_H1_4_1_RMS_Y_Mod < span class = "org-builtin" > +< / span > frf_ol.FFT1_H1_7_1_RMS_Y_Mod < span class = "org-builtin" > +< / span > frf_ol.FFT1_H1_10_1_RMS_Y_Mod < span class = "org-builtin" > +< / span > frf_ol.FFT1_H1_13_1_RMS_Y_Mod < span class = "org-builtin" > +< / span > frf_ol.FFT1_H1_16_1_RMS_Y_Mod)< span class = "org-builtin" > ./< / span > (2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > frf_ol.FFT1_H1_16_1_RMS_X_Val)< span class = "org-builtin" > .^< / span > 2;
d_frf_iff = 10< span class = "org-builtin" > /< / span > 5< span class = "org-builtin" > *< / span > (frf_iff.FFT1_H1_4_1_RMS_Y_Mod < span class = "org-builtin" > +< / span > frf_iff.FFT1_H1_7_1_RMS_Y_Mod < span class = "org-builtin" > +< / span > frf_iff.FFT1_H1_10_1_RMS_Y_Mod < span class = "org-builtin" > +< / span > frf_iff.FFT1_H1_13_1_RMS_Y_Mod < span class = "org-builtin" > +< / span > frf_iff.FFT1_H1_16_1_RMS_Y_Mod)< span class = "org-builtin" > ./< / span > (2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > frf_iff.FFT1_H1_16_1_RMS_X_Val)< span class = "org-builtin" > .^< / span > 2;
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The vertical compliance (magnitude of the transfer function from a vertical force applied on the top plate to the vertical motion of the top plate) is shown in Figure < a href = "#org6b1041e" > 31< / a > .
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org6b1041e" class = "figure" >
2021-07-02 18:26:05 +02:00
< p > < img src = "figs/compliance_vertical_comp_iff.png" alt = "compliance_vertical_comp_iff.png" / >
< / p >
< p > < span class = "figure-number" > Figure 31: < / span > Measured vertical compliance with and without IFF< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org0401f3e" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
From Figure < a href = "#org6b1041e" > 31< / a > , it is clear that the IFF control strategy is very effective in damping the suspensions modes of the nano-hexapod.
2021-07-02 18:26:05 +02:00
It also has the effect of (slightly) degrading the vertical compliance at low frequency.
< / p >
2021-06-30 22:45:20 +02:00
2021-07-02 18:26:05 +02:00
< p >
It also seems some damping can be added to the modes at around 205Hz which are flexible modes of the struts.
< / p >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orga586e56" class = "outline-4" >
< h4 id = "orga586e56" > < span class = "section-number-4" > 1.4.3.< / span > Comparison with the Simscape Model< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-1-4-3" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "org05fb36b" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-07-02 18:26:05 +02:00
< p >
Let’ s now compare the measured vertical compliance with the vertical compliance as estimated from the Simscape model.
< / p >
2021-06-30 22:45:20 +02:00
2021-07-02 18:26:05 +02:00
< p >
The transfer function from a vertical external force to the absolute motion of the top platform is identified (with and without IFF) using the Simscape model.
2021-08-11 00:28:02 +02:00
The comparison is done in Figure < a href = "#org56cbba6" > 32< / a > .
2021-07-02 18:26:05 +02:00
Again, the model is quite accurate!
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org56cbba6" class = "figure" >
2021-07-02 18:26:05 +02:00
< p > < img src = "figs/compliance_vertical_comp_model_iff.png" alt = "compliance_vertical_comp_model_iff.png" / >
< / p >
< p > < span class = "figure-number" > Figure 32: < / span > Measured vertical compliance with and without IFF< / p >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org7ea9ada" class = "outline-3" >
< h3 id = "org7ea9ada" > < span class = "section-number-3" > 1.5.< / span > Conclusion< / h3 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-3" id = "text-1-5" >
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org5ae0de4" >
2021-07-02 18:26:05 +02:00
< p >
From the previous analysis, several conclusions can be drawn:
< / p >
< ul class = "org-ul" >
2021-08-11 00:28:02 +02:00
< li > Decentralized IFF is very effective in damping the “ suspension” modes of the nano-hexapod (Figure < a href = "#orgaf86039" > 22< / a > )< / li >
< li > Decentralized IFF does not damp the “ spurious” modes of the struts nor the flexible modes of the top plate (Figure < a href = "#orgaf86039" > 22< / a > )< / li >
< li > Even though the Simscape model and the experimentally measured FRF are in good agreement (Figures < a href = "#org2026c50" > 25< / a > and < a href = "#orgaf87896" > 26< / a > ), the obtain dynamics from the control inputs \(\bm{u}\) and the encoders \(d\bm{\mathcal{L}}_m\) is very difficult to control< / li >
2021-07-02 18:26:05 +02:00
< / ul >
2021-06-30 22:45:20 +02:00
< p >
2021-07-02 18:26:05 +02:00
Therefore, in the following sections, the encoders will be fixed to the plates.
The goal is to be less sensitive to the flexible modes of the struts.
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org70a9ea8" class = "outline-2" >
< h2 id = "org70a9ea8" > < span class = "section-number-2" > 2.< / span > Encoders fixed to the plates - Dynamics< / h2 >
2021-06-30 22:45:20 +02:00
< div class = "outline-text-2" id = "text-2" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "org4e18927" > < / a >
2021-06-30 22:45:20 +02:00
< / p >
< p >
2021-08-11 00:28:02 +02:00
In this section, the encoders are fixed to the plates rather than to the struts as shown in Figure < a href = "#org21ff222" > 33< / a > .
2021-06-30 22:45:20 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div id = "org21ff222" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/IMG_20210625_083801.jpg" alt = "IMG_20210625_083801.jpg" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 33: < / span > Nano-Hexapod with encoders fixed to the struts< / p >
2021-06-30 22:45:20 +02:00
< / div >
< p >
It is structured as follow:
< / p >
< ul class = "org-ul" >
2021-08-11 00:28:02 +02:00
< li > Section < a href = "#org36eec02" > 2.1< / a > : The dynamics of the nano-hexapod is identified.< / li >
< li > Section < a href = "#orge83a435" > 2.2< / a > : The identified dynamics is compared with the Simscape model.< / li >
< li > Section < a href = "#org3f6ceb6" > 2.3< / a > : The Integral Force Feedback (IFF) control strategy is applied and the dynamics of the damped nano-hexapod is identified and compare with the Simscape model.< / li >
2021-06-30 22:45:20 +02:00
< / ul >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org62d466e" class = "outline-3" >
< h3 id = "org62d466e" > < span class = "section-number-3" > 2.1.< / span > Identification of the dynamics< / h3 >
2021-06-30 22:45:20 +02:00
< div class = "outline-text-3" id = "text-2-1" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "org36eec02" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
< p >
In this section, the dynamics of the nano-hexapod with the encoders fixed to the plates is identified.
< / p >
< p >
2021-08-11 00:28:02 +02:00
First, the measurement data are loaded in Section < a href = "#org4caaa35" > 2.1.1< / a > , then the transfer function matrix from the actuators to the encoders are estimated in Section < a href = "#org3b7ca07" > 2.1.2< / a > .
Finally, the transfer function matrix from the actuators to the force sensors is estimated in Section < a href = "#org147061f" > 2.1.3< / a > .
2021-06-30 22:45:20 +02:00
< / p >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org0eb1087" class = "outline-4" >
< h4 id = "org0eb1087" > < span class = "section-number-4" > 2.1.1.< / span > Data Loading and Spectral Analysis Setup< / h4 >
2021-06-30 22:45:20 +02:00
< div class = "outline-text-4" id = "text-2-1-1" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "org4caaa35" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
< p >
The actuators are excited one by one using a low pass filtered white noise.
For each excitation, the 6 force sensors and 6 encoders are measured and saved.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Load Identification Data< / span >
2021-06-30 22:45:20 +02:00
meas_data_lf = {};
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
meas_data_lf(< span class = "org-matlab-math" > i< / span > ) = {load(sprintf(< span class = "org-string" > 'mat/frf_exc_strut_%i_enc_plates_noise.mat'< / span > , < span class = "org-matlab-math" > i< / span > ), < span class = "org-string" > 't'< / span > , < span class = "org-string" > 'Va'< / span > , < span class = "org-string" > 'Vs'< / span > , < span class = "org-string" > 'de'< / span > )};
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org991f21b" class = "outline-4" >
< h4 id = "org991f21b" > < span class = "section-number-4" > 2.1.2.< / span > Transfer function from Actuator to Encoder< / h4 >
2021-06-30 22:45:20 +02:00
< div class = "outline-text-4" id = "text-2-1-2" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "org3b7ca07" > < / a >
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
< p >
Let’ s compute the coherence from the excitation voltage \(\bm{u}\) and the displacement \(d\bm{\mathcal{L}}_m\) as measured by the encoders.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Coherence< / span >
2021-06-30 22:45:20 +02:00
coh_dvf = zeros(length(f), 6, 6);
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
coh_dvf(< span class = "org-builtin" > :< / span > , < span class = "org-builtin" > :< / span > , < span class = "org-matlab-math" > i< / span > ) = mscohere(meas_data_lf{< span class = "org-matlab-math" > i< / span > }.Va, meas_data_lf{< span class = "org-matlab-math" > i< / span > }.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The obtained coherence shown in Figure < a href = "#orga37c3e1" > 34< / a > is quite good up to 400Hz.
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orga37c3e1" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_plates_dvf_coh.png" alt = "enc_plates_dvf_coh.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 34: < / span > Obtained coherence for the DVF plant< / p >
2021-06-30 22:45:20 +02:00
< / div >
< p >
2021-07-02 18:26:05 +02:00
Then the 6x6 transfer function matrix is estimated.
2021-06-30 22:45:20 +02:00
< / p >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% DVF Plant (transfer function from u to dLm)< / span >
2021-06-30 22:45:20 +02:00
G_dvf = zeros(length(f), 6, 6);
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
G_dvf(< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-matlab-math" > i< / span > ) = tfestimate(meas_data_lf{< span class = "org-matlab-math" > i< / span > }.Va, meas_data_lf{< span class = "org-matlab-math" > i< / span > }.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The diagonal and off-diagonal terms of this transfer function matrix are shown in Figure < a href = "#org1f43b90" > 35< / a > .
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org1f43b90" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_plates_dvf_frf.png" alt = "enc_plates_dvf_frf.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 35: < / span > Measured FRF for the DVF plant< / p >
< / div >
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org5cdb3e9" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
From Figure < a href = "#org1f43b90" > 35< / a > , we can draw few conclusions on the transfer functions from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\) when the encoders are fixed to the plates:
2021-07-02 18:26:05 +02:00
< / p >
< ul class = "org-ul" >
< li > the decoupling is rather good at low frequency (below the first suspension mode).
2021-08-11 00:28:02 +02:00
The low frequency gain is constant for the off diagonal terms, whereas when the encoders where fixed to the struts, the low frequency gain of the off-diagonal terms were going to zero (Figure < a href = "#org8059051" > 5< / a > ).< / li >
2021-07-02 18:26:05 +02:00
< li > the flexible modes of the struts at 226Hz and 337Hz are indeed shown in the transfer functions, but their amplitudes are rather low.< / li >
2021-08-11 00:28:02 +02:00
< li > the diagonal terms have alternating poles and zeros up to at least 600Hz: the flexible modes of the struts are not affecting the alternating pole/zero pattern. This what not the case when the encoders were fixed to the struts (Figure < a href = "#org8059051" > 5< / a > ).< / li >
2021-07-02 18:26:05 +02:00
< / ul >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgc6d4396" class = "outline-4" >
< h4 id = "orgc6d4396" > < span class = "section-number-4" > 2.1.3.< / span > Transfer function from Actuator to Force Sensor< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-2-1-3" >
2021-06-30 22:45:20 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "org147061f" > < / a >
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
< p >
Let’ s now compute the coherence from the excitation voltage \(\bm{u}\) and the voltage \(\bm{\tau}_m\) generated by the Force senors.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Coherence for the IFF plant< / span >
2021-06-30 22:45:20 +02:00
coh_iff = zeros(length(f), 6, 6);
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
coh_iff(< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-matlab-math" > i< / span > ) = mscohere(meas_data_lf{< span class = "org-matlab-math" > i< / span > }.Va, meas_data_lf{< span class = "org-matlab-math" > i< / span > }.Vs, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The coherence is shown in Figure < a href = "#org3e82768" > 36< / a > , and is very good for from 10Hz up to 2kHz.
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org3e82768" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_plates_iff_coh.png" alt = "enc_plates_iff_coh.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 36: < / span > Obtained coherence for the IFF plant< / p >
2021-06-30 22:45:20 +02:00
< / div >
< p >
2021-07-02 18:26:05 +02:00
Then the 6x6 transfer function matrix is estimated.
2021-06-30 22:45:20 +02:00
< / p >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% IFF Plant< / span >
2021-06-30 22:45:20 +02:00
G_iff = zeros(length(f), 6, 6);
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
G_iff(< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-matlab-math" > i< / span > ) = tfestimate(meas_data_lf{< span class = "org-matlab-math" > i< / span > }.Va, meas_data_lf{< span class = "org-matlab-math" > i< / span > }.Vs, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The bode plot of the diagonal and off-diagonal terms are shown in Figure < a href = "#orga97b779" > 37< / a > .
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orga97b779" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_plates_iff_frf.png" alt = "enc_plates_iff_frf.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 37: < / span > Measured FRF for the IFF plant< / p >
< / div >
2021-08-11 00:28:02 +02:00
< div class = "important" id = "orgee8d044" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
It is shown in Figure < a href = "#org40d9867" > 38< / a > that:
2021-07-02 18:26:05 +02:00
< / p >
< ul class = "org-ul" >
< li > The IFF plant has alternating poles and zeros< / li >
< li > The first flexible mode of the struts as 235Hz is appearing, and therefore is should be possible to add some damping to this mode using IFF< / li >
< li > The decoupling is quite good at low frequency (below the first model) as well as high frequency (above the last suspension mode, except near the flexible modes of the top plate)< / li >
< / ul >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orge5a55c9" class = "outline-4" >
< h4 id = "orge5a55c9" > < span class = "section-number-4" > 2.1.4.< / span > Save Identified Plants< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-2-1-4" >
< p >
The identified dynamics is saved for further use.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-07-02 18:26:05 +02:00
< pre class = "src src-matlab" > save(< span class = "org-string" > 'mat/identified_plants_enc_plates.mat'< / span > , < span class = "org-string" > 'f'< / span > , < span class = "org-string" > 'Ts'< / span > , < span class = "org-string" > 'G_iff'< / span > , < span class = "org-string" > 'G_dvf'< / span > )
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org4e15881" class = "outline-3" >
< h3 id = "org4e15881" > < span class = "section-number-3" > 2.2.< / span > Comparison with the Simscape Model< / h3 >
2021-06-30 22:45:20 +02:00
< div class = "outline-text-3" id = "text-2-2" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "orge83a435" > < / a >
2021-06-30 22:45:20 +02:00
< / p >
< p >
2021-08-11 00:28:02 +02:00
In this section, the measured dynamics done in Section < a href = "#org36eec02" > 2.1< / a > is compared with the dynamics estimated from the Simscape model.
2021-06-30 22:45:20 +02:00
< / p >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org453d81e" class = "outline-4" >
< h4 id = "org453d81e" > < span class = "section-number-4" > 2.2.1.< / span > Identification Setup< / h4 >
2021-06-30 22:45:20 +02:00
< div class = "outline-text-4" id = "text-2-2-1" >
2021-07-02 18:26:05 +02:00
< p >
The nano-hexapod is initialized with the APA taken as flexible models.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialize Nano-Hexapod< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'plates'< / span > , < span class = "org-comment" > ...< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > 'flexible'< / span > );
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< / div >
< / div >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgf3de112" class = "outline-4" >
< h4 id = "orgf3de112" > < span class = "section-number-4" > 2.2.2.< / span > Dynamics from Actuator to Force Sensors< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-2-2-2" >
< p >
Then the transfer function from \(\bm{u}\) to \(\bm{\tau}_m\) is identified using the Simscape model.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the IFF Plant (transfer function from u to taum)< / span >
2021-06-30 22:45:20 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/Fm'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Force Sensors< / span >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
Giff = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
The identified dynamics is compared with the measured FRF:
< / p >
< ul class = "org-ul" >
2021-08-11 00:28:02 +02:00
< li > Figure < a href = "#org40d9867" > 38< / a > : the individual transfer function from \(u_1\) (the DAC voltage for the first actuator) to the force sensors of all 6 struts are compared< / li >
< li > Figure < a href = "#orga37527b" > 39< / a > : all the diagonal elements are compared< / li >
< li > Figure < a href = "#orgeae1d12" > 40< / a > : all the off-diagonal elements are compared< / li >
2021-07-02 18:26:05 +02:00
< / ul >
2021-06-30 22:45:20 +02:00
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org40d9867" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_plates_iff_comp_simscape_all.png" alt = "enc_plates_iff_comp_simscape_all.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 38: < / span > IFF Plant for the first actuator input and all the force senosrs< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "orga37527b" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_plates_iff_comp_simscape.png" alt = "enc_plates_iff_comp_simscape.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 39: < / span > Diagonal elements of the IFF Plant< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "orgeae1d12" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_plates_iff_comp_offdiag_simscape.png" alt = "enc_plates_iff_comp_offdiag_simscape.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 40: < / span > Off diagonal elements of the IFF Plant< / p >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgba463af" class = "outline-4" >
< h4 id = "orgba463af" > < span class = "section-number-4" > 2.2.3.< / span > Dynamics from Actuator to Encoder< / h4 >
2021-06-30 22:45:20 +02:00
< div class = "outline-text-4" id = "text-2-2-3" >
2021-07-02 18:26:05 +02:00
< p >
Now, the dynamics from the DAC voltage \(\bm{u}\) to the encoders \(d\bm{\mathcal{L}}_m\) is estimated using the Simscape model.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the DVF Plant (transfer function from u to dLm)< / span >
2021-06-30 22:45:20 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/dL'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Encoders< / span >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
Gdvf = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
The identified dynamics is compared with the measured FRF:
< / p >
< ul class = "org-ul" >
2021-08-11 00:28:02 +02:00
< li > Figure < a href = "#org4604061" > 41< / a > : the individual transfer function from \(u_3\) (the DAC voltage for the actuator number 3) to the six encoders< / li >
< li > Figure < a href = "#org6339d1a" > 42< / a > : all the diagonal elements are compared< / li >
< li > Figure < a href = "#org9aec13c" > 43< / a > : all the off-diagonal elements are compared< / li >
2021-07-02 18:26:05 +02:00
< / ul >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org4604061" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_plates_dvf_comp_simscape_all.png" alt = "enc_plates_dvf_comp_simscape_all.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 41: < / span > DVF Plant for the first actuator input and all the encoders< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org6339d1a" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_plates_dvf_comp_simscape.png" alt = "enc_plates_dvf_comp_simscape.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 42: < / span > Diagonal elements of the DVF Plant< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org9aec13c" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_plates_dvf_comp_offdiag_simscape.png" alt = "enc_plates_dvf_comp_offdiag_simscape.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 43: < / span > Off diagonal elements of the DVF Plant< / p >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org2db7f31" class = "outline-4" >
< h4 id = "org2db7f31" > < span class = "section-number-4" > 2.2.4.< / span > Flexible Top Plate< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-2-2-4" >
2021-08-11 00:28:02 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialize Nano-Hexapod< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '2dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '3dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'struts'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > '2dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'top_plate_type'< / span > , < span class = "org-string" > 'rigid'< / span > );
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the DVF Plant (transfer function from u to dLm)< / span >
clear io; io_i = 1;
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/dL'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Encoders< / span >
Gdvf = linearize(mdl, io, 0.0, options);
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > size(Gdvf)
isstable(Gdvf)
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > [sys,g] = balreal(Gdvf); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Compute balanced realization< / span >
elim = (g< span class = "org-builtin" > < < / span > 1e< span class = "org-builtin" > -< / span > 4); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Small entries of g are negligible states< / span >
rsys = modred(sys,elim); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Remove negligible states< / span >
size(rsys)
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the IFF Plant (transfer function from u to taum)< / span >
clear io; io_i = 1;
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/Fm'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Force Sensors< / span >
Giff = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org083987d" class = "outline-4" >
< h4 id = "org083987d" > < span class = "section-number-4" > 2.2.5.< / span > Conclusion< / h4 >
< div class = "outline-text-4" id = "text-2-2-5" >
< div class = "important" id = "orgf6ff0f1" >
2021-07-02 18:26:05 +02:00
< p >
The Simscape model is quite accurate for the transfer function matrices from \(\bm{u}\) to \(\bm{\tau}_m\) and from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\) except at frequencies of the flexible modes of the top-plate.
The Simscape model can therefore be used to develop the control strategies.
< / p >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orge309141" class = "outline-3" >
< h3 id = "orge309141" > < span class = "section-number-3" > 2.3.< / span > Integral Force Feedback< / h3 >
2021-06-30 22:45:20 +02:00
< div class = "outline-text-3" id = "text-2-3" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "org3f6ceb6" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
< p >
In this section, the Integral Force Feedback (IFF) control strategy is applied to the nano-hexapod in order to add damping to the suspension modes.
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The control architecture is shown in Figure < a href = "#orgcc9c9c7" > 44< / a > :
2021-07-02 18:26:05 +02:00
< / p >
< ul class = "org-ul" >
< li > \(\bm{\tau}_m\) is the measured voltage of the 6 force sensors< / li >
< li > \(\bm{K}_{\text{IFF}}\) is the \(6 \times 6\) diagonal controller< / li >
< li > \(\bm{u}\) is the plant input (voltage generated by the 6 DACs)< / li >
< li > \(\bm{u}^\prime\) is the new plant inputs with added damping< / li >
< / ul >
2021-08-11 00:28:02 +02:00
< div id = "orgcc9c9c7" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/control_architecture_iff.png" alt = "control_architecture_iff.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 44: < / span > Integral Force Feedback Strategy< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-07-02 18:26:05 +02:00
< ul class = "org-ul" >
2021-08-11 00:28:02 +02:00
< li > Section < a href = "#org4df412c" > 2.3.1< / a > < / li >
2021-07-02 18:26:05 +02:00
< / ul >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org8dd6a19" class = "outline-4" >
< h4 id = "org8dd6a19" > < span class = "section-number-4" > 2.3.1.< / span > Effect of IFF on the plant - Simscape Model< / h4 >
2021-06-30 22:45:20 +02:00
< div class = "outline-text-4" id = "text-2-3-1" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "org4df412c" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
< p >
The nano-hexapod is initialized with flexible APA and the encoders fixed to the struts.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialize the Simscape model in closed loop< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'plates'< / span > , < span class = "org-comment" > ...< / span >
2021-07-02 18:26:05 +02:00
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > 'flexible'< / span > );
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
The same controller as the one developed when the encoder were fixed to the struts is used.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Optimal IFF controller< / span >
2021-07-02 18:26:05 +02:00
load(< span class = "org-string" > 'Kiff.mat'< / span > , < span class = "org-string" > 'Kiff'< / span > )
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
The transfer function from \(\bm{u}^\prime\) to \(d\bm{\mathcal{L}}_m\) is identified.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the (damped) transfer function from u to dLm for different values of the IFF gain< / span >
2021-06-30 22:45:20 +02:00
clear io; io_i = 1;
2021-08-11 00:28:02 +02:00
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/dL'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Plate Displacement (encoder)< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
First in Open-Loop:
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Transfer function from u to dL (open-loop)< / span >
Gd_ol = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
And then with the IFF controller:
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialize the Simscape model in closed loop< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'plates'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > 'flexible'< / span > , < span class = "org-comment" > ...< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-string" > 'controller_type'< / span > , < span class = "org-string" > 'iff'< / span > );
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-matlab-cellbreak" > %% Transfer function from u to dL (IFF)< / span >
Gd_iff = exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
It is first verified that the system is stable:
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-07-02 18:26:05 +02:00
< pre class = "src src-matlab" > isstable(Gd_iff)
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< pre class = "example" >
1
< / pre >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The diagonal and off-diagonal terms of the \(6 \times 6\) transfer function matrices identified are compared in Figure < a href = "#org410c96b" > 45< / a > .
2021-07-02 18:26:05 +02:00
It is shown, as was the case when the encoders were fixed to the struts, that the IFF control strategy is very effective in damping the suspension modes of the nano-hexapod.
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org410c96b" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_plates_iff_gains_effect_dvf_plant.png" alt = "enc_plates_iff_gains_effect_dvf_plant.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 45: < / span > Effect of the IFF control strategy on the transfer function from \(\bm{\tau}\) to \(d\bm{\mathcal{L}}_m\)< / p >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgc489575" class = "outline-4" >
< h4 id = "orgc489575" > < span class = "section-number-4" > 2.3.2.< / span > Effect of IFF on the plant - FRF< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-2-3-2" >
2021-06-30 22:45:20 +02:00
< p >
2021-07-02 18:26:05 +02:00
The IFF control strategy is experimentally implemented.
The (damped) transfer function from \(\bm{u}^\prime\) to \(d\bm{\mathcal{L}}_m\) is experimentally identified.
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
< p >
The identification data are loaded:
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Load Identification Data< / span >
2021-06-30 22:45:20 +02:00
meas_iff_plates = {};
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
meas_iff_plates(< span class = "org-matlab-math" > i< / span > ) = {load(sprintf(< span class = "org-string" > 'mat/frf_exc_iff_strut_%i_enc_plates_noise.mat'< / span > , < span class = "org-matlab-math" > i< / span > ), < span class = "org-string" > 't'< / span > , < span class = "org-string" > 'Va'< / span > , < span class = "org-string" > 'Vs'< / span > , < span class = "org-string" > 'de'< / span > , < span class = "org-string" > 'u'< / span > )};
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
And the parameters used for the transfer function estimation are defined below.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Sampling Time [s]< / span >
Ts = (meas_iff_plates{1}.t(end) < span class = "org-builtin" > -< / span > (meas_iff_plates{1}.t(1)))< span class = "org-builtin" > /< / span > (length(meas_iff_plates{1}.t)< span class = "org-builtin" > -< / span > 1);
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Hannning Windows< / span >
win = hanning(ceil(1< span class = "org-builtin" > /< / span > Ts));
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > And we get the frequency vector< / span >
[< span class = "org-builtin" > ~< / span > , f] = tfestimate(meas_iff_plates{1}.Va, meas_iff_plates{1}.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
The estimation is performed using the < code > tfestimate< / code > command.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Estimation of the transfer function matrix from u to dL when IFF is applied< / span >
2021-07-02 18:26:05 +02:00
G_enc_iff_opt = zeros(length(f), 6, 6);
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:6< / span >
G_enc_iff_opt(< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-matlab-math" > i< / span > ) = tfestimate(meas_iff_plates{< span class = "org-matlab-math" > i< / span > }.Va, meas_iff_plates{< span class = "org-matlab-math" > i< / span > }.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
2021-07-02 18:26:05 +02:00
< span class = "org-keyword" > end< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The obtained diagonal and off-diagonal elements of the transfer function from \(\bm{u}^\prime\) to \(d\bm{\mathcal{L}}_m\) are shown in Figure < a href = "#org2d4b24a" > 46< / a > both without and with IFF.
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div id = "org2d4b24a" class = "figure" >
2021-07-02 18:26:05 +02:00
< p > < img src = "figs/enc_plant_plates_effect_iff.png" alt = "enc_plant_plates_effect_iff.png" / >
< / p >
< p > < span class = "figure-number" > Figure 46: < / span > Effect of the IFF control strategy on the transfer function from \(\bm{\tau}\) to \(d\bm{\mathcal{L}}_m\)< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org1991a3d" >
2021-07-02 18:26:05 +02:00
< p >
As was predicted with the Simscape model, the IFF control strategy is very effective in damping the suspension modes of the nano-hexapod.
Little damping is also applied on the first flexible mode of the strut at 235Hz.
However, no damping is applied on other modes, such as the flexible modes of the top plate.
< / p >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org7839237" class = "outline-4" >
< h4 id = "org7839237" > < span class = "section-number-4" > 2.3.3.< / span > Comparison of the measured FRF and the Simscape model< / h4 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-4" id = "text-2-3-3" >
< p >
Let’ s now compare the obtained damped plants obtained experimentally with the one extracted from Simscape:
< / p >
< ul class = "org-ul" >
2021-08-11 00:28:02 +02:00
< li > Figure < a href = "#org21f6da0" > 47< / a > : the individual transfer function from \(u_1^\prime\) to the six encoders are comapred< / li >
< li > Figure < a href = "#orgd5d88cb" > 48< / a > : all the diagonal elements are compared< / li >
< li > Figure < a href = "#orga835af2" > 49< / a > : all the off-diagonal elements are compared< / li >
2021-07-02 18:26:05 +02:00
< / ul >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org21f6da0" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/enc_plates_opt_iff_comp_simscape_all.png" alt = "enc_plates_opt_iff_comp_simscape_all.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 47: < / span > FRF from one actuator to all the encoders when the plant is damped using IFF< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "orgd5d88cb" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/damped_iff_plates_plant_comp_diagonal.png" alt = "damped_iff_plates_plant_comp_diagonal.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 48: < / span > Comparison of the diagonal elements of the transfer functions from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\) with active damping (IFF) applied with an optimal gain \(g = 400\)< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "orga835af2" class = "figure" >
2021-06-30 22:45:20 +02:00
< p > < img src = "figs/damped_iff_plates_plant_comp_off_diagonal.png" alt = "damped_iff_plates_plant_comp_off_diagonal.png" / >
< / p >
2021-07-02 18:26:05 +02:00
< p > < span class = "figure-number" > Figure 49: < / span > Comparison of the off-diagonal elements of the transfer functions from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\) with active damping (IFF) applied with an optimal gain \(g = 400\)< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org857c052" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
From Figures < a href = "#orgd5d88cb" > 48< / a > and < a href = "#orga835af2" > 49< / a > , it is clear that the Simscape model very well represents the dynamics of the nano-hexapod.
2021-07-02 18:26:05 +02:00
This is true to around 400Hz, then the dynamics depends on the flexible modes of the top plate which are not modelled.
< / p >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org20ba5d0" class = "outline-4" >
< h4 id = "org20ba5d0" > < span class = "section-number-4" > 2.3.4.< / span > Save Damped Plant< / h4 >
2021-06-30 22:45:20 +02:00
< div class = "outline-text-4" id = "text-2-3-4" >
2021-07-02 18:26:05 +02:00
< p >
The experimentally identified plant is saved for further use.
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-07-02 18:26:05 +02:00
< pre class = "src src-matlab" > save(< span class = "org-string" > 'matlab/mat/damped_plant_enc_plates.mat'< / span > , < span class = "org-string" > 'f'< / span > , < span class = "org-string" > 'Ts'< / span > , < span class = "org-string" > 'G_enc_iff_opt'< / span > )
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< div class = "org-src-container" >
2021-07-02 18:26:05 +02:00
< pre class = "src src-matlab" > save(< span class = "org-string" > 'mat/damped_plant_enc_plates.mat'< / span > , < span class = "org-string" > 'f'< / span > , < span class = "org-string" > 'Ts'< / span > , < span class = "org-string" > 'G_enc_iff_opt'< / span > )
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgebf17b0" class = "outline-3" >
< h3 id = "orgebf17b0" > < span class = "section-number-3" > 2.4.< / span > Effect of Payload mass - Robust IFF< / h3 >
2021-06-30 22:45:20 +02:00
< div class = "outline-text-3" id = "text-2-4" >
< p >
2021-08-11 00:28:02 +02:00
< a id = "org3bcee6b" > < / a >
2021-06-30 22:45:20 +02:00
< / p >
< p >
2021-08-11 00:28:02 +02:00
In this section, the encoders are fixed to the plates, and we identify the dynamics for several payloads.
The added payload are half cylinders, and three layers can be added for a total of around 40kg (Figure < a href = "#orgbf25718" > 50< / a > ).
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orgbf25718" class = "figure" >
< p > < img src = "figs/picture_added_3_masses.jpg" alt = "picture_added_3_masses.jpg" / >
2021-06-30 22:45:20 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 50: < / span > Picture of the nano-hexapod with added mass< / p >
< / div >
2021-06-30 22:45:20 +02:00
< p >
2021-08-11 00:28:02 +02:00
First the dynamics from \(\bm{u}\) to \(d\mathcal{L}_m\) and \(\bm{\tau}_m\) is identified.
Then, the Integral Force Feedback controller is developed and applied as shown in Figure < a href = "#orga49ab4c" > 51< / a > .
Finally, the dynamics from \(\bm{u}^\prime\) to \(d\mathcal{L}_m\) is identified and the added damping can be estimated.
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orga49ab4c" class = "figure" >
< p > < img src = "figs/nano_hexapod_signals_iff.png" alt = "nano_hexapod_signals_iff.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 51: < / span > Block Diagram of the experimental setup and model< / p >
2021-07-02 18:26:05 +02:00
< / div >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org16f048f" class = "outline-4" >
< h4 id = "org16f048f" > < span class = "section-number-4" > 2.4.1.< / span > Measured Frequency Response Functions< / h4 >
< div class = "outline-text-4" id = "text-2-4-1" >
2021-07-02 18:26:05 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org9522866" class = "outline-5" >
< h5 id = "org9522866" > < span class = "section-number-5" > 2.4.1.1.< / span > Compute FRF in open-loop< / h5 >
< div class = "outline-text-5" id = "text-2-4-1-1" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The identification is performed without added mass, and with one, two and three layers of added cylinders.
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > i_masses = 0< span class = "org-builtin" > :< / span > 3;
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The following data are loaded:
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< ul class = "org-ul" >
< li > < code > Va< / code > : the excitation voltage (corresponding to \(u_i\))< / li >
< li > < code > Vs< / code > : the generated voltage by the 6 force sensors (corresponding to \(\bm{\tau}_m\))< / li >
< li > < code > de< / code > : the measured motion by the 6 encoders (corresponding to \(d\bm{\mathcal{L}}_m\))< / li >
< / ul >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Load Identification Data< / span >
meas_added_mass = {};
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > i_mass< / span > = < span class = "org-constant" > i_masses< / span >
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > i_strut< / span > = < span class = "org-constant" > 1:6< / span >
meas_added_mass(i_strut, i_mass< span class = "org-builtin" > +< / span > 1) = {load(sprintf(< span class = "org-string" > 'frf_data_exc_strut_%i_realigned_vib_table_%im.mat'< / span > , i_strut, i_mass), < span class = "org-string" > 't'< / span > , < span class = "org-string" > 'Va'< / span > , < span class = "org-string" > 'Vs'< / span > , < span class = "org-string" > 'de'< / span > )};
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The window < code > win< / code > and the frequency vector < code > f< / code > are defined.
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Sampling Time [s]< / span >
Ts = (meas_added_mass{1,1}.t(end) < span class = "org-builtin" > -< / span > (meas_added_mass{1,1}.t(1)))< span class = "org-builtin" > /< / span > (length(meas_added_mass{1,1}.t)< span class = "org-builtin" > -< / span > 1);
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Hannning Windows< / span >
win = hanning(ceil(1< span class = "org-builtin" > /< / span > Ts));
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > And we get the frequency vector< / span >
[< span class = "org-builtin" > ~< / span > , f] = tfestimate(meas_added_mass{1,1}.Va, meas_added_mass{1,1}.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
Finally the \(6 \times 6\) transfer function matrices from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\) and from \(\bm{u}\) to \(\bm{\tau}_m\) are identified:
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% DVF Plant (transfer function from u to dLm)< / span >
G_dL = {};
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > i_mass< / span > = < span class = "org-constant" > i_masses< / span >
G_dL(i_mass< span class = "org-builtin" > +< / span > 1) = {zeros(length(f), 6, 6)};
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > i_strut< / span > = < span class = "org-constant" > 1:6< / span >
G_dL{i_mass< span class = "org-builtin" > +< / span > 1}(< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ,i_strut) = tfestimate(meas_added_mass{i_strut, i_mass< span class = "org-builtin" > +< / span > 1}.Va, meas_added_mass{i_strut, i_mass< span class = "org-builtin" > +< / span > 1}.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
< span class = "org-matlab-cellbreak" > %% IFF Plant (transfer function from u to taum)< / span >
G_tau = {};
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > i_mass< / span > = < span class = "org-constant" > i_masses< / span >
G_tau(i_mass< span class = "org-builtin" > +< / span > 1) = {zeros(length(f), 6, 6)};
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > i_strut< / span > = < span class = "org-constant" > 1:6< / span >
G_tau{i_mass< span class = "org-builtin" > +< / span > 1}(< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ,i_strut) = tfestimate(meas_added_mass{i_strut, i_mass< span class = "org-builtin" > +< / span > 1}.Va, meas_added_mass{i_strut, i_mass< span class = "org-builtin" > +< / span > 1}.Vs, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-08-11 00:28:02 +02:00
< p >
The identified dynamics are then saved for further use.
2021-06-30 22:45:20 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > save(< span class = "org-string" > 'mat/frf_vib_table_m.mat'< / span > , < span class = "org-string" > 'f'< / span > , < span class = "org-string" > 'Ts'< / span > , < span class = "org-string" > 'G_tau'< / span > , < span class = "org-string" > 'G_dL'< / span > )
< / pre >
< / div >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org12266b9" class = "outline-4" >
< h4 id = "org12266b9" > < span class = "section-number-4" > 2.4.2.< / span > Transfer function from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\)< / h4 >
< div class = "outline-text-4" id = "text-2-4-2" >
2021-06-30 22:45:20 +02:00
< p >
2021-08-11 00:28:02 +02:00
The transfer functions from \(u_i\) to \(d\mathcal{L}_{m,i}\) are shown in Figure < a href = "#org4fcf960" > 52< / a > .
2021-06-30 22:45:20 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div id = "org4fcf960" class = "figure" >
< p > < img src = "figs/comp_plant_payloads_dvf.png" alt = "comp_plant_payloads_dvf.png" / >
< / p >
< p > < span class = "figure-number" > Figure 52: < / span > Measured Frequency Response Functions from \(u_i\) to \(d\mathcal{L}_{m,i}\) for all 4 payload conditions< / p >
< / div >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org946e5ab" >
< p >
From Figure < a href = "#org4fcf960" > 52< / a > , we can observe few things:
< / p >
< ul class = "org-ul" >
< li > The obtained dynamics is changing a lot between the case without mass and when there is at least one added mass.< / li >
< li > Between 1, 2 and 3 added masses, the dynamics is not much different, and it would be easier to design a controller only for these cases.< / li >
< li > The flexible modes of the top plate is first decreased a lot when the first mass is added (from 700Hz to 400Hz).
This is due to the fact that the added mass is composed of two half cylinders which are not fixed together.
Therefore is adds a lot of mass to the top plate without adding a lot of rigidity in one direction.
When more than 1 mass layer is added, the half cylinders are added with some angles such that rigidity are added in all directions (see Figure < a href = "#orgbf25718" > 50< / a > ).
In that case, the frequency of these flexible modes are increased.
In practice, the payload should be one solid body, and we should not see a massive decrease of the frequency of this flexible mode.< / li >
< li > Flexible modes of the top plate are becoming less problematic as masses are added.< / li >
< li > First flexible mode of the strut at 230Hz is not much decreased when mass is added.
However, its apparent amplitude is much decreased.< / li >
< / ul >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< / div >
< / div >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgc82608d" class = "outline-4" >
< h4 id = "orgc82608d" > < span class = "section-number-4" > 2.4.3.< / span > Transfer function from \(\bm{u}\) to \(\bm{\tau}_m\)< / h4 >
< div class = "outline-text-4" id = "text-2-4-3" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The transfer functions from \(u_i\) to \(\tau_{m,i}\) are shown in Figure < a href = "#org99930b7" > 53< / a > .
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org99930b7" class = "figure" >
< p > < img src = "figs/comp_plant_payloads_iff.png" alt = "comp_plant_payloads_iff.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 53: < / span > Measured Frequency Response Functions from \(u_i\) to \(\tau_{m,i}\) for all 4 payload conditions< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div class = "important" id = "orgea0302e" >
< p >
From Figure < a href = "#org99930b7" > 53< / a > , we can see that for all added payloads, the transfer function from \(u_i\) to \(\tau_{m,i}\) always has alternating poles and zeros.
2021-06-30 22:45:20 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< / div >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org3be7275" class = "outline-3" >
< h3 id = "org3be7275" > < span class = "section-number-3" > 2.5.< / span > Comparison with the Simscape model< / h3 >
< div class = "outline-text-3" id = "text-2-5" >
< / div >
< div id = "outline-container-org802dca8" class = "outline-4" >
< h4 id = "org802dca8" > < span class = "section-number-4" > 2.5.1.< / span > System Identification< / h4 >
< div class = "outline-text-4" id = "text-2-5-1" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
Let’ s initialize the simscape model with the nano-hexapod fixed on top of the vibration table.
2021-06-30 22:45:20 +02:00
< / p >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > support.type = 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > On top of vibration table< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The model of the nano-hexapod is defined as shown bellow:
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialize Nano-Hexapod< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '2dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '3dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'plates'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > '2dof'< / span > );
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
And finally, we add the same payloads as during the experiments:
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > payload.type = 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Payload / 1 "mass layer"< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-08-11 00:28:02 +02:00
< p >
First perform the identification for the transfer functions from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\):
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the DVF Plant (transfer function from u to dLm)< / span >
clear io; io_i = 1;
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/dL'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Encoders< / span >
< span class = "org-matlab-cellbreak" > %% Identification for all the added payloads< / span >
G_dL = {};
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > i_masses< / span >
fprintf(< span class = "org-string" > 'i = %i\n'< / span > , < span class = "org-matlab-math" > i< / span > )
payload.type = < span class = "org-matlab-math" > i< / span > ;
G_dL(< span class = "org-matlab-math" > i< / span > < span class = "org-builtin" > +< / span > 1) = {exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > frf_ol.Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options)};
< span class = "org-keyword" > end< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the IFF Plant (transfer function from u to taum)< / span >
clear io; io_i = 1;
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/Fm'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Force Sensors< / span >
< span class = "org-matlab-cellbreak" > %% Identification for all the added payloads< / span >
G_tau = {};
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 0:3< / span >
fprintf(< span class = "org-string" > 'i = %i\n'< / span > , < span class = "org-matlab-math" > i< / span > )
payload.type = < span class = "org-matlab-math" > i< / span > ;
G_tau(< span class = "org-matlab-math" > i< / span > < span class = "org-builtin" > +< / span > 1) = {exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > frf_ol.Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options)};
2021-07-02 18:26:05 +02:00
< span class = "org-keyword" > end< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The identified dynamics are then saved for further use.
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > save(< span class = "org-string" > 'mat/sim_vib_table_m.mat'< / span > , < span class = "org-string" > 'G_tau'< / span > , < span class = "org-string" > 'G_dL'< / span > )
< / pre >
2021-07-02 18:26:05 +02:00
< / div >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org9ea98d0" class = "outline-4" >
< h4 id = "org9ea98d0" > < span class = "section-number-4" > 2.5.2.< / span > Transfer function from \(\bm{u}\) to \(d\bm{\mathcal{L}}_m\)< / h4 >
< div class = "outline-text-4" id = "text-2-5-2" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The measured FRF and the identified dynamics from \(u_i\) to \(d\mathcal{L}_{m,i}\) are compared in Figure < a href = "#org390243d" > 54< / a > .
A zoom near the “ suspension” modes is shown in Figure < a href = "#org646669f" > 55< / a > .
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div id = "org390243d" class = "figure" >
< p > < img src = "figs/comp_masses_model_exp_dvf.png" alt = "comp_masses_model_exp_dvf.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 54: < / span > Comparison of the transfer functions from \(u_i\) to \(d\mathcal{L}_{m,i}\) - measured FRF and identification from the Simscape model< / p >
< / div >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org646669f" class = "figure" >
< p > < img src = "figs/comp_masses_model_exp_dvf_zoom.png" alt = "comp_masses_model_exp_dvf_zoom.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 55: < / span > Comparison of the transfer functions from \(u_i\) to \(d\mathcal{L}_{m,i}\) - measured FRF and identification from the Simscape model (Zoom)< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org6910c42" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The Simscape model is very accurately representing the measured dynamics up.
Only the flexible modes of the struts and of the top plate are not represented here as these elements are modelled as rigid bodies.
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< / div >
2021-07-02 18:26:05 +02:00
< / div >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orga7ec239" class = "outline-4" >
< h4 id = "orga7ec239" > < span class = "section-number-4" > 2.5.3.< / span > Transfer function from \(\bm{u}\) to \(\bm{\tau}_m\)< / h4 >
< div class = "outline-text-4" id = "text-2-5-3" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The measured FRF and the identified dynamics from \(u_i\) to \(\tau_{m,i}\) are compared in Figure < a href = "#org064f4e4" > 56< / a > .
A zoom near the “ suspension” modes is shown in Figure < a href = "#org138befb" > 57< / a > .
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org064f4e4" class = "figure" >
< p > < img src = "figs/comp_masses_model_exp_iff.png" alt = "comp_masses_model_exp_iff.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 56: < / span > Comparison of the transfer functions from \(u_i\) to \(\tau_{m,i}\) - measured FRF and identification from the Simscape model< / p >
2021-07-02 18:26:05 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org138befb" class = "figure" >
< p > < img src = "figs/comp_masses_model_exp_iff_zoom.png" alt = "comp_masses_model_exp_iff_zoom.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 57: < / span > Comparison of the transfer functions from \(u_i\) to \(\tau_{m,i}\) - measured FRF and identification from the Simscape model (Zoom)< / p >
< / div >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgdf62632" class = "outline-3" >
< h3 id = "orgdf62632" > < span class = "section-number-3" > 2.6.< / span > Integral Force Feedback Controller< / h3 >
< div class = "outline-text-3" id = "text-2-6" >
< / div >
< div id = "outline-container-orgc38f0c5" class = "outline-4" >
< h4 id = "orgc38f0c5" > < span class = "section-number-4" > 2.6.1.< / span > Robust IFF Controller< / h4 >
< div class = "outline-text-4" id = "text-2-6-1" >
2021-06-30 22:45:20 +02:00
< p >
2021-08-11 00:28:02 +02:00
Based on the measured FRF from \(u_i\) to \(\tau_{m,i}\), the following IFF controller is developed:
2021-06-30 22:45:20 +02:00
< / p >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% IFF Controller< / span >
Kiff_g1 = (1< span class = "org-builtin" > /< / span > (s < span class = "org-builtin" > +< / span > 2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > 20))< span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % LPF: provides integral action above 20[Hz]< / span >
(s< span class = "org-builtin" > /< / span > (s < span class = "org-builtin" > +< / span > 2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > 20))< span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % HPF: limit low frequency gain< / span >
(1< span class = "org-builtin" > /< / span > (1 < span class = "org-builtin" > +< / span > s< span class = "org-builtin" > /< / span > 2< span class = "org-builtin" > /< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > /< / span > 400)); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > LPF: more robust to high frequency resonances< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
Then, the Root Locus plot of Figure < a href = "#orgb3e2401" > 58< / a > is used to estimate the optimal gain.
This Root Locus plot is computed from the Simscape model.
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div id = "orgb3e2401" class = "figure" >
< p > < img src = "figs/iff_root_locus_masses.png" alt = "iff_root_locus_masses.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 58: < / span > Root Locus for the IFF control strategy (for all payload conditions).< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The found optimal IFF controller is:
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Optimal controller< / span >
g_opt = < span class = "org-builtin" > -< / span > 2e2;
Kiff = g_opt< span class = "org-builtin" > *< / span > Kiff_g1< span class = "org-builtin" > *< / span > eye(6);
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
It is saved for further use.
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > save(< span class = "org-string" > 'mat/Kiff_opt.mat'< / span > , < span class = "org-string" > 'Kiff'< / span > )
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The corresponding experimental loop gains are shown in Figure < a href = "#orgcdbc023" > 59< / a > .
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orgcdbc023" class = "figure" >
< p > < img src = "figs/iff_loop_gain_masses.png" alt = "iff_loop_gain_masses.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 59: < / span > Loop gain for the Integral Force Feedback controller< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org8c662f0" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
Based on the above analysis:
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< ul class = "org-ul" >
< li > The same IFF controller can be used to damp the suspension modes for all payload conditions< / li >
< li > The IFF controller should be robust< / li >
< / ul >
2021-06-30 22:45:20 +02:00
2021-07-02 18:26:05 +02:00
< / div >
< / div >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgd57b870" class = "outline-4" >
< h4 id = "orgd57b870" > < span class = "section-number-4" > 2.6.2.< / span > Estimated Damped Plant from the Simscape model< / h4 >
< div class = "outline-text-4" id = "text-2-6-2" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
Let’ s initialize the simscape model with the nano-hexapod fixed on top of the vibration table.
2021-06-30 22:45:20 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > support.type = 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > On top of vibration table< / span >
< / pre >
2021-06-30 22:45:20 +02:00
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The model of the nano-hexapod is defined as shown bellow:
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialize the Simscape model in closed loop< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '2dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '3dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'plates'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > '2dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'controller_type'< / span > , < span class = "org-string" > 'iff'< / span > );
< / pre >
< / div >
2021-06-30 22:45:20 +02:00
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
And finally, we add the same payloads as during the experiments:
2021-06-30 22:45:20 +02:00
< / p >
2021-07-02 18:26:05 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > payload.type = 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Payload / 1 "mass layer"< / span >
< / pre >
< / div >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the (damped) transfer function from u to dLm< / span >
clear io; io_i = 1;
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/dL'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Plate Displacement (encoder)< / span >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-matlab-cellbreak" > %% Identify for all add masses< / span >
G_dL = {};
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > i_masses< / span >
payload.type = < span class = "org-matlab-math" > i< / span > ;
G_dL(< span class = "org-matlab-math" > i< / span > < span class = "org-builtin" > +< / span > 1) = {exp(< span class = "org-builtin" > -< / span > s< span class = "org-builtin" > *< / span > frf_ol.Ts)< span class = "org-builtin" > *< / span > linearize(mdl, io, 0.0, options)};
< span class = "org-keyword" > end< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
The identified dynamics are then saved for further use.
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > save(< span class = "org-string" > 'mat/sim_iff_vib_table_m.mat'< / span > , < span class = "org-string" > 'G_dL'< / span > );
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-08-11 00:28:02 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > sim_iff = load(< span class = "org-string" > 'sim_iff_vib_table_m.mat'< / span > , < span class = "org-string" > 'G_dL'< / span > );
< / pre >
< / div >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org10d9dc0" class = "figure" >
< p > < img src = "figs/damped_plant_model_masses.png" alt = "damped_plant_model_masses.png" / >
2021-06-30 22:45:20 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 60: < / span > Transfer function from \(u_i\) to \(d\mathcal{L}_{m,i}\) (without active damping) and from \(u^\prime_i\) to \(d\mathcal{L}_{m,i}\) (with IFF)< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-org5a28a14" class = "outline-4" >
< h4 id = "org5a28a14" > < span class = "section-number-4" > 2.6.3.< / span > Compute the identified FRF with IFF< / h4 >
< div class = "outline-text-4" id = "text-2-6-3" >
< p >
The identification is performed without added mass, and with one, two and three layers of added cylinders.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > i_masses = 0< span class = "org-builtin" > :< / span > 3;
< / pre >
< / div >
< p >
The following data are loaded:
< / p >
< ul class = "org-ul" >
< li > < code > Va< / code > : the excitation voltage for the damped plant (corresponding to \(u^\prime_i\))< / li >
< li > < code > de< / code > : the measured motion by the 6 encoders (corresponding to \(d\bm{\mathcal{L}}_m\))< / li >
< / ul >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Load Identification Data< / span >
meas_added_mass = {};
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > i_mass< / span > = < span class = "org-constant" > i_masses< / span >
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > i_strut< / span > = < span class = "org-constant" > 1:6< / span >
meas_iff_mass(i_strut, i_mass< span class = "org-builtin" > +< / span > 1) = {load(sprintf(< span class = "org-string" > 'frf_data_exc_strut_%i_iff_vib_table_%im.mat'< / span > , i_strut, i_mass), < span class = "org-string" > 't'< / span > , < span class = "org-string" > 'Va'< / span > , < span class = "org-string" > 'de'< / span > )};
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< p >
The window < code > win< / code > and the frequency vector < code > f< / code > are defined.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Sampling Time [s]< / span >
Ts = (meas_iff_mass{1,1}.t(end) < span class = "org-builtin" > -< / span > (meas_iff_mass{1,1}.t(1)))< span class = "org-builtin" > /< / span > (length(meas_iff_mass{1,1}.t)< span class = "org-builtin" > -< / span > 1);
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Hannning Windows< / span >
win = hanning(ceil(1< span class = "org-builtin" > /< / span > Ts));
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > And we get the frequency vector< / span >
[< span class = "org-builtin" > ~< / span > , f] = tfestimate(meas_iff_mass{1,1}.Va, meas_iff_mass{1,1}.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
< / pre >
< / div >
< p >
Finally the \(6 \times 6\) transfer function matrix from \(\bm{u}^\prime\) to \(d\bm{\mathcal{L}}_m\) is estimated:
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% DVF Plant (transfer function from u to dLm)< / span >
G_dL = {};
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > i_mass< / span > = < span class = "org-constant" > i_masses< / span >
G_dL(i_mass< span class = "org-builtin" > +< / span > 1) = {zeros(length(f), 6, 6)};
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > i_strut< / span > = < span class = "org-constant" > 1:6< / span >
G_dL{i_mass< span class = "org-builtin" > +< / span > 1}(< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ,i_strut) = tfestimate(meas_iff_mass{i_strut, i_mass< span class = "org-builtin" > +< / span > 1}.Va, meas_iff_mass{i_strut, i_mass< span class = "org-builtin" > +< / span > 1}.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< p >
The identified dynamics are then saved for further use.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > save(< span class = "org-string" > 'mat/frf_iff_vib_table_m.mat'< / span > , < span class = "org-string" > 'f'< / span > , < span class = "org-string" > 'Ts'< / span > , < span class = "org-string" > 'G_dL'< / span > );
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org4428186" class = "outline-4" >
< h4 id = "org4428186" > < span class = "section-number-4" > 2.6.4.< / span > Comparison of the measured FRF and the Simscape model< / h4 >
< div class = "outline-text-4" id = "text-2-6-4" >
< p >
The following figures are computed:
< / p >
< ul class = "org-ul" >
< li > Figure < a href = "#org7397657" > 61< / a > : the measured damped FRF are displayed< / li >
< li > Figure < a href = "#orgf9dced7" > 62< / a > : the open-loop and damped FRF are compared (diagonal elements)< / li >
< li > Figure < a href = "#org4758ed6" > 63< / a > : the obtained damped FRF is compared with the identified damped from using the Simscape model< / li >
< / ul >
< div id = "org7397657" class = "figure" >
< p > < img src = "figs/damped_iff_plant_meas_frf.png" alt = "damped_iff_plant_meas_frf.png" / >
< / p >
< p > < span class = "figure-number" > Figure 61: < / span > Diagonal and off-diagonal of the measured FRF matrix for the damped plant< / p >
< / div >
< div id = "orgf9dced7" class = "figure" >
< p > < img src = "figs/comp_undamped_damped_plant_meas_frf.png" alt = "comp_undamped_damped_plant_meas_frf.png" / >
< / p >
< p > < span class = "figure-number" > Figure 62: < / span > Damped and Undamped measured FRF (diagonal elements)< / p >
< / div >
< div id = "org4758ed6" class = "figure" >
< p > < img src = "figs/comp_iff_plant_frf_sim.png" alt = "comp_iff_plant_frf_sim.png" / >
< / p >
< p > < span class = "figure-number" > Figure 63: < / span > Comparison of the measured FRF and the identified dynamics from the Simscape model< / p >
< / div >
< div class = "important" id = "orge8a3781" >
< p >
The IFF control strategy effectively damps all the suspensions modes of the nano-hexapod whatever the payload is.
The obtained plant is easier to control (provided the flexible modes of the top platform are well damped).
< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-orga655da4" class = "outline-4" >
< h4 id = "orga655da4" > < span class = "section-number-4" > 2.6.5.< / span > Change of coupling with IFF< / h4 >
< div class = "outline-text-4" id = "text-2-6-5" >
< p >
The added damping using IFF reduces the coupling in the system near the suspensions modes that are damped.
It can be estimated by taking the ratio of the diagonal-term and the off-diagonal term.
< / p >
< p >
This is shown in Figure < a href = "#org93915d4" > 64< / a > .
< / p >
< div id = "org93915d4" class = "figure" >
< p > < img src = "figs/reduced_coupling_iff_masses.png" alt = "reduced_coupling_iff_masses.png" / >
< / p >
< p > < span class = "figure-number" > Figure 64: < / span > Comparison of the coupling with and without IFF< / p >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-org1635da4" class = "outline-3" >
< h3 id = "org1635da4" > < span class = "section-number-3" > 2.7.< / span > Un-Balanced mass< / h3 >
< div class = "outline-text-3" id = "text-2-7" >
< / div >
< div id = "outline-container-org40ee3db" class = "outline-4" >
< h4 id = "org40ee3db" > < span class = "section-number-4" > 2.7.1.< / span > Introduction< / h4 >
< div class = "outline-text-4" id = "text-2-7-1" >
< div id = "org5e4192f" class = "figure" >
< p > < img src = "figs/picture_unbalanced_payload.jpg" alt = "picture_unbalanced_payload.jpg" / >
< / p >
< p > < span class = "figure-number" > Figure 65: < / span > Nano-Hexapod with unbalanced payload< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-org63b837f" class = "outline-4" >
< h4 id = "org63b837f" > < span class = "section-number-4" > 2.7.2.< / span > Compute the identified FRF with IFF< / h4 >
< div class = "outline-text-4" id = "text-2-7-2" >
< p >
The following data are loaded:
< / p >
< ul class = "org-ul" >
< li > < code > Va< / code > : the excitation voltage for the damped plant (corresponding to \(u^\prime_i\))< / li >
< li > < code > de< / code > : the measured motion by the 6 encoders (corresponding to \(d\bm{\mathcal{L}}_m\))< / li >
< / ul >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Load Identification Data< / span >
meas_added_mass = {zeros(6,1)};
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > i_strut< / span > = < span class = "org-constant" > 1:6< / span >
meas_iff_mass(i_strut) = {load(sprintf(< span class = "org-string" > 'frf_data_exc_strut_%i_iff_vib_table_1m_unbalanced.mat'< / span > , i_strut), < span class = "org-string" > 't'< / span > , < span class = "org-string" > 'Va'< / span > , < span class = "org-string" > 'de'< / span > )};
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< p >
The window < code > win< / code > and the frequency vector < code > f< / code > are defined.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Sampling Time [s]< / span >
Ts = (meas_iff_mass{1}.t(end) < span class = "org-builtin" > -< / span > (meas_iff_mass{1}.t(1)))< span class = "org-builtin" > /< / span > (length(meas_iff_mass{1}.t)< span class = "org-builtin" > -< / span > 1);
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Hannning Windows< / span >
win = hanning(ceil(1< span class = "org-builtin" > /< / span > Ts));
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > And we get the frequency vector< / span >
[< span class = "org-builtin" > ~< / span > , f] = tfestimate(meas_iff_mass{1}.Va, meas_iff_mass{1}.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
< / pre >
< / div >
< p >
Finally the \(6 \times 6\) transfer function matrix from \(\bm{u}^\prime\) to \(d\bm{\mathcal{L}}_m\) is estimated:
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% DVF Plant (transfer function from u to dLm)< / span >
G_dL = zeros(length(f), 6, 6);
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > i_strut< / span > = < span class = "org-constant" > 1:6< / span >
G_dL(< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ,i_strut) = tfestimate(meas_iff_mass{i_strut}.Va, meas_iff_mass{i_strut}.de, win, [], [], 1< span class = "org-builtin" > /< / span > Ts);
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< p >
The identified dynamics are then saved for further use.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > save(< span class = "org-string" > 'mat/frf_iff_unbalanced_vib_table_m.mat'< / span > , < span class = "org-string" > 'f'< / span > , < span class = "org-string" > 'Ts'< / span > , < span class = "org-string" > 'G_dL'< / span > );
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-orgeb31df7" class = "outline-4" >
< h4 id = "orgeb31df7" > < span class = "section-number-4" > 2.7.3.< / span > Effect of an unbalanced payload< / h4 >
< div class = "outline-text-4" id = "text-2-7-3" >
< p >
The transfer functions from \(u_i\) to \(d\mathcal{L}_i\) are shown in Figure < a href = "#orgc6659ef" > 66< / a > .
Due to the unbalanced payload, the system is not symmetrical anymore, and therefore each of the diagonal elements are not equal.
This is due to the fact that each strut is not affected by the same inertia.
< / p >
< div id = "orgc6659ef" class = "figure" >
< p > < img src = "figs/frf_damp_unbalanced_mass.png" alt = "frf_damp_unbalanced_mass.png" / >
< / p >
< p > < span class = "figure-number" > Figure 66: < / span > Transfer function from \(u_i\) to \(d\mathcal{L}_i\) for the nano-hexapod with an unbalanced payload< / p >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-org9054d1f" class = "outline-3" >
< h3 id = "org9054d1f" > < span class = "section-number-3" > 2.8.< / span > Conclusion< / h3 >
< div class = "outline-text-3" id = "text-2-8" >
< div class = "important" id = "orgd6b0d20" >
< p >
In this section, the dynamics of the nano-hexapod with the encoders fixed to the plates is studied.
< / p >
< p >
It has been found that:
< / p >
< ul class = "org-ul" >
< li > The measured dynamics is in agreement with the dynamics of the simscape model, up to the flexible modes of the top plate.
See figures < a href = "#orga37527b" > 39< / a > and < a href = "#orgeae1d12" > 40< / a > for the transfer function to the force sensors and Figures < a href = "#org6339d1a" > 42< / a > and < a href = "#org9aec13c" > 43< / a > for the transfer functions to the encoders< / li >
< li > The Integral Force Feedback strategy is very effective in damping the suspension modes of the nano-hexapod (Figure < a href = "#org2d4b24a" > 46< / a > ).< / li >
< li > The transfer function from \(\bm{u}^\prime\) to \(d\bm{\mathcal{L}}_m\) show nice dynamical properties and is a much better candidate for the high-authority-control than when the encoders were fixed to the struts.
At least up to the flexible modes of the top plate, the diagonal elements of the transfer function matrix have alternating poles and zeros, and the phase is moving smoothly.
Only the flexible modes of the top plates seems to be problematic for control.< / li >
< / ul >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-org2b937bc" class = "outline-2" >
< h2 id = "org2b937bc" > < span class = "section-number-2" > 3.< / span > Decentralized High Authority Control with Integral Force Feedback< / h2 >
< div class = "outline-text-2" id = "text-3" >
< p >
< a id = "org68c77df" > < / a >
< / p >
< p >
In this section is studied the HAC-IFF architecture for the Nano-Hexapod.
More precisely:
< / p >
< ul class = "org-ul" >
< li > The LAC control is a decentralized integral force feedback as studied in Section < a href = "#org3f6ceb6" > 2.3< / a > < / li >
< li > The HAC control is a decentralized controller working in the frame of the struts< / li >
< / ul >
< p >
The corresponding control architecture is shown in Figure < a href = "#org952107b" > 67< / a > with:
< / p >
< ul class = "org-ul" >
< li > \(\bm{r}_{\mathcal{X}_n}\): the \(6 \times 1\) reference signal in the cartesian frame< / li >
< li > \(\bm{r}_{d\mathcal{L}}\): the \(6 \times 1\) reference signal transformed in the frame of the struts thanks to the inverse kinematic< / li >
< li > \(\bm{\epsilon}_{d\mathcal{L}}\): the \(6 \times 1\) length error of the 6 struts< / li >
< li > \(\bm{u}^\prime\): input of the damped plant< / li >
< li > \(\bm{u}\): generated DAC voltages< / li >
< li > \(\bm{\tau}_m\): measured force sensors< / li >
< li > \(d\bm{\mathcal{L}}_m\): measured displacement of the struts by the encoders< / li >
< / ul >
< div id = "org952107b" class = "figure" >
< p > < img src = "figs/control_architecture_hac_iff_struts.png" alt = "control_architecture_hac_iff_struts.png" / >
< / p >
< p > < span class = "figure-number" > Figure 67: < / span > HAC-LAC: IFF + Control in the frame of the legs< / p >
< / div >
< p >
This part is structured as follow:
< / p >
< ul class = "org-ul" >
< li > Section < a href = "#org1790d56" > 3.1< / a > : some reference tracking tests are performed< / li >
< li > Section < a href = "#orgeca86cc" > 3.2< / a > : the decentralized high authority controller is tuned using the Simscape model and is implemented and tested experimentally< / li >
< li > Section < a href = "#org41830f2" > 3.3< / a > : an interaction analysis is performed, from which the best decoupling strategy can be determined< / li >
< li > Section < a href = "#org69c1b49" > 3.4< / a > : Robust High Authority Controller are designed< / li >
< / ul >
< / div >
< div id = "outline-container-org9a35a39" class = "outline-3" >
< h3 id = "org9a35a39" > < span class = "section-number-3" > 3.1.< / span > Reference Tracking - Trajectories< / h3 >
< div class = "outline-text-3" id = "text-3-1" >
< p >
< a id = "org1790d56" > < / a >
< / p >
< p >
In this section, several trajectories representing the wanted pose (position and orientation) of the top platform with respect to the bottom platform are defined.
< / p >
< p >
These trajectories will be used to test the HAC-LAC architecture.
< / p >
< p >
In order to transform the wanted pose to the wanted displacement of the 6 struts, the inverse kinematic is required.
As a first approximation, the Jacobian matrix \(\bm{J}\) can be used instead of using the full inverse kinematic equations.
< / p >
< p >
Therefore, the control architecture with the input trajectory \(\bm{r}_{\mathcal{X}_n}\) is shown in Figure < a href = "#orgcc1e1c0" > 68< / a > .
< / p >
< div id = "orgcc1e1c0" class = "figure" >
< p > < img src = "figs/control_architecture_hac_iff_struts_L.png" alt = "control_architecture_hac_iff_struts_L.png" / >
< / p >
< p > < span class = "figure-number" > Figure 68: < / span > HAC-LAC: IFF + Control in the frame of the legs< / p >
< / div >
< p >
In the following sections, several reference trajectories are defined:
< / p >
< ul class = "org-ul" >
< li > Section < a href = "#org63d9440" > 3.1.1< / a > : simple scans in the Y-Z plane< / li >
< li > Section < a href = "#org6573515" > 3.1.2< / a > : scans in tilt are performed< / li >
< li > Section < a href = "#org702ce17" > 3.1.3< / a > : scans with X-Y-Z translations in order to draw the word “ NASS” < / li >
< / ul >
< / div >
< div id = "outline-container-orgfef5e8a" class = "outline-4" >
< h4 id = "orgfef5e8a" > < span class = "section-number-4" > 3.1.1.< / span > Y-Z Scans< / h4 >
< div class = "outline-text-4" id = "text-3-1-1" >
< p >
< a id = "org63d9440" > < / a >
A function < code > generateYZScanTrajectory< / code > has been developed (accessible < a href = "#org7e187da" > here< / a > ) in order to easily generate scans in the Y-Z plane.
< / p >
< p >
For instance, the following generated trajectory is represented in Figure < a href = "#org1d2ed66" > 69< / a > .
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Generate the Y-Z trajectory scan< / span >
Rx_yz = generateYZScanTrajectory(< span class = "org-comment" > ...< / span >
< span class = "org-string" > 'y_tot'< / span > , 4e< span class = "org-builtin" > -< / span > 6, < span class = "org-comment" > ... % Length of Y scans [m]< / span >
< span class = "org-string" > 'z_tot'< / span > , 4e< span class = "org-builtin" > -< / span > 6, < span class = "org-comment" > ... % Total Z distance [m]< / span >
< span class = "org-string" > 'n'< / span > , 5, < span class = "org-comment" > ... % Number of Y scans< / span >
< span class = "org-string" > 'Ts'< / span > , 1e< span class = "org-builtin" > -< / span > 3, < span class = "org-comment" > ... % Sampling Time [s]< / span >
< span class = "org-string" > 'ti'< / span > , 1, < span class = "org-comment" > ... % Time to go to initial position [s]< / span >
< span class = "org-string" > 'tw'< / span > , 0, < span class = "org-comment" > ... % Waiting time between each points [s]< / span >
< span class = "org-string" > 'ty'< / span > , 0.6, < span class = "org-comment" > ... % Time for a scan in Y [s]< / span >
< span class = "org-string" > 'tz'< / span > , 0.2); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Time for a scan in Z [s]< / span >
< / pre >
< / div >
< div id = "org1d2ed66" class = "figure" >
< p > < img src = "figs/yz_scan_example_trajectory_yz_plane.png" alt = "yz_scan_example_trajectory_yz_plane.png" / >
< / p >
< p > < span class = "figure-number" > Figure 69: < / span > Generated scan in the Y-Z plane< / p >
< / div >
< p >
The Y and Z positions as a function of time are shown in Figure < a href = "#org57baec7" > 70< / a > .
< / p >
< div id = "org57baec7" class = "figure" >
< p > < img src = "figs/yz_scan_example_trajectory.png" alt = "yz_scan_example_trajectory.png" / >
< / p >
< p > < span class = "figure-number" > Figure 70: < / span > Y and Z trajectories as a function of time< / p >
< / div >
< p >
Using the Jacobian matrix, it is possible to compute the wanted struts lengths as a function of time:
< / p >
\begin{equation}
\bm{r}_{d\mathcal{L}} = \bm{J} \bm{r}_{\mathcal{X}_n}
\end{equation}
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Compute the reference in the frame of the legs< / span >
dL_ref = [J< span class = "org-builtin" > *< / span > Rx_yz(< span class = "org-builtin" > :< / span > , 2< span class = "org-builtin" > :< / span > 7)< span class = "org-builtin" > '< / span > ]< span class = "org-builtin" > '< / span > ;
< / pre >
< / div >
< p >
The reference signal for the strut length is shown in Figure < a href = "#orgf626d16" > 71< / a > .
< / p >
< div id = "orgf626d16" class = "figure" >
< p > < img src = "figs/yz_scan_example_trajectory_struts.png" alt = "yz_scan_example_trajectory_struts.png" / >
< / p >
< p > < span class = "figure-number" > Figure 71: < / span > Trajectories for the 6 individual struts< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-orgcfb49fe" class = "outline-4" >
< h4 id = "orgcfb49fe" > < span class = "section-number-4" > 3.1.2.< / span > Tilt Scans< / h4 >
< div class = "outline-text-4" id = "text-3-1-2" >
< p >
< a id = "org6573515" > < / a >
< / p >
< p >
A function < code > generalSpiralAngleTrajectory< / code > has been developed in order to easily generate \(R_x,R_y\) tilt scans.
< / p >
< p >
For instance, the following generated trajectory is represented in Figure < a href = "#orgc88404e" > 72< / a > .
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Generate the "tilt-spiral" trajectory scan< / span >
R_tilt = generateSpiralAngleTrajectory(< span class = "org-comment" > ...< / span >
< span class = "org-string" > 'R_tot'< / span > , 20e< span class = "org-builtin" > -< / span > 6, < span class = "org-comment" > ... % Total Tilt [ad]< / span >
< span class = "org-string" > 'n_turn'< / span > , 5, < span class = "org-comment" > ... % Number of scans< / span >
< span class = "org-string" > 'Ts'< / span > , 1e< span class = "org-builtin" > -< / span > 3, < span class = "org-comment" > ... % Sampling Time [s]< / span >
< span class = "org-string" > 't_turn'< / span > , 1, < span class = "org-comment" > ... % Turn time [s]< / span >
< span class = "org-string" > 't_end'< / span > , 1); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > End time to go back to zero [s]< / span >
< / pre >
< / div >
< div id = "orgc88404e" class = "figure" >
< p > < img src = "figs/tilt_scan_example_trajectory.png" alt = "tilt_scan_example_trajectory.png" / >
< / p >
< p > < span class = "figure-number" > Figure 72: < / span > Generated “ spiral” scan< / p >
< / div >
< p >
The reference signal for the strut length is shown in Figure < a href = "#org47d257f" > 73< / a > .
< / p >
< div id = "org47d257f" class = "figure" >
< p > < img src = "figs/tilt_scan_example_trajectory_struts.png" alt = "tilt_scan_example_trajectory_struts.png" / >
< / p >
< p > < span class = "figure-number" > Figure 73: < / span > Trajectories for the 6 individual struts - Tilt scan< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-orgca342bd" class = "outline-4" >
< h4 id = "orgca342bd" > < span class = "section-number-4" > 3.1.3.< / span > “ NASS” reference path< / h4 >
< div class = "outline-text-4" id = "text-3-1-3" >
< p >
< a id = "org702ce17" > < / a >
In this section, a reference path that “ draws” the work “ NASS” is developed.
< / p >
< p >
First, a series of points representing each letter are defined.
Between each letter, a negative Z motion is performed.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% List of points that draws "NASS"< / span >
ref_path = [ < span class = "org-comment" > ...< / span >
0, 0,0; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Initial Position< / span >
0,0,1; 0,4,1; 3,0,1; 3,4,1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > N< / span >
3,4,0; 4,0,0; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Transition< / span >
4,0,1; 4,3,1; 5,4,1; 6,4,1; 7,3,1; 7,2,1; 4,2,1; 4,3,1; 5,4,1; 6,4,1; 7,3,1; 7,0,1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > A< / span >
7,0,0; 8,0,0; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Transition< / span >
8,0,1; 11,0,1; 11,2,1; 8,2,1; 8,4,1; 11,4,1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > S< / span >
11,4,0; 12,0,0; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Transition< / span >
12,0,1; 15,0,1; 15,2,1; 12,2,1; 12,4,1; 15,4,1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > S< / span >
15,4,0;
];
< span class = "org-matlab-cellbreak" > %% Center the trajectory arround zero< / span >
ref_path = ref_path < span class = "org-builtin" > -< / span > (max(ref_path) < span class = "org-builtin" > -< / span > min(ref_path))< span class = "org-builtin" > /< / span > 2;
< span class = "org-matlab-cellbreak" > %% Define the X-Y-Z cuboid dimensions containing the trajectory< / span >
X_max = 10e< span class = "org-builtin" > -< / span > 6;
Y_max = 4e< span class = "org-builtin" > -< / span > 6;
Z_max = 2e< span class = "org-builtin" > -< / span > 6;
ref_path = ([X_max, Y_max, Z_max]< span class = "org-builtin" > ./< / span > max(ref_path))< span class = "org-builtin" > .*< / span > ref_path; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [m]< / span >
< / pre >
< / div >
< p >
Then, using the < code > generateXYZTrajectory< / code > function, the \(6 \times 1\) trajectory signal is computed.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Generating the trajectory< / span >
Rx_nass = generateXYZTrajectory(< span class = "org-string" > 'points'< / span > , ref_path);
< / pre >
< / div >
< p >
The trajectory in the X-Y plane is shown in Figure < a href = "#orgc6afbce" > 74< / a > (the transitions between the letters are removed).
< / p >
< div id = "orgc6afbce" class = "figure" >
< p > < img src = "figs/ref_track_test_nass.png" alt = "ref_track_test_nass.png" / >
< / p >
< p > < span class = "figure-number" > Figure 74: < / span > Reference path corresponding to the “ NASS” acronym< / p >
< / div >
< p >
It can also be better viewed in a 3D representation as in Figure < a href = "#org911c5c8" > 75< / a > .
< / p >
< div id = "org911c5c8" class = "figure" >
< p > < img src = "figs/ref_track_test_nass_3d.png" alt = "ref_track_test_nass_3d.png" / >
< / p >
< p > < span class = "figure-number" > Figure 75: < / span > Reference path that draws “ NASS” - 3D view< / p >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-org0d4acf2" class = "outline-3" >
< h3 id = "org0d4acf2" > < span class = "section-number-3" > 3.2.< / span > First Basic High Authority Controller< / h3 >
< div class = "outline-text-3" id = "text-3-2" >
< p >
< a id = "orgeca86cc" > < / a >
< / p >
< p >
In this section, a simple decentralized high authority controller \(\bm{K}_{\mathcal{L}}\) is developed to work without any payload.
< / p >
< p >
The diagonal controller is tuned using classical Loop Shaping in Section < a href = "#orgafff5c1" > 3.2.1< / a > .
The stability is verified in Section < a href = "#org8402a80" > 3.2.2< / a > using the Simscape model.
< / p >
< / div >
< div id = "outline-container-org00e6da4" class = "outline-4" >
< h4 id = "org00e6da4" > < span class = "section-number-4" > 3.2.1.< / span > HAC Controller< / h4 >
< div class = "outline-text-4" id = "text-3-2-1" >
< p >
< a id = "orgafff5c1" > < / a >
< / p >
< p >
Let’ s first try to design a first decentralized controller with:
< / p >
< ul class = "org-ul" >
< li > a bandwidth of 100Hz< / li >
< li > sufficient phase margin< / li >
< li > simple and understandable components< / li >
< / ul >
< p >
After some very basic and manual loop shaping, A diagonal controller is developed.
Each diagonal terms are identical and are composed of:
< / p >
< ul class = "org-ul" >
< li > A lead around 100Hz< / li >
< li > A first order low pass filter starting at 200Hz to add some robustness to high frequency modes< / li >
< li > A notch at 700Hz to cancel the flexible modes of the top plate< / li >
< li > A pure integrator< / li >
< / ul >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Lead to increase phase margin< / span >
a = 2; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Amount of phase lead / width of the phase lead / high frequency gain< / span >
wc = 2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > 100; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Frequency with the maximum phase lead [rad/s]< / span >
H_lead = (1 < span class = "org-builtin" > +< / span > s< span class = "org-builtin" > /< / span > (wc< span class = "org-builtin" > /< / span > sqrt(a)))< span class = "org-builtin" > /< / span > (1 < span class = "org-builtin" > +< / span > s< span class = "org-builtin" > /< / span > (wc< span class = "org-builtin" > *< / span > sqrt(a)));
< span class = "org-matlab-cellbreak" > %% Low Pass filter to increase robustness< / span >
H_lpf = 1< span class = "org-builtin" > /< / span > (1 < span class = "org-builtin" > +< / span > s< span class = "org-builtin" > /< / span > 2< span class = "org-builtin" > /< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > /< / span > 200);
< span class = "org-matlab-cellbreak" > %% Notch at the top-plate resonance< / span >
gm = 0.02;
xi = 0.3;
wn = 2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > 700;
H_notch = (s< span class = "org-builtin" > ^< / span > 2 < span class = "org-builtin" > +< / span > 2< span class = "org-builtin" > *< / span > gm< span class = "org-builtin" > *< / span > xi< span class = "org-builtin" > *< / span > wn< span class = "org-builtin" > *< / span > s < span class = "org-builtin" > +< / span > wn< span class = "org-builtin" > ^< / span > 2)< span class = "org-builtin" > /< / span > (s< span class = "org-builtin" > ^< / span > 2 < span class = "org-builtin" > +< / span > 2< span class = "org-builtin" > *< / span > xi< span class = "org-builtin" > *< / span > wn< span class = "org-builtin" > *< / span > s < span class = "org-builtin" > +< / span > wn< span class = "org-builtin" > ^< / span > 2);
< span class = "org-matlab-cellbreak" > %% Decentralized HAC< / span >
Khac_iff_struts = < span class = "org-builtin" > -< / span > (1< span class = "org-builtin" > /< / span > (2.87e< span class = "org-builtin" > -< / span > 5)) < span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % Gain< / span >
H_lead < span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % Lead< / span >
H_notch < span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % Notch< / span >
(2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > 100< span class = "org-builtin" > /< / span > s) < span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % Integrator< / span >
eye(6); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > 6x6 Diagonal< / span >
< / pre >
< / div >
< p >
This controller is saved for further use.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > save(< span class = "org-string" > 'mat/Khac_iff_struts.mat'< / span > , < span class = "org-string" > 'Khac_iff_struts'< / span > )
< / pre >
< / div >
< p >
The experimental loop gain is computed and shown in Figure < a href = "#org292b8a7" > 76< / a > .
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > L_hac_iff_struts = pagemtimes(permute(frf_iff.G_dL{1}, [2 3 1]), squeeze(freqresp(Khac_iff_struts, frf_iff.f, < span class = "org-string" > 'Hz'< / span > )));
< / pre >
< / div >
< div id = "org292b8a7" class = "figure" >
< p > < img src = "figs/loop_gain_hac_iff_struts.png" alt = "loop_gain_hac_iff_struts.png" / >
< / p >
< p > < span class = "figure-number" > Figure 76: < / span > Diagonal and off-diagonal elements of the Loop gain for “ HAC-IFF-Struts” < / p >
< / div >
< / div >
< / div >
< div id = "outline-container-orgc70fcda" class = "outline-4" >
< h4 id = "orgc70fcda" > < span class = "section-number-4" > 3.2.2.< / span > Verification of the Stability using the Simscape model< / h4 >
< div class = "outline-text-4" id = "text-3-2-2" >
< p >
< a id = "org8402a80" > < / a >
< / p >
< p >
The HAC-IFF control strategy is implemented using Simscape.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Initialize the Simscape model in closed loop< / span >
n_hexapod = initializeNanoHexapodFinal(< span class = "org-string" > 'flex_bot_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'flex_top_type'< / span > , < span class = "org-string" > '4dof'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'motion_sensor_type'< / span > , < span class = "org-string" > 'plates'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'actuator_type'< / span > , < span class = "org-string" > 'flexible'< / span > , < span class = "org-comment" > ...< / span >
< span class = "org-string" > 'controller_type'< / span > , < span class = "org-string" > 'hac-iff-struts'< / span > );
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identify the (damped) transfer function from u to dLm< / span >
clear io; io_i = 1;
io(io_i) = linio([mdl, < span class = "org-string" > '/du'< / span > ], 1, < span class = "org-string" > 'openinput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Actuator Inputs< / span >
io(io_i) = linio([mdl, < span class = "org-string" > '/dL'< / span > ], 1, < span class = "org-string" > 'openoutput'< / span > ); io_i = io_i < span class = "org-builtin" > +< / span > 1; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Plate Displacement (encoder)< / span >
< / pre >
< / div >
< p >
We identify the closed-loop system.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Identification< / span >
Gd_iff_hac_opt = linearize(mdl, io, 0.0, options);
< / pre >
< / div >
< p >
And verify that it is indeed stable.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Verify the stability< / span >
isstable(Gd_iff_hac_opt)
< / pre >
< / div >
< pre class = "example" >
1
< / pre >
< / div >
< / div >
< div id = "outline-container-orgc2498b3" class = "outline-4" >
< h4 id = "orgc2498b3" > < span class = "section-number-4" > 3.2.3.< / span > Experimental Validation< / h4 >
< div class = "outline-text-4" id = "text-3-2-3" >
< p >
Both the Integral Force Feedback controller (developed in Section < a href = "#org3f6ceb6" > 2.3< / a > ) and the high authority controller working in the frame of the struts (developed in Section < a href = "#orgeca86cc" > 3.2< / a > ) are implemented experimentally.
< / p >
< p >
Two reference tracking experiments are performed to evaluate the stability and performances of the implemented control.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Load the experimental data< / span >
load(< span class = "org-string" > 'hac_iff_struts_yz_scans.mat'< / span > , < span class = "org-string" > 't'< / span > , < span class = "org-string" > 'de'< / span > )
< / pre >
< / div >
< p >
The position of the top-platform is estimated using the Jacobian matrix:
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Pose of the top platform from the encoder values< / span >
load(< span class = "org-string" > 'jacobian.mat'< / span > , < span class = "org-string" > 'J'< / span > );
Xe = [inv(J)< span class = "org-builtin" > *< / span > de< span class = "org-builtin" > '< / span > ]< span class = "org-builtin" > '< / span > ;
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Generate the Y-Z trajectory scan< / span >
Rx_yz = generateYZScanTrajectory(< span class = "org-comment" > ...< / span >
< span class = "org-string" > 'y_tot'< / span > , 4e< span class = "org-builtin" > -< / span > 6, < span class = "org-comment" > ... % Length of Y scans [m]< / span >
< span class = "org-string" > 'z_tot'< / span > , 8e< span class = "org-builtin" > -< / span > 6, < span class = "org-comment" > ... % Total Z distance [m]< / span >
< span class = "org-string" > 'n'< / span > , 5, < span class = "org-comment" > ... % Number of Y scans< / span >
< span class = "org-string" > 'Ts'< / span > , 1e< span class = "org-builtin" > -< / span > 3, < span class = "org-comment" > ... % Sampling Time [s]< / span >
< span class = "org-string" > 'ti'< / span > , 1, < span class = "org-comment" > ... % Time to go to initial position [s]< / span >
< span class = "org-string" > 'tw'< / span > , 0, < span class = "org-comment" > ... % Waiting time between each points [s]< / span >
< span class = "org-string" > 'ty'< / span > , 0.6, < span class = "org-comment" > ... % Time for a scan in Y [s]< / span >
< span class = "org-string" > 'tz'< / span > , 0.2); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Time for a scan in Z [s]< / span >
< / pre >
< / div >
< p >
The reference path as well as the measured position are partially shown in the Y-Z plane in Figure < a href = "#org27ea364" > 77< / a > .
< / p >
< div id = "org27ea364" class = "figure" >
< p > < img src = "figs/yz_scans_exp_results_first_K.png" alt = "yz_scans_exp_results_first_K.png" / >
< / p >
< p > < span class = "figure-number" > Figure 77: < / span > Measured position \(\bm{\mathcal{X}}_n\) and reference signal \(\bm{r}_{\mathcal{X}_n}\) in the Y-Z plane - Zoom on a change of direction< / p >
< / div >
< div class = "important" id = "org6f7f3c0" >
< p >
It is clear from Figure < a href = "#org27ea364" > 77< / a > that the position of the nano-hexapod effectively tracks to reference signal.
However, oscillations with amplitudes as large as 50nm can be observe.
< / p >
< p >
It turns out that the frequency of these oscillations is 100Hz which is corresponding to the crossover frequency of the High Authority Control loop.
This clearly indicates poor stability margins.
In the next section, the controller is re-designed to improve the stability margins.
< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-org097768b" class = "outline-4" >
< h4 id = "org097768b" > < span class = "section-number-4" > 3.2.4.< / span > Controller with increased stability margins< / h4 >
< div class = "outline-text-4" id = "text-3-2-4" >
< p >
The High Authority Controller is re-designed in order to improve the stability margins.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Lead< / span >
a = 5; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Amount of phase lead / width of the phase lead / high frequency gain< / span >
wc = 2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > 110; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Frequency with the maximum phase lead [rad/s]< / span >
H_lead = (1 < span class = "org-builtin" > +< / span > s< span class = "org-builtin" > /< / span > (wc< span class = "org-builtin" > /< / span > sqrt(a)))< span class = "org-builtin" > /< / span > (1 < span class = "org-builtin" > +< / span > s< span class = "org-builtin" > /< / span > (wc< span class = "org-builtin" > *< / span > sqrt(a)));
< span class = "org-matlab-cellbreak" > %% Low Pass Filter< / span >
H_lpf = 1< span class = "org-builtin" > /< / span > (1 < span class = "org-builtin" > +< / span > s< span class = "org-builtin" > /< / span > 2< span class = "org-builtin" > /< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > /< / span > 300);
< span class = "org-matlab-cellbreak" > %% Notch< / span >
gm = 0.02;
xi = 0.5;
wn = 2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > 700;
H_notch = (s< span class = "org-builtin" > ^< / span > 2 < span class = "org-builtin" > +< / span > 2< span class = "org-builtin" > *< / span > gm< span class = "org-builtin" > *< / span > xi< span class = "org-builtin" > *< / span > wn< span class = "org-builtin" > *< / span > s < span class = "org-builtin" > +< / span > wn< span class = "org-builtin" > ^< / span > 2)< span class = "org-builtin" > /< / span > (s< span class = "org-builtin" > ^< / span > 2 < span class = "org-builtin" > +< / span > 2< span class = "org-builtin" > *< / span > xi< span class = "org-builtin" > *< / span > wn< span class = "org-builtin" > *< / span > s < span class = "org-builtin" > +< / span > wn< span class = "org-builtin" > ^< / span > 2);
< span class = "org-matlab-cellbreak" > %% HAC Controller< / span >
Khac_iff_struts = < span class = "org-builtin" > -< / span > 2.2e4 < span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % Gain< / span >
H_lead < span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % Lead< / span >
H_lpf < span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % Lead< / span >
H_notch < span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % Notch< / span >
(2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > 100< span class = "org-builtin" > /< / span > s) < span class = "org-builtin" > *< / span > < span class = "org-comment" > ... % Integrator< / span >
eye(6); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > 6x6 Diagonal< / span >
< / pre >
< / div >
< p >
The bode plot of the new loop gain is shown in Figure < a href = "#org6af8f3f" > 78< / a > .
< / p >
< div id = "org6af8f3f" class = "figure" >
< p > < img src = "figs/hac_iff_plates_exp_loop_gain_redesigned_K.png" alt = "hac_iff_plates_exp_loop_gain_redesigned_K.png" / >
< / p >
< p > < span class = "figure-number" > Figure 78: < / span > Loop Gain for the updated decentralized HAC controller< / p >
< / div >
< p >
This new controller is implemented experimentally and several tracking tests are performed.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Load Measurements< / span >
load(< span class = "org-string" > 'hac_iff_more_lead_nass_scan.mat'< / span > , < span class = "org-string" > 't'< / span > , < span class = "org-string" > 'de'< / span > )
< / pre >
< / div >
< p >
The pose of the top platform is estimated from the encoder position using the Jacobian matrix.
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Compute the pose of the top platform< / span >
load(< span class = "org-string" > 'jacobian.mat'< / span > , < span class = "org-string" > 'J'< / span > );
Xe = [inv(J)< span class = "org-builtin" > *< / span > de< span class = "org-builtin" > '< / span > ]< span class = "org-builtin" > '< / span > ;
< / pre >
< / div >
< p >
The measured motion as well as the trajectory are shown in Figure < a href = "#orga7f0349" > 79< / a > .
< / p >
< div id = "orga7f0349" class = "figure" >
< p > < img src = "figs/nass_scans_first_test_exp.png" alt = "nass_scans_first_test_exp.png" / >
< / p >
< p > < span class = "figure-number" > Figure 79: < / span > Measured position \(\bm{\mathcal{X}}_n\) and reference signal \(\bm{r}_{\mathcal{X}_n}\) for the “ NASS” trajectory< / p >
< / div >
< p >
The trajectory and measured motion are also shown in the X-Y plane in Figure < a href = "#orgd501d9b" > 80< / a > .
< / p >
< div id = "orgd501d9b" class = "figure" >
< p > < img src = "figs/ref_track_nass_exp_hac_iff_struts.png" alt = "ref_track_nass_exp_hac_iff_struts.png" / >
< / p >
< p > < span class = "figure-number" > Figure 80: < / span > Reference path and measured motion in the X-Y plane< / p >
< / div >
< p >
The orientation errors during all the scans are shown in Figure < a href = "#orgbc3a8c2" > 81< / a > .
< / p >
< div id = "orgbc3a8c2" class = "figure" >
< p > < img src = "figs/nass_ref_rx_ry.png" alt = "nass_ref_rx_ry.png" / >
< / p >
< p > < span class = "figure-number" > Figure 81: < / span > Orientation errors during the scan< / p >
< / div >
< div class = "important" id = "org3bd08ff" >
< p >
Using the updated High Authority Controller, the nano-hexapod can follow trajectories with high accuracy (the position errors are in the order of 50nm peak to peak, and the orientation errors 300nrad peak to peak).
< / p >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-orgda33206" class = "outline-3" >
< h3 id = "orgda33206" > < span class = "section-number-3" > 3.3.< / span > Interaction Analysis and Decoupling< / h3 >
< div class = "outline-text-3" id = "text-3-3" >
< p >
< a id = "org41830f2" > < / a >
< / p >
< p >
In this section, the interaction in the identified plant is estimated using the Relative Gain Array (RGA) (< a href = "#citeproc_bib_item_2" > Skogestad and Postlethwaite 2007, 3.4< / a > ).
< / p >
< p >
Then, several decoupling strategies are compared for the nano-hexapod.
< / p >
< p >
The RGA Matrix is defined as follow:
< / p >
\begin{equation}
\text{RGA}(G(f)) = G(f) \times (G(f)^{-1})^T
\end{equation}
< p >
Then, the RGA number is defined:
< / p >
\begin{equation}
\text{RGA-num}(f) = \| \text{I - RGA(G(f))} \|_{\text{sum}}
\end{equation}
< p >
In this section, the plant with 2 added mass is studied.
< / p >
< / div >
< div id = "outline-container-orgd028ee3" class = "outline-4" >
< h4 id = "orgd028ee3" > < span class = "section-number-4" > 3.3.1.< / span > Parameters< / h4 >
< div class = "outline-text-4" id = "text-3-3-1" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > wc = 100; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Wanted crossover frequency [Hz]< / span >
[< span class = "org-builtin" > ~< / span > , i_wc] = min(abs(frf_iff.f < span class = "org-builtin" > -< / span > wc)); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Indice corresponding to wc< / span >
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Plant to be decoupled< / span >
frf_coupled = frf_iff.G_dL{2};
G_coupled = sim_iff.G_dL{2};
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org1134a28" class = "outline-4" >
< h4 id = "org1134a28" > < span class = "section-number-4" > 3.3.2.< / span > No Decoupling (Decentralized)< / h4 >
< div class = "outline-text-4" id = "text-3-3-2" >
< p >
< a id = "org304a70e" > < / a >
< / p >
< div id = "orgbd500b0" class = "figure" >
< p > < img src = "figs/decoupling_arch_decentralized.png" alt = "decoupling_arch_decentralized.png" / >
< / p >
< p > < span class = "figure-number" > Figure 82: < / span > Block diagram representing the plant.< / p >
< / div >
< div id = "orgb40b6d0" class = "figure" >
< p > < img src = "figs/interaction_decentralized_plant.png" alt = "interaction_decentralized_plant.png" / >
< / p >
< p > < span class = "figure-number" > Figure 83: < / span > Bode Plot of the decentralized plant (diagonal and off-diagonal terms)< / p >
< / div >
< div id = "org825bf52" class = "figure" >
< p > < img src = "figs/interaction_rga_decentralized.png" alt = "interaction_rga_decentralized.png" / >
< / p >
< p > < span class = "figure-number" > Figure 84: < / span > RGA number for the decentralized plant< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-org0a20ca4" class = "outline-4" >
< h4 id = "org0a20ca4" > < span class = "section-number-4" > 3.3.3.< / span > Static Decoupling< / h4 >
< div class = "outline-text-4" id = "text-3-3-3" >
< p >
< a id = "org32f7b34" > < / a >
< / p >
< div id = "org4def11d" class = "figure" >
< p > < img src = "figs/decoupling_arch_static.png" alt = "decoupling_arch_static.png" / >
< / p >
< p > < span class = "figure-number" > Figure 85: < / span > Decoupling using the inverse of the DC gain of the plant< / p >
< / div >
< p >
The DC gain is evaluated from the model as be have bad low frequency identification.
< / p >
< table border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
< colgroup >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< / colgroup >
< tbody >
< tr >
< td class = "org-right" > -62011.5< / td >
< td class = "org-right" > 3910.6< / td >
< td class = "org-right" > 4299.3< / td >
< td class = "org-right" > 660.7< / td >
< td class = "org-right" > -4016.5< / td >
< td class = "org-right" > -4373.6< / td >
< / tr >
< tr >
< td class = "org-right" > 3914.4< / td >
< td class = "org-right" > -61991.2< / td >
< td class = "org-right" > -4356.8< / td >
< td class = "org-right" > -4019.2< / td >
< td class = "org-right" > 640.2< / td >
< td class = "org-right" > 4281.6< / td >
< / tr >
< tr >
< td class = "org-right" > -4020.0< / td >
< td class = "org-right" > -4370.5< / td >
< td class = "org-right" > -62004.5< / td >
< td class = "org-right" > 3914.6< / td >
< td class = "org-right" > 4295.8< / td >
< td class = "org-right" > 653.8< / td >
< / tr >
< tr >
< td class = "org-right" > 660.9< / td >
< td class = "org-right" > 4292.4< / td >
< td class = "org-right" > 3903.3< / td >
< td class = "org-right" > -62012.2< / td >
< td class = "org-right" > -4366.5< / td >
< td class = "org-right" > -4008.9< / td >
< / tr >
< tr >
< td class = "org-right" > 4302.8< / td >
< td class = "org-right" > 655.6< / td >
< td class = "org-right" > -4025.8< / td >
< td class = "org-right" > -4377.8< / td >
< td class = "org-right" > -62006.0< / td >
< td class = "org-right" > 3919.7< / td >
< / tr >
< tr >
< td class = "org-right" > -4377.9< / td >
< td class = "org-right" > -4013.2< / td >
< td class = "org-right" > 668.6< / td >
< td class = "org-right" > 4303.7< / td >
< td class = "org-right" > 3906.8< / td >
< td class = "org-right" > -62019.3< / td >
< / tr >
< / tbody >
< / table >
< div id = "org3966e50" class = "figure" >
< p > < img src = "figs/interaction_static_dec_plant.png" alt = "interaction_static_dec_plant.png" / >
< / p >
< p > < span class = "figure-number" > Figure 86: < / span > Bode Plot of the static decoupled plant< / p >
< / div >
< div id = "orge941b8e" class = "figure" >
< p > < img src = "figs/interaction_rga_static_dec.png" alt = "interaction_rga_static_dec.png" / >
< / p >
< p > < span class = "figure-number" > Figure 87: < / span > RGA number for the statically decoupled plant< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-orgea56664" class = "outline-4" >
< h4 id = "orgea56664" > < span class = "section-number-4" > 3.3.4.< / span > Decoupling at the Crossover< / h4 >
< div class = "outline-text-4" id = "text-3-3-4" >
< p >
< a id = "org7405dbe" > < / a >
< / p >
< div id = "org7f26034" class = "figure" >
< p > < img src = "figs/decoupling_arch_crossover.png" alt = "decoupling_arch_crossover.png" / >
< / p >
< p > < span class = "figure-number" > Figure 88: < / span > Decoupling using the inverse of a dynamical model \(\bm{\hat{G}}\) of the plant dynamics \(\bm{G}\)< / p >
< / div >
< table border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
< colgroup >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< col class = "org-right" / >
< / colgroup >
< tbody >
< tr >
< td class = "org-right" > 67229.8< / td >
< td class = "org-right" > 3769.3< / td >
< td class = "org-right" > -13704.6< / td >
< td class = "org-right" > -23084.8< / td >
< td class = "org-right" > -6318.2< / td >
< td class = "org-right" > 23378.7< / td >
< / tr >
< tr >
< td class = "org-right" > 3486.2< / td >
< td class = "org-right" > 67708.9< / td >
< td class = "org-right" > 23220.0< / td >
< td class = "org-right" > -6314.5< / td >
< td class = "org-right" > -22699.8< / td >
< td class = "org-right" > -14060.6< / td >
< / tr >
< tr >
< td class = "org-right" > -5731.7< / td >
< td class = "org-right" > 22471.7< / td >
< td class = "org-right" > 66701.4< / td >
< td class = "org-right" > 3070.2< / td >
< td class = "org-right" > -13205.6< / td >
< td class = "org-right" > -21944.6< / td >
< / tr >
< tr >
< td class = "org-right" > -23305.5< / td >
< td class = "org-right" > -14542.6< / td >
< td class = "org-right" > 2743.2< / td >
< td class = "org-right" > 70097.6< / td >
< td class = "org-right" > 24846.8< / td >
< td class = "org-right" > -5295.0< / td >
< / tr >
< tr >
< td class = "org-right" > -14882.9< / td >
< td class = "org-right" > -22957.8< / td >
< td class = "org-right" > -5344.4< / td >
< td class = "org-right" > 25786.2< / td >
< td class = "org-right" > 70484.6< / td >
< td class = "org-right" > 2979.9< / td >
< / tr >
< tr >
< td class = "org-right" > 24353.3< / td >
< td class = "org-right" > -5195.2< / td >
< td class = "org-right" > -22449.0< / td >
< td class = "org-right" > -14459.2< / td >
< td class = "org-right" > 2203.6< / td >
< td class = "org-right" > 69484.2< / td >
< / tr >
< / tbody >
< / table >
< div id = "orga78c4df" class = "figure" >
< p > < img src = "figs/interaction_wc_plant.png" alt = "interaction_wc_plant.png" / >
< / p >
< p > < span class = "figure-number" > Figure 89: < / span > Bode Plot of the plant decoupled at the crossover< / p >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Compute RGA Matrix< / span >
RGA_wc = zeros(size(frf_coupled));
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:length(frf_iff.f)< / span >
RGA_wc(< span class = "org-matlab-math" > i< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ) = squeeze(G_dL_wc(< span class = "org-matlab-math" > i< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ))< span class = "org-builtin" > .*< / span > inv(squeeze(G_dL_wc(< span class = "org-matlab-math" > i< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > )))< span class = "org-builtin" > .'< / span > ;
< span class = "org-keyword" > end< / span >
< span class = "org-matlab-cellbreak" > %% Compute RGA-number< / span >
RGA_wc_sum = zeros(size(RGA_wc, 1), 1);
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:size(RGA_wc, 1)< / span >
RGA_wc_sum(< span class = "org-matlab-math" > i< / span > ) = sum(sum(abs(eye(6) < span class = "org-builtin" > -< / span > squeeze(RGA_wc(< span class = "org-matlab-math" > i< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > )))));
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< div id = "org2764913" class = "figure" >
< p > < img src = "figs/interaction_rga_wc.png" alt = "interaction_rga_wc.png" / >
< / p >
< p > < span class = "figure-number" > Figure 90: < / span > RGA number for the plant decoupled at the crossover< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-org6ed2b1e" class = "outline-4" >
< h4 id = "org6ed2b1e" > < span class = "section-number-4" > 3.3.5.< / span > SVD Decoupling< / h4 >
< div class = "outline-text-4" id = "text-3-3-5" >
< p >
< a id = "orgccb99ad" > < / a >
< / p >
< div id = "orgc039907" class = "figure" >
< p > < img src = "figs/decoupling_arch_svd.png" alt = "decoupling_arch_svd.png" / >
< / p >
< p > < span class = "figure-number" > Figure 91: < / span > Decoupling using the Singular Value Decomposition< / p >
< / div >
< div id = "org02353db" class = "figure" >
< p > < img src = "figs/interaction_svd_plant.png" alt = "interaction_svd_plant.png" / >
< / p >
< p > < span class = "figure-number" > Figure 92: < / span > Bode Plot of the plant decoupled using the Singular Value Decomposition< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Compute the RGA matrix for the SVD decoupled plant< / span >
RGA_svd = zeros(size(frf_coupled));
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:length(frf_iff.f)< / span >
RGA_svd(< span class = "org-matlab-math" > i< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ) = squeeze(G_dL_svd(< span class = "org-matlab-math" > i< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ))< span class = "org-builtin" > .*< / span > inv(squeeze(G_dL_svd(< span class = "org-matlab-math" > i< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > )))< span class = "org-builtin" > .'< / span > ;
< span class = "org-keyword" > end< / span >
< span class = "org-matlab-cellbreak" > %% Compute the RGA-number< / span >
RGA_svd_sum = zeros(size(RGA_svd, 1), 1);
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:length(frf_iff.f)< / span >
RGA_svd_sum(< span class = "org-matlab-math" > i< / span > ) = sum(sum(abs(eye(6) < span class = "org-builtin" > -< / span > squeeze(RGA_svd(< span class = "org-matlab-math" > i< / span > ,< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > )))));
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% RGA Number for the SVD decoupled plant< / span >
< span class = "org-builtin" > figure< / span > ;
< span class = "org-builtin" > plot< / span > (frf_iff.f, RGA_svd_sum, < span class = "org-string" > 'k-'< / span > );
< span class = "org-builtin" > set< / span > (< span class = "org-variable-name" > gca< / span > , < span class = "org-string" > 'XScale'< / span > , < span class = "org-string" > 'log'< / span > ); < span class = "org-builtin" > set< / span > (< span class = "org-variable-name" > gca< / span > , < span class = "org-string" > 'YScale'< / span > , < span class = "org-string" > 'log'< / span > );
< span class = "org-builtin" > xlabel< / span > (< span class = "org-string" > 'Frequency [Hz]'< / span > ); < span class = "org-builtin" > ylabel< / span > (< span class = "org-string" > 'RGA Number'< / span > );
< span class = "org-builtin" > xlim< / span > ([10, 1e3]); < span class = "org-builtin" > ylim< / span > ([1e< span class = "org-builtin" > -< / span > 2, 1e2]);
< / pre >
< / div >
< div id = "org8df4492" class = "figure" >
< p > < img src = "figs/interaction_rga_svd.png" alt = "interaction_rga_svd.png" / >
< / p >
< p > < span class = "figure-number" > Figure 93: < / span > RGA number for the plant decoupled using the SVD< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-org3d05e13" class = "outline-4" >
< h4 id = "org3d05e13" > < span class = "section-number-4" > 3.3.6.< / span > Dynamic decoupling< / h4 >
< div class = "outline-text-4" id = "text-3-3-6" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "org617194f" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org7833e99" class = "figure" >
< p > < img src = "figs/decoupling_arch_dynamic.png" alt = "decoupling_arch_dynamic.png" / >
< / p >
< p > < span class = "figure-number" > Figure 94: < / span > Decoupling using the inverse of a dynamical model \(\bm{\hat{G}}\) of the plant dynamics \(\bm{G}\)< / p >
< / div >
< div id = "orgc2f49d5" class = "figure" >
< p > < img src = "figs/interaction_dynamic_dec_plant.png" alt = "interaction_dynamic_dec_plant.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 95: < / span > Bode Plot of the dynamically decoupled plant< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org5d5907c" class = "figure" >
< p > < img src = "figs/interaction_rga_dynamic_dec.png" alt = "interaction_rga_dynamic_dec.png" / >
< / p >
< p > < span class = "figure-number" > Figure 96: < / span > RGA number for the dynamically decoupled plant< / p >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org961f42e" class = "outline-4" >
< h4 id = "org961f42e" > < span class = "section-number-4" > 3.3.7.< / span > Jacobian Decoupling - Center of Stiffness< / h4 >
< div class = "outline-text-4" id = "text-3-3-7" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "orgcf474fd" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div id = "org251bbd7" class = "figure" >
< p > < img src = "figs/decoupling_arch_jacobian_cok.png" alt = "decoupling_arch_jacobian_cok.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 97: < / span > Decoupling using Jacobian matrices evaluated at the Center of Stiffness< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "orgc1f0fb9" class = "figure" >
< p > < img src = "figs/interaction_J_cok_plant.png" alt = "interaction_J_cok_plant.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 98: < / span > Bode Plot of the plant decoupled using the Jacobian evaluated at the “ center of stiffness” < / p >
< / div >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orgfbcdf7d" class = "figure" >
< p > < img src = "figs/interaction_rga_J_cok.png" alt = "interaction_rga_J_cok.png" / >
< / p >
< p > < span class = "figure-number" > Figure 99: < / span > RGA number for the plant decoupled using the Jacobian evaluted at the Center of Stiffness< / p >
< / div >
< / div >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgab2ab01" class = "outline-4" >
< h4 id = "orgab2ab01" > < span class = "section-number-4" > 3.3.8.< / span > Jacobian Decoupling - Center of Mass< / h4 >
< div class = "outline-text-4" id = "text-3-3-8" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "org0175ce4" > < / a >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div id = "org01935d0" class = "figure" >
< p > < img src = "figs/decoupling_arch_jacobian_com.png" alt = "decoupling_arch_jacobian_com.png" / >
< / p >
< p > < span class = "figure-number" > Figure 100: < / span > Decoupling using Jacobian matrices evaluated at the Center of Mass< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org495773d" class = "figure" >
< p > < img src = "figs/interaction_J_com_plant.png" alt = "interaction_J_com_plant.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 101: < / span > Bode Plot of the plant decoupled using the Jacobian evaluated at the Center of Mass< / p >
< / div >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org05aaa67" class = "figure" >
< p > < img src = "figs/interaction_rga_J_com.png" alt = "interaction_rga_J_com.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 102: < / span > RGA number for the plant decoupled using the Jacobian evaluted at the Center of Mass< / p >
< / div >
< / div >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org3065fbc" class = "outline-4" >
< h4 id = "org3065fbc" > < span class = "section-number-4" > 3.3.9.< / span > Decoupling Comparison< / h4 >
< div class = "outline-text-4" id = "text-3-3-9" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "org678f2aa" > < / a >
2021-06-30 22:45:20 +02:00
< / p >
< p >
2021-08-11 00:28:02 +02:00
Let’ s now compare all of the decoupling methods (Figure < a href = "#orgc9c49e5" > 103< / a > ).
< / p >
< div class = "important" id = "org52ec4d6" >
< p >
From Figure < a href = "#orgc9c49e5" > 103< / a > , the following remarks are made:
2021-06-30 22:45:20 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< ul class = "org-ul" >
< li > < b > Decentralized plant< / b > : well decoupled below suspension modes< / li >
< li > < b > Static inversion< / b > : similar to the decentralized plant as the decentralized plant has already a good decoupling at low frequency< / li >
< li > < b > Crossover inversion< / b > : the decoupling is improved around the crossover frequency as compared to the decentralized plant. However, the decoupling is increased at lower frequency.< / li >
< li > < b > SVD decoupling< / b > : Very good decoupling up to 235Hz. Especially between 100Hz and 200Hz.< / li >
< li > < b > Dynamic Inversion< / b > : the plant is very well decoupled at frequencies where the model is accurate (below 235Hz where flexible modes are not modelled).< / li >
< li > < b > Jacobian - Stiffness< / b > : good decoupling at low frequency. The decoupling increases at the frequency of the suspension modes, but is acceptable up to the strut flexible modes (235Hz).< / li >
< li > < b > Jacobian - Mass< / b > : bad decoupling at low frequency. Better decoupling above the frequency of the suspension modes, and acceptable decoupling up to the strut flexible modes (235Hz).< / li >
< / ul >
< / div >
2021-06-10 17:52:16 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orgc9c49e5" class = "figure" >
< p > < img src = "figs/interaction_compare_rga_numbers.png" alt = "interaction_compare_rga_numbers.png" / >
< / p >
< p > < span class = "figure-number" > Figure 103: < / span > Comparison of the obtained RGA-numbers for all the decoupling methods< / p >
2021-07-02 18:26:05 +02:00
< / div >
< / div >
< / div >
2021-06-10 17:52:16 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgc4c95f1" class = "outline-4" >
< h4 id = "orgc4c95f1" > < span class = "section-number-4" > 3.3.10.< / span > Decoupling Robustness< / h4 >
< div class = "outline-text-4" id = "text-3-3-10" >
2021-06-30 22:45:20 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "org0a50a7a" > < / a >
< / p >
< p >
Let’ s now see how the decoupling is changing when changing the payload’ s mass.
2021-06-10 17:52:16 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > frf_new = frf_iff.G_dL{3};
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< p >
The obtained RGA-numbers are shown in Figure < a href = "#orga0e578c" > 104< / a > .
< / p >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div class = "important" id = "org3bdc5d1" >
< p >
From Figure < a href = "#orga0e578c" > 104< / a > :
< / p >
< ul class = "org-ul" >
< li > The decoupling using the Jacobian evaluated at the “ center of stiffness” seems to give the most robust results.< / li >
< / ul >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< / div >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div id = "orga0e578c" class = "figure" >
< p > < img src = "figs/interaction_compare_rga_numbers_rob.png" alt = "interaction_compare_rga_numbers_rob.png" / >
< / p >
< p > < span class = "figure-number" > Figure 104: < / span > Change of the RGA-number with a change of the payload. Indication of the robustness of the inversion method.< / p >
< / div >
< / div >
2021-06-10 17:52:16 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org83b915d" class = "outline-4" >
< h4 id = "org83b915d" > < span class = "section-number-4" > 3.3.11.< / span > Conclusion< / h4 >
< div class = "outline-text-4" id = "text-3-3-11" >
< div class = "important" id = "org3c36324" >
2021-06-10 17:52:16 +02:00
< p >
2021-08-11 00:28:02 +02:00
Several decoupling methods can be used:
2021-06-10 17:52:16 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< ul class = "org-ul" >
< li > SVD< / li >
< li > Inverse< / li >
< li > Jacobian (CoK)< / li >
< / ul >
2021-06-10 17:52:16 +02:00
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< table id = "org0827581" border = "2" cellspacing = "0" cellpadding = "6" rules = "groups" frame = "hsides" >
< caption class = "t-above" > < span class = "table-number" > Table 3:< / span > Summary of the interaction analysis and different decoupling strategies< / caption >
< colgroup >
< col class = "org-left" / >
< col class = "org-left" / >
< col class = "org-left" / >
< col class = "org-left" / >
< / colgroup >
< thead >
< tr >
< th scope = "col" class = "org-left" > < b > Method< / b > < / th >
< th scope = "col" class = "org-left" > < b > RGA< / b > < / th >
< th scope = "col" class = "org-left" > < b > Diag Plant< / b > < / th >
< th scope = "col" class = "org-left" > < b > Robustness< / b > < / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "org-left" > Decentralized< / td >
< td class = "org-left" > --< / td >
< td class = "org-left" > Equal< / td >
< td class = "org-left" > ++< / td >
< / tr >
< tr >
< td class = "org-left" > Static dec.< / td >
< td class = "org-left" > --< / td >
< td class = "org-left" > Equal< / td >
< td class = "org-left" > ++< / td >
< / tr >
< tr >
< td class = "org-left" > Crossover dec.< / td >
< td class = "org-left" > -< / td >
< td class = "org-left" > Equal< / td >
< td class = "org-left" > 0< / td >
< / tr >
< tr >
< td class = "org-left" > SVD< / td >
< td class = "org-left" > ++< / td >
< td class = "org-left" > Diff< / td >
< td class = "org-left" > +< / td >
< / tr >
< tr >
< td class = "org-left" > Dynamic dec.< / td >
< td class = "org-left" > ++< / td >
< td class = "org-left" > Unity, equal< / td >
< td class = "org-left" > -< / td >
< / tr >
< tr >
< td class = "org-left" > Jacobian - CoK< / td >
< td class = "org-left" > +< / td >
< td class = "org-left" > Diff< / td >
< td class = "org-left" > ++< / td >
< / tr >
< tr >
< td class = "org-left" > Jacobian - CoM< / td >
< td class = "org-left" > 0< / td >
< td class = "org-left" > Diff< / td >
< td class = "org-left" > +< / td >
< / tr >
< / tbody >
< / table >
< / div >
< / div >
< / div >
< div id = "outline-container-orga4a2f4c" class = "outline-3" >
< h3 id = "orga4a2f4c" > < span class = "section-number-3" > 3.4.< / span > Robust High Authority Controller< / h3 >
< div class = "outline-text-3" id = "text-3-4" >
2021-06-10 17:52:16 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "org69c1b49" > < / a >
< / p >
< p >
In this section we wish to develop a robust High Authority Controller (HAC) that is working for all payloads.
2021-06-10 17:52:16 +02:00
< / p >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
(< a href = "#citeproc_bib_item_1" > Indri and Oboe 2020< / a > )
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< / div >
< div id = "outline-container-org49ac8c0" class = "outline-4" >
< h4 id = "org49ac8c0" > < span class = "section-number-4" > 3.4.1.< / span > Using Jacobian evaluated at the center of stiffness< / h4 >
< div class = "outline-text-4" id = "text-3-4-1" >
< / div >
< div id = "outline-container-org9fa18a6" class = "outline-5" >
< h5 id = "org9fa18a6" > < span class = "section-number-5" > 3.4.1.1.< / span > Decoupled Plant< / h5 >
< div class = "outline-text-5" id = "text-3-4-1-1" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > G_nom = frf_iff.G_dL{2}; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Nominal Plant< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "org1f8f5b4" class = "figure" >
< p > < img src = "figs/bode_plot_hac_iff_plant_jacobian_cok.png" alt = "bode_plot_hac_iff_plant_jacobian_cok.png" / >
< / p >
< p > < span class = "figure-number" > Figure 105: < / span > Bode plot of the decoupled plant using the Jacobian evaluated at the Center of Stiffness< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-org0ed8546" class = "outline-5" >
< h5 id = "org0ed8546" > < span class = "section-number-5" > 3.4.1.2.< / span > SISO Controller Design< / h5 >
< div class = "outline-text-5" id = "text-3-4-1-2" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
As the diagonal elements of the plant are not equal, several SISO controllers are designed and then combined to form a diagonal controller.
All the diagonal terms of the controller consists of:
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< ul class = "org-ul" >
< li > A double integrator to have high gain at low frequency< / li >
< li > A lead around the crossover frequency to increase stability margins< / li >
< li > Two second order low pass filters above the crossover frequency to increase the robustness to high frequency modes< / li >
< / ul >
< / div >
< / div >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orga459b5d" class = "outline-5" >
< h5 id = "orga459b5d" > < span class = "section-number-5" > 3.4.1.3.< / span > Obtained Loop Gain< / h5 >
< div class = "outline-text-5" id = "text-3-4-1-3" >
< div id = "org3873b63" class = "figure" >
< p > < img src = "figs/bode_plot_hac_iff_loop_gain_jacobian_cok.png" alt = "bode_plot_hac_iff_loop_gain_jacobian_cok.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 106: < / span > Bode plot of the Loop Gain when using the Jacobian evaluated at the Center of Stiffness to decouple the system< / p >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Controller to be implemented< / span >
Kd = inv(J_cok< span class = "org-builtin" > '< / span > )< span class = "org-builtin" > *< / span > input_normalize< span class = "org-builtin" > *< / span > ss(Kd_diag)< span class = "org-builtin" > *< / span > inv(Js_cok);
< / pre >
< / div >
< / div >
2021-06-08 22:14:48 +02:00
< / div >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgc3ebc4d" class = "outline-5" >
< h5 id = "orgc3ebc4d" > < span class = "section-number-5" > 3.4.1.4.< / span > Verification of the Stability< / h5 >
< div class = "outline-text-5" id = "text-3-4-1-4" >
2021-07-02 18:26:05 +02:00
< p >
2021-08-11 00:28:02 +02:00
Now the stability of the feedback loop is verified using the generalized Nyquist criteria.
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div id = "orgcc8a2e2" class = "figure" >
< p > < img src = "figs/loci_hac_iff_loop_gain_jacobian_cok.png" alt = "loci_hac_iff_loop_gain_jacobian_cok.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 107: < / span > Loci of \(L(j\omega)\) in the complex plane.< / p >
< / div >
< / div >
2021-06-07 19:00:29 +02:00
< / div >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org54c9fd8" class = "outline-5" >
< h5 id = "org54c9fd8" > < span class = "section-number-5" > 3.4.1.5.< / span > Save for further analysis< / h5 >
< div class = "outline-text-5" id = "text-3-4-1-5" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > save(< span class = "org-string" > 'mat/Khac_iff_struts_jacobian_cok.mat'< / span > , < span class = "org-string" > 'Kd'< / span > )
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-org344ae47" class = "outline-4" >
< h4 id = "org344ae47" > < span class = "section-number-4" > 3.4.2.< / span > Using Singular Value Decomposition< / h4 >
< div class = "outline-text-4" id = "text-3-4-2" >
< / div >
< div id = "outline-container-org0483140" class = "outline-5" >
< h5 id = "org0483140" > < span class = "section-number-5" > 3.4.2.1.< / span > Decoupled Plant< / h5 >
< div class = "outline-text-5" id = "text-3-4-2-1" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > G_nom = frf_iff.G_dL{2}; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Nominal Plant< / span >
< / pre >
< / div >
< div id = "org3d729a8" class = "figure" >
< p > < img src = "figs/bode_plot_hac_iff_plant_svd.png" alt = "bode_plot_hac_iff_plant_svd.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 108: < / span > Bode plot of the decoupled plant using the SVD< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-orgb453991" class = "outline-5" >
< h5 id = "orgb453991" > < span class = "section-number-5" > 3.4.2.2.< / span > Controller Design< / h5 >
< / div >
< div id = "outline-container-orgce73c82" class = "outline-5" >
< h5 id = "orgce73c82" > < span class = "section-number-5" > 3.4.2.3.< / span > Loop Gain< / h5 >
< div class = "outline-text-5" id = "text-3-4-2-3" >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div id = "org4bd9a2c" class = "figure" >
< p > < img src = "figs/bode_plot_hac_iff_loop_gain_svd.png" alt = "bode_plot_hac_iff_loop_gain_svd.png" / >
2021-07-02 18:26:05 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 109: < / span > Bode plot of Loop Gain when using the SVD< / p >
< / div >
< / div >
2021-07-02 18:26:05 +02:00
< / div >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgdc321d6" class = "outline-5" >
< h5 id = "orgdc321d6" > < span class = "section-number-5" > 3.4.2.4.< / span > Stability Verification< / h5 >
< div class = "outline-text-5" id = "text-3-4-2-4" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-matlab-cellbreak" > %% Compute the Eigenvalues of the loop gain< / span >
Ldet = zeros(3, 6, length(frf_iff.f));
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:3< / span >
Lmimo = pagemtimes(permute(frf_iff.G_dL{< span class = "org-matlab-math" > i< / span > }, [2,3,1]),squeeze(freqresp(Kd, frf_iff.f, < span class = "org-string" > 'Hz'< / span > )));
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > i_f< / span > = < span class = "org-constant" > 2:length(frf_iff.f)< / span >
Ldet(< span class = "org-matlab-math" > i< / span > ,< span class = "org-builtin" > :< / span > , i_f) = eig(squeeze(Lmimo(< span class = "org-builtin" > :< / span > ,< span class = "org-builtin" > :< / span > ,i_f)));
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< div id = "org8ef01d0" class = "figure" >
< p > < img src = "figs/loci_hac_iff_loop_gain_svd.png" alt = "loci_hac_iff_loop_gain_svd.png" / >
2021-06-14 18:08:46 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< p > < span class = "figure-number" > Figure 110: < / span > Locis of \(L(j\omega)\) in the complex plane.< / p >
< / div >
< / div >
< / div >
2021-07-02 18:26:05 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org10c11f1" class = "outline-5" >
< h5 id = "org10c11f1" > < span class = "section-number-5" > 3.4.2.5.< / span > Save for further analysis< / h5 >
< div class = "outline-text-5" id = "text-3-4-2-5" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > save(< span class = "org-string" > 'mat/Khac_iff_struts_svd.mat'< / span > , < span class = "org-string" > 'Kd'< / span > )
< / pre >
< / div >
2021-07-02 18:26:05 +02:00
< / div >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org389fd05" class = "outline-2" >
< h2 id = "org389fd05" > < span class = "section-number-2" > 4.< / span > Functions< / h2 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-2" id = "text-4" >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgaedf22d" class = "outline-3" >
< h3 id = "orgaedf22d" > < span class = "section-number-3" > 4.1.< / span > < code > generateXYZTrajectory< / code > < / h3 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-3" id = "text-4-1" >
2021-06-14 18:08:46 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "orgbdd5832" > < / a >
2021-06-14 17:29:28 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org4592698" class = "outline-4" >
< h4 id = "org4592698" > Function description< / h4 >
< div class = "outline-text-4" id = "text-org4592698" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [ref]< / span > = < span class = "org-function-name" > generateXYZTrajectory< / span > (< span class = "org-variable-name" > args< / span > )
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > generateXYZTrajectory -< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-comment" > %< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Syntax: [ref] = generateXYZTrajectory(args)< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-comment" > %< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Inputs:< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > - args< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-comment" > %< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Outputs:< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > - ref - Reference Signal< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< / div >
< / div >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgc831b1f" class = "outline-4" >
< h4 id = "orgc831b1f" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-orgc831b1f" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > arguments
args.points double {mustBeNumeric} = zeros(2, 3) < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [m]< / span >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
args.ti (1,1) double {mustBeNumeric, mustBeNonnegative} = 1 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Time to go to first point and after last point [s]< / span >
args.tw (1,1) double {mustBeNumeric, mustBeNonnegative} = 0.5 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Time wait between each point [s]< / span >
args.tm (1,1) double {mustBeNumeric, mustBeNonnegative} = 1 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Motion time between points [s]< / span >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
args.Ts (1,1) double {mustBeNumeric, mustBePositive} = 1e< span class = "org-builtin" > -< / span > 3 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Sampling Time [s]< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< / div >
2021-06-14 17:29:28 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org04cc6d1" class = "outline-4" >
< h4 id = "org04cc6d1" > Initialize Time Vectors< / h4 >
< div class = "outline-text-4" id = "text-org04cc6d1" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > time_i = 0< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > :< / span > args.ti;
time_w = 0< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > :< / span > args.tw;
time_m = 0< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > :< / span > args.tm;
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< / div >
< / div >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org4e2ed71" class = "outline-4" >
< h4 id = "org4e2ed71" > XYZ Trajectory< / h4 >
< div class = "outline-text-4" id = "text-org4e2ed71" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Go to initial position< / span >
xyz = (args.points(1,< span class = "org-builtin" > :< / span > ))< span class = "org-builtin" > '*< / span > (time_i< span class = "org-builtin" > /< / span > args.ti);
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Wait< / span >
xyz = [xyz, xyz(< span class = "org-builtin" > :< / span > ,end)< span class = "org-builtin" > .*< / span > ones(size(time_w))];
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Scans< / span >
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 2:size(args.points, 1)< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Go to next point< / span >
xyz = [xyz, xyz(< span class = "org-builtin" > :< / span > ,end) < span class = "org-builtin" > +< / span > (args.points(< span class = "org-matlab-math" > i< / span > ,< span class = "org-builtin" > :< / span > )< span class = "org-builtin" > '< / span > < span class = "org-builtin" > -< / span > xyz(< span class = "org-builtin" > :< / span > ,end))< span class = "org-builtin" > *< / span > (time_m< span class = "org-builtin" > /< / span > args.tm)];
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Wait a litle bit< / span >
xyz = [xyz, xyz(< span class = "org-builtin" > :< / span > ,end)< span class = "org-builtin" > .*< / span > ones(size(time_w))];
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > End motion< / span >
xyz = [xyz, xyz(< span class = "org-builtin" > :< / span > ,end) < span class = "org-builtin" > -< / span > xyz(< span class = "org-builtin" > :< / span > ,end)< span class = "org-builtin" > *< / span > (time_i< span class = "org-builtin" > /< / span > args.ti)];
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-06-14 17:29:28 +02:00
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org3adc499" class = "outline-4" >
< h4 id = "org3adc499" > Reference Signal< / h4 >
< div class = "outline-text-4" id = "text-org3adc499" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > t = 0< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > *< / span > (length(xyz) < span class = "org-builtin" > -< / span > 1);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
2021-06-14 17:29:28 +02:00
< div class = "org-src-container" >
2021-06-30 22:45:20 +02:00
< pre class = "src src-matlab" > ref = zeros(length(xyz), 7);
2021-08-11 00:28:02 +02:00
ref(< span class = "org-builtin" > :< / span > , 1) = t;
ref(< span class = "org-builtin" > :< / span > , 2< span class = "org-builtin" > :< / span > 4) = xyz< span class = "org-builtin" > '< / span > ;
2021-06-14 17:29:28 +02:00
< / pre >
< / div >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
< / div >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org1d16faf" class = "outline-3" >
< h3 id = "org1d16faf" > < span class = "section-number-3" > 4.2.< / span > < code > generateYZScanTrajectory< / code > < / h3 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-3" id = "text-4-2" >
2021-06-14 17:29:28 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "org7e187da" > < / a >
2021-06-14 17:29:28 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org8b01e4e" class = "outline-4" >
< h4 id = "org8b01e4e" > Function description< / h4 >
< div class = "outline-text-4" id = "text-org8b01e4e" >
2021-06-14 17:29:28 +02:00
< div class = "org-src-container" >
2021-06-30 22:45:20 +02:00
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [ref]< / span > = < span class = "org-function-name" > generateYZScanTrajectory< / span > (< span class = "org-variable-name" > args< / span > )
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > generateYZScanTrajectory -< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-comment" > %< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Syntax: [ref] = generateYZScanTrajectory(args)< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-comment" > %< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Inputs:< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > - args< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-comment" > %< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Outputs:< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > - ref - Reference Signal< / span >
2021-06-14 17:29:28 +02:00
< / pre >
< / div >
2021-06-30 22:45:20 +02:00
< / div >
< / div >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgf2a9da4" class = "outline-4" >
< h4 id = "orgf2a9da4" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-orgf2a9da4" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > arguments
args.y_tot (1,1) double {mustBeNumeric, mustBePositive} = 10e< span class = "org-builtin" > -< / span > 6 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [m]< / span >
args.z_tot (1,1) double {mustBeNumeric, mustBePositive} = 10e< span class = "org-builtin" > -< / span > 6 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [m]< / span >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
args.n (1,1) double {mustBeInteger, mustBePositive} = 10 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [-]< / span >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
args.Ts (1,1) double {mustBeNumeric, mustBePositive} = 1e< span class = "org-builtin" > -< / span > 4 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [s]< / span >
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
args.ti (1,1) double {mustBeNumeric, mustBeNonnegative} = 1 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [s]< / span >
args.tw (1,1) double {mustBeNumeric, mustBeNonnegative} = 1 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [s]< / span >
args.ty (1,1) double {mustBeNumeric, mustBeNonnegative} = 1 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [s]< / span >
args.tz (1,1) double {mustBeNumeric, mustBeNonnegative} = 1 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [s]< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< / div >
2021-06-14 17:29:28 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org4fa7fa6" class = "outline-4" >
< h4 id = "org4fa7fa6" > Initialize Time Vectors< / h4 >
< div class = "outline-text-4" id = "text-org4fa7fa6" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > time_i = 0< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > :< / span > args.ti;
time_w = 0< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > :< / span > args.tw;
time_y = 0< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > :< / span > args.ty;
time_z = 0< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > :< / span > args.tz;
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< / div >
< / div >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org2f375c2" class = "outline-4" >
< h4 id = "org2f375c2" > Y and Z vectors< / h4 >
< div class = "outline-text-4" id = "text-org2f375c2" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Go to initial position< / span >
y = (time_i< span class = "org-builtin" > /< / span > args.ti)< span class = "org-builtin" > *< / span > (args.y_tot< span class = "org-builtin" > /< / span > 2);
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Wait< / span >
y = [y, y(end)< span class = "org-builtin" > *< / span > ones(size(time_w))];
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Scans< / span >
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:args.n< / span >
< span class = "org-keyword" > if< / span > mod(< span class = "org-matlab-math" > i< / span > ,2) < span class = "org-builtin" > ==< / span > 0
y = [y, < span class = "org-builtin" > -< / span > (args.y_tot< span class = "org-builtin" > /< / span > 2) < span class = "org-builtin" > +< / span > (time_y< span class = "org-builtin" > /< / span > args.ty)< span class = "org-builtin" > *< / span > args.y_tot];
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > else< / span >
2021-08-11 00:28:02 +02:00
y = [y, (args.y_tot< span class = "org-builtin" > /< / span > 2) < span class = "org-builtin" > -< / span > (time_y< span class = "org-builtin" > /< / span > args.ty)< span class = "org-builtin" > *< / span > args.y_tot];
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > if< / span > < span class = "org-matlab-math" > i< / span > < span class = "org-builtin" > < < / span > args.n
y = [y, y(end)< span class = "org-builtin" > *< / span > ones(size(time_z))];
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Wait a litle bit< / span >
y = [y, y(end)< span class = "org-builtin" > *< / span > ones(size(time_w))];
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > End motion< / span >
y = [y, y(end) < span class = "org-builtin" > -< / span > y(end)< span class = "org-builtin" > *< / span > time_i< span class = "org-builtin" > /< / span > args.ti];
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Go to initial position< / span >
z = (time_i< span class = "org-builtin" > /< / span > args.ti)< span class = "org-builtin" > *< / span > (args.z_tot< span class = "org-builtin" > /< / span > 2);
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Wait< / span >
z = [z, z(end)< span class = "org-builtin" > *< / span > ones(size(time_w))];
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Scans< / span >
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:args.n< / span >
z = [z, z(end)< span class = "org-builtin" > *< / span > ones(size(time_y))];
2021-06-30 22:45:20 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > if< / span > < span class = "org-matlab-math" > i< / span > < span class = "org-builtin" > < < / span > args.n
z = [z, z(end) < span class = "org-builtin" > -< / span > (time_z< span class = "org-builtin" > /< / span > args.tz)< span class = "org-builtin" > *< / span > args.z_tot< span class = "org-builtin" > /< / span > (args.n< span class = "org-builtin" > -< / span > 1)];
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< span class = "org-keyword" > end< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Wait a litle bit< / span >
z = [z, z(end)< span class = "org-builtin" > *< / span > ones(size(time_w))];
2021-06-14 18:08:46 +02:00
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > End motion< / span >
z = [z, z(end) < span class = "org-builtin" > -< / span > z(end)< span class = "org-builtin" > *< / span > time_i< span class = "org-builtin" > /< / span > args.ti];
2021-06-30 22:45:20 +02:00
< / pre >
2021-06-14 17:29:28 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org932f1e9" class = "outline-4" >
< h4 id = "org932f1e9" > Reference Signal< / h4 >
< div class = "outline-text-4" id = "text-org932f1e9" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > t = 0< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > *< / span > (length(y) < span class = "org-builtin" > -< / span > 1);
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > ref = zeros(length(y), 7);
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
ref(< span class = "org-builtin" > :< / span > , 1) = t;
ref(< span class = "org-builtin" > :< / span > , 3) = y;
ref(< span class = "org-builtin" > :< / span > , 4) = z;
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org1102bd3" class = "outline-3" >
< h3 id = "org1102bd3" > < span class = "section-number-3" > 4.3.< / span > < code > generateSpiralAngleTrajectory< / code > < / h3 >
2021-07-02 18:26:05 +02:00
< div class = "outline-text-3" id = "text-4-3" >
2021-06-14 17:29:28 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "org9db106a" > < / a >
< / p >
< / div >
< div id = "outline-container-orgacd87d8" class = "outline-4" >
< h4 id = "orgacd87d8" > Function description< / h4 >
< div class = "outline-text-4" id = "text-orgacd87d8" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [ref]< / span > = < span class = "org-function-name" > generateSpiralAngleTrajectory< / span > (< span class = "org-variable-name" > args< / span > )
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > generateSpiralAngleTrajectory -< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Syntax: [ref] = generateSpiralAngleTrajectory(args)< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Inputs:< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > - args< / span >
< span class = "org-comment" > %< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Outputs:< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > - ref - Reference Signal< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org98d3529" class = "outline-4" >
< h4 id = "org98d3529" > Optional Parameters< / h4 >
< div class = "outline-text-4" id = "text-org98d3529" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > arguments
args.R_tot (1,1) double {mustBeNumeric, mustBePositive} = 10e< span class = "org-builtin" > -< / span > 6 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [rad]< / span >
args.n_turn (1,1) double {mustBeInteger, mustBePositive} = 5 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [-]< / span >
args.Ts (1,1) double {mustBeNumeric, mustBePositive} = 1e< span class = "org-builtin" > -< / span > 3 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [s]< / span >
args.t_turn (1,1) double {mustBeNumeric, mustBePositive} = 1 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [s]< / span >
args.t_end (1,1) double {mustBeNumeric, mustBePositive} = 1 < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > [s]< / span >
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org81e2c56" class = "outline-4" >
< h4 id = "org81e2c56" > Initialize Time Vectors< / h4 >
< div class = "outline-text-4" id = "text-org81e2c56" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > time_s = 0< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > :< / span > args.n_turn< span class = "org-builtin" > *< / span > args.t_turn;
time_e = 0< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > :< / span > args.t_end;
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org5135672" class = "outline-4" >
< h4 id = "org5135672" > Rx and Ry vectors< / h4 >
< div class = "outline-text-4" id = "text-org5135672" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > Rx = sin(2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > time_s< span class = "org-builtin" > /< / span > args.t_turn)< span class = "org-builtin" > .*< / span > (args.R_tot< span class = "org-builtin" > *< / span > time_s< span class = "org-builtin" > /< / span > (args.n_turn< span class = "org-builtin" > *< / span > args.t_turn));
Ry = cos(2< span class = "org-builtin" > *< / span > < span class = "org-matlab-math" > pi< / span > < span class = "org-builtin" > *< / span > time_s< span class = "org-builtin" > /< / span > args.t_turn)< span class = "org-builtin" > .*< / span > (args.R_tot< span class = "org-builtin" > *< / span > time_s< span class = "org-builtin" > /< / span > (args.n_turn< span class = "org-builtin" > *< / span > args.t_turn));
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > Rx = [Rx, 0< span class = "org-builtin" > *< / span > time_e];
Ry = [Ry, Ry(end) < span class = "org-builtin" > -< / span > Ry(end)< span class = "org-builtin" > *< / span > time_e< span class = "org-builtin" > /< / span > args.t_end];
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org9fc9808" class = "outline-4" >
< h4 id = "org9fc9808" > Reference Signal< / h4 >
< div class = "outline-text-4" id = "text-org9fc9808" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > t = 0< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > :< / span > args.Ts< span class = "org-builtin" > *< / span > (length(Rx) < span class = "org-builtin" > -< / span > 1);
< / pre >
< / div >
< div class = "org-src-container" >
< pre class = "src src-matlab" > ref = zeros(length(Rx), 7);
ref(< span class = "org-builtin" > :< / span > , 1) = t;
ref(< span class = "org-builtin" > :< / span > , 5) = Rx;
ref(< span class = "org-builtin" > :< / span > , 6) = Ry;
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-org7e41bc2" class = "outline-3" >
< h3 id = "org7e41bc2" > < span class = "section-number-3" > 4.4.< / span > < code > getTransformationMatrixAcc< / code > < / h3 >
< div class = "outline-text-3" id = "text-4-4" >
< p >
< a id = "orgcac27ec" > < / a >
2021-06-14 17:29:28 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< / div >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-org4e45815" class = "outline-4" >
< h4 id = "org4e45815" > Function description< / h4 >
< div class = "outline-text-4" id = "text-org4e45815" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [M]< / span > = < span class = "org-function-name" > getTransformationMatrixAcc< / span > (< span class = "org-variable-name" > Opm< / span > , < span class = "org-variable-name" > Osm< / span > )
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > getTransformationMatrixAcc -< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-comment" > %< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Syntax: [M] = getTransformationMatrixAcc(Opm, Osm)< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-comment" > %< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Inputs:< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > - Opm - Nx3 (N = number of accelerometer measurements) X,Y,Z position of accelerometers< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > - Opm - Nx3 (N = number of accelerometer measurements) Unit vectors representing the accelerometer orientation< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-comment" > %< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Outputs:< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > - M - Transformation Matrix< / span >
2021-06-30 22:45:20 +02:00
< / pre >
2021-06-14 17:29:28 +02:00
< / div >
< / div >
< / div >
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgb00c58f" class = "outline-4" >
< h4 id = "orgb00c58f" > Transformation matrix from motion of the solid body to accelerometer measurements< / h4 >
< div class = "outline-text-4" id = "text-orgb00c58f" >
2021-06-14 17:29:28 +02:00
< p >
2021-06-30 22:45:20 +02:00
Let’ s try to estimate the x-y-z acceleration of any point of the solid body from the acceleration/angular acceleration of the solid body expressed in \(\{O\}\).
For any point \(p_i\) of the solid body (corresponding to an accelerometer), we can write:
< / p >
\begin{equation}
\begin{bmatrix}
a_{i,x} \\ a_{i,y} \\ a_{i,z}
\end{bmatrix} = \begin{bmatrix}
\dot{v}_x \\ \dot{v}_y \\ \dot{v}_z
\end{bmatrix} + p_i \times \begin{bmatrix}
\dot{\omega}_x \\ \dot{\omega}_y \\ \dot{\omega}_z
\end{bmatrix}
\end{equation}
2021-06-14 17:29:28 +02:00
< p >
2021-06-30 22:45:20 +02:00
We can write the cross product as a matrix product using the skew-symmetric transformation:
< / p >
\begin{equation}
\begin{bmatrix}
a_{i,x} \\ a_{i,y} \\ a_{i,z}
\end{bmatrix} = \begin{bmatrix}
\dot{v}_x \\ \dot{v}_y \\ \dot{v}_z
\end{bmatrix} + \underbrace{\begin{bmatrix}
0 & p_{i,z} & -p_{i,y} \\
-p_{i,z} & 0 & p_{i,x} \\
p_{i,y} & -p_{i,x} & 0
\end{bmatrix}}_{P_{i,[\times]}} \cdot \begin{bmatrix}
\dot{\omega}_x \\ \dot{\omega}_y \\ \dot{\omega}_z
\end{bmatrix}
\end{equation}
2021-06-14 17:29:28 +02:00
2021-06-30 22:45:20 +02:00
< p >
If we now want to know the (scalar) acceleration \(a_i\) of the point \(p_i\) in the direction of the accelerometer direction \(\hat{s}_i\), we can just project the 3d acceleration on \(\hat{s}_i\):
< / p >
\begin{equation}
a_i = \hat{s}_i^T \cdot \begin{bmatrix}
a_{i,x} \\ a_{i,y} \\ a_{i,z}
\end{bmatrix} = \hat{s}_i^T \cdot \begin{bmatrix}
\dot{v}_x \\ \dot{v}_y \\ \dot{v}_z
\end{bmatrix} + \left( \hat{s}_i^T \cdot P_{i,[\times]} \right) \cdot \begin{bmatrix}
\dot{\omega}_x \\ \dot{\omega}_y \\ \dot{\omega}_z
\end{bmatrix}
\end{equation}
2021-06-14 17:29:28 +02:00
2021-06-30 22:45:20 +02:00
< p >
Which is equivalent as a simple vector multiplication:
< / p >
\begin{equation}
a_i = \begin{bmatrix}
\hat{s}_i^T & \hat{s}_i^T \cdot P_{i,[\times]}
\end{bmatrix}
\begin{bmatrix}
\dot{v}_x \\ \dot{v}_y \\ \dot{v}_z \\ \dot{\omega}_x \\ \dot{\omega}_y \\ \dot{\omega}_z
\end{bmatrix} = \begin{bmatrix}
\hat{s}_i^T & \hat{s}_i^T \cdot P_{i,[\times]}
\end{bmatrix} {}^O\vec{x}
\end{equation}
2021-06-14 17:29:28 +02:00
< p >
2021-06-30 22:45:20 +02:00
And finally we can combine the 6 (line) vectors for the 6 accelerometers to write that in a matrix form.
We obtain Eq. \eqref{eq:M_matrix}.
2021-06-14 17:29:28 +02:00
< / p >
2021-08-11 00:28:02 +02:00
< div class = "important" id = "orgacfc7de" >
2021-06-30 22:45:20 +02:00
< p >
The transformation from solid body acceleration \({}^O\vec{x}\) from sensor measured acceleration \(\vec{a}\) is:
< / p >
\begin{equation} \label{eq:M_matrix}
\vec{a} = \underbrace{\begin{bmatrix}
\hat{s}_1^T & \hat{s}_1^T \cdot P_{1,[\times]} \\
\vdots & \vdots \\
\hat{s}_6^T & \hat{s}_6^T \cdot P_{6,[\times]}
\end{bmatrix}}_{M} {}^O\vec{x}
\end{equation}
2021-06-14 17:29:28 +02:00
2021-06-30 22:45:20 +02:00
< p >
with \(\hat{s}_i\) the unit vector representing the measured direction of the i’ th accelerometer expressed in frame \(\{O\}\) and \(P_{i,[\times]}\) the skew-symmetric matrix representing the cross product of the position of the i’ th accelerometer expressed in frame \(\{O\}\).
2021-06-14 17:29:28 +02:00
< / p >
2021-06-30 22:45:20 +02:00
2021-06-14 17:29:28 +02:00
< / div >
< p >
2021-06-30 22:45:20 +02:00
Let’ s define such matrix using matlab:
2021-06-14 17:29:28 +02:00
< / p >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > M = zeros(length(Opm), 6);
2021-08-11 00:28:02 +02:00
< span class = "org-keyword" > for< / span > < span class = "org-variable-name" > < span class = "org-matlab-math" > i< / span > < / span > = < span class = "org-constant" > 1:length(Opm)< / span >
Ri = [0, Opm(3,< span class = "org-matlab-math" > i< / span > ), < span class = "org-builtin" > -< / span > Opm(2,< span class = "org-matlab-math" > i< / span > );
< span class = "org-builtin" > -< / span > Opm(3,< span class = "org-matlab-math" > i< / span > ), 0, Opm(1,< span class = "org-matlab-math" > i< / span > );
Opm(2,< span class = "org-matlab-math" > i< / span > ), < span class = "org-builtin" > -< / span > Opm(1,< span class = "org-matlab-math" > i< / span > ), 0];
M(< span class = "org-matlab-math" > i< / span > , 1< span class = "org-builtin" > :< / span > 3) = Osm(< span class = "org-builtin" > :< / span > ,< span class = "org-matlab-math" > i< / span > )< span class = "org-builtin" > '< / span > ;
M(< span class = "org-matlab-math" > i< / span > , 4< span class = "org-builtin" > :< / span > 6) = Osm(< span class = "org-builtin" > :< / span > ,< span class = "org-matlab-math" > i< / span > )< span class = "org-builtin" > '*< / span > Ri;
2021-06-30 22:45:20 +02:00
< span class = "org-keyword" > end< / span >
< / pre >
< / div >
2021-06-14 17:29:28 +02:00
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-keyword" > end< / span >
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgce997c7" class = "outline-3" >
< h3 id = "orgce997c7" > < span class = "section-number-3" > 4.5.< / span > < code > getJacobianNanoHexapod< / code > < / h3 >
< div class = "outline-text-3" id = "text-4-5" >
2021-06-30 22:45:20 +02:00
< p >
2021-08-11 00:28:02 +02:00
< a id = "orgde28504" > < / a >
2021-06-30 22:45:20 +02:00
< / p >
< / div >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgbcc9780" class = "outline-4" >
< h4 id = "orgbcc9780" > Function description< / h4 >
< div class = "outline-text-4" id = "text-orgbcc9780" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > < span class = "org-keyword" > function< / span > < span class = "org-variable-name" > [J]< / span > = < span class = "org-function-name" > getJacobianNanoHexapod< / span > (< span class = "org-variable-name" > Hbm< / span > )
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > getJacobianNanoHexapod -< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-comment" > %< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Syntax: [J] = getJacobianNanoHexapod(Hbm)< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-comment" > %< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Inputs:< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > - Hbm - Height of {B} w.r.t. {M} [m]< / span >
2021-06-30 22:45:20 +02:00
< span class = "org-comment" > %< / span >
2021-08-11 00:28:02 +02:00
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Outputs:< / span >
< span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > - J - Jacobian Matrix< / span >
2021-06-30 22:45:20 +02:00
< / pre >
< / div >
< / div >
< / div >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
< div id = "outline-container-orgb865195" class = "outline-4" >
< h4 id = "orgb865195" > Transformation matrix from motion of the solid body to accelerometer measurements< / h4 >
< div class = "outline-text-4" id = "text-orgb865195" >
2021-06-30 22:45:20 +02:00
< div class = "org-src-container" >
2021-08-11 00:28:02 +02:00
< pre class = "src src-matlab" > Fa = [[< span class = "org-builtin" > -< / span > 86.05, < span class = "org-builtin" > -< / span > 74.78, 22.49],
[ 86.05, < span class = "org-builtin" > -< / span > 74.78, 22.49],
[ 107.79, < span class = "org-builtin" > -< / span > 37.13, 22.49],
2021-06-30 22:45:20 +02:00
[ 21.74, 111.91, 22.49],
2021-08-11 00:28:02 +02:00
[< span class = "org-builtin" > -< / span > 21.74, 111.91, 22.49],
[< span class = "org-builtin" > -< / span > 107.79, < span class = "org-builtin" > -< / span > 37.13, 22.49]]< span class = "org-builtin" > '*< / span > 1e< span class = "org-builtin" > -< / span > 3; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Ai w.r.t. {F} [m]< / span >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
Mb = [[< span class = "org-builtin" > -< / span > 28.47, < span class = "org-builtin" > -< / span > 106.25, < span class = "org-builtin" > -< / span > 22.50],
[ 28.47, < span class = "org-builtin" > -< / span > 106.25, < span class = "org-builtin" > -< / span > 22.50],
[ 106.25, 28.47, < span class = "org-builtin" > -< / span > 22.50],
[ 77.78, 77.78, < span class = "org-builtin" > -< / span > 22.50],
[< span class = "org-builtin" > -< / span > 77.78, 77.78, < span class = "org-builtin" > -< / span > 22.50],
[< span class = "org-builtin" > -< / span > 106.25, 28.47, < span class = "org-builtin" > -< / span > 22.50]]< span class = "org-builtin" > '*< / span > 1e< span class = "org-builtin" > -< / span > 3; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Bi w.r.t. {M} [m]< / span >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
H = 95e< span class = "org-builtin" > -< / span > 3; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Stewart platform height [m]< / span >
Fb = Mb < span class = "org-builtin" > +< / span > [0; 0; H]; < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Bi w.r.t. {F} [m]< / span >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
si = Fb < span class = "org-builtin" > -< / span > Fa;
si = si< span class = "org-builtin" > ./< / span > vecnorm(si); < span class = "org-comment-delimiter" > % < / span > < span class = "org-comment" > Normalize< / span >
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
Bb = Mb < span class = "org-builtin" > -< / span > [0; 0; Hbm];
2021-06-14 17:29:28 +02:00
2021-08-11 00:28:02 +02:00
J = [si< span class = "org-builtin" > '< / span > , cross(Bb, si)< span class = "org-builtin" > '< / span > ];
2021-06-30 22:45:20 +02:00
< / pre >
2021-06-14 17:29:28 +02:00
< / div >
< / div >
2021-06-07 19:00:29 +02:00
< / div >
2021-06-14 18:08:46 +02:00
< / div >
2021-06-09 18:14:45 +02:00
< / div >
2021-08-11 00:28:02 +02:00
< style > . csl-entry { text-indent : -1.5 em ; margin-left : 1.5 em ; } < / style > < h2 class = 'citeproc-org-bib-h2' > Bibliography< / h2 >
< div class = "csl-bib-body" >
< div class = "csl-entry" > < a name = "citeproc_bib_item_1" > < / a > Indri, Marina, and Roberto Oboe. 2020. < i > Mechatronics and Robotics: New Trends and Challenges< / i > . CRC Press.< / div >
< div class = "csl-entry" > < a name = "citeproc_bib_item_2" > < / a > Skogestad, Sigurd, and Ian Postlethwaite. 2007. < i > Multivariable Feedback Control: Analysis and Design - Second Edition< / i > . John Wiley.< / div >
< / div >
2021-06-07 19:00:29 +02:00
< / div >
< div id = "postamble" class = "status" >
< p class = "author" > Author: Dehaeze Thomas< / p >
2021-08-11 00:28:02 +02:00
< p class = "date" > Created: 2021-08-11 mer. 00:07< / p >
2021-06-07 19:00:29 +02:00
< / div >
< / body >
< / html >