BASIC THEORY OF ECC RELATED SOURCE CODE

 <div style="font-family:Arial, Helvetica, sans-serif; line-height:1.7; max-width:900px; margin:auto; padding:20px; background:#fdfdfd; border:1px solid #ccc; border-radius:8px;">


<h2 style="color:#2a5db0;">Body Roll (Limbung) & Dashboard Dinamika Kendaraan (EEC / EU Type Approval)</h2>


<p>

Regulasi EEC / EU Type Approval tidak menetapkan sudut limbung tertentu, tetapi menilai <b>stabilitas kendaraan saat manuver ekstrem</b>. Parameter utama yang diuji:

<ul>

<li>Yaw stability (rotasi kendaraan)</li>

<li>Lateral acceleration (percepatan samping)</li>

<li>Roll motion (gerakan limbung)</li>

<li>Lateral displacement (perpindahan samping)</li>

</ul>

</p>


<hr />


<h3 style="color:#2a5db0;">1. Lateral Acceleration & Roll Moment</h3>

<p>

Lateral acceleration: <b>a<sub>y</sub> = v² / R</b><br>

Roll moment: <b>M<sub>roll</sub> = m × a<sub>y</sub> × h</b><br>

Semakin tinggi pusat gravitasi, semakin besar potensi limbung.

</p>


<hr />


<h3 style="color:#2a5db0;">2. Roll Motion & Yaw Stability</h3>

<ul>

<li>Roll angle dan roll rate menentukan seberapa cepat bodi kendaraan miring.</li>

<li>Yaw moment menentukan arah kendaraan saat lateral force berubah akibat distribusi beban roda.</li>

<li>Understeer / Oversteer dapat terjadi jika roll motion terlalu besar.</li>

</ul>


<hr />


<h3 style="color:#2a5db0;">3. Lateral Displacement</h3>

<p>

Perpindahan lateral adalah hasil akhir interaksi gaya lateral, roll moment, dan yaw moment. Body roll berlebihan → kendaraan keluar jalur.

</p>


<hr />


<h3 style="color:#2a5db0;">4. Diagram Gaya Lengkap</h3>

<pre style="background:#f4f4f4; padding:12px; border-radius:6px; overflow:auto;">

Lateral Force → Lateral Acceleration → Roll Moment

       ↓                         ↓

       Yaw Moment ← Distribusi Beban → Lateral Displacement

</pre>


<hr />


<h3 style="color:#2a5db0;">5. Diagram ASCII</h3>

<pre style="background:#f4f4f4; padding:12px; border-radius:6px; overflow:auto; font-family:monospace;">

       ↑ Roll Moment

       │

       │     ● Bodi Kendaraan

       │    / \

       │   /   \

       │

       │

       ─────────────→ Lateral Force (Fy)

       │

       │

       │

       ↓ Yaw Moment

</pre>


<hr />


<h3 style="color:#2a5db0;">6. Diagram SVG Interaktif + Animasi Panah</h3>

<svg width="100%" height="250px" viewBox="0 0 500 250">

  <rect x="200" y="100" width="100" height="40" fill="#2a5db0" rx="5" />


  <line x1="300" y1="120" x2="450" y2="120" stroke="red" stroke-width="4" marker-end="url(#arrowhead)">

    <animate attributeName="x2" values="300;450;300" dur="2s" repeatCount="indefinite"/>

  </line>

  <text x="460" y="125" fill="red" font-size="12">Lateral Force (Fy)</text>


  <line x1="250" y1="100" x2="250" y2="30" stroke="green" stroke-width="4" marker-end="url(#arrowhead)">

    <animate attributeName="y2" values="100;30;100" dur="2s" repeatCount="indefinite"/>

  </line>

  <text x="260" y="35" fill="green" font-size="12">Roll Moment</text>


  <line x1="200" y1="120" x2="150" y2="170" stroke="orange" stroke-width="4" marker-end="url(#arrowhead)">

    <animate attributeName="x2" values="200;150;200" dur="2s" repeatCount="indefinite"/>

    <animate attributeName="y2" values="120;170;120" dur="2s" repeatCount="indefinite"/>

  </line>

  <text x="80" y="180" fill="orange" font-size="12">Yaw Moment</text>


  <defs>

    <marker id="arrowhead" markerWidth="10" markerHeight="7" refX="0" refY="3.5" orient="auto">

      <polygon points="0 0, 10 3.5, 0 7" fill="black"/>

    </marker>

  </defs>

</svg>


<hr />


<h3 style="color:#2a5db0;">7. Simulasi Trajectory + Roll Angle</h3>

<svg width="100%" height="200px" viewBox="0 0 500 200">

  <path id="path" d="M50 150 Q250 50 450 150" stroke="#999" stroke-width="2" fill="none"/>

  <g>

    <rect x="-10" y="-5" width="20" height="10" fill="#2a5db0" rx="2">

      <animateMotion dur="6s" repeatCount="indefinite" rotate="auto">

        <mpath href="#path" />

      </animateMotion>

    </rect>

    <line x1="0" y1="0" x2="20" y2="0" stroke="red" stroke-width="3" marker-end="url(#arrowhead2)">

      <animate attributeName="x2" values="0;20;0" dur="2s" repeatCount="indefinite"/>

    </line>

  </g>

  <defs>

    <marker id="arrowhead2" markerWidth="10" markerHeight="7" refX="0" refY="3.5" orient="auto">

      <polygon points="0 0, 10 3.5, 0 7" fill="red"/>

    </marker>

  </defs>

</svg>


<hr />


<h3 style="color:#2a5db0;">8. Dashboard Real-Time (Gaya & Roll Angle)</h3>

<div style="display:flex; justify-content:space-around; background:#eef; padding:10px; border-radius:8px;">

  <div>

    <b>Lateral Force (Fy)</b><br>

    <div style="width:100px; height:20px; background:#ccc; border-radius:5px; overflow:hidden;">

      <div style="width:50%; height:100%; background:red; animation:lateral 2s infinite alternate;"></div>

    </div>

  </div>

  <div>

    <b>Roll Angle</b><br>

    <div style="width:100px; height:20px; background:#ccc; border-radius:5px; overflow:hidden;">

      <div style="width:30%; height:100%; background:green; animation:roll 2s infinite alternate;"></div>

    </div>

  </div>

  <div>

    <b>Yaw Moment</b><br>

    <div style="width:100px; height:20px; background:#ccc; border-radius:5px; overflow:hidden;">

      <div style="width:40%; height:100%; background:orange; animation:yaw 2s infinite alternate;"></div>

    </div>

  </div>

</div>


<style>

@keyframes lateral { from { width:30%; } to { width:70%; } }

@keyframes roll { from { width:10%; } to { width:50%; } }

@keyframes yaw { from { width:20%; } to { width:60%; } }

</style>


<hr />


<h3 style="color:#2a5db0;">9. Kesimpulan</h3>

<p>

Body roll adalah efek samping dinamika kendaraan. EEC fokus pada:

<ul>

<li>Respons terhadap gaya lateral</li>

<li>Stabilitas yaw</li>

<li>Lateral displacement tetap aman</li>

<li>Roll motion terkendali</li>

</ul>

Dashboard dan animasi trajectory membantu memahami perilaku kendaraan secara real-time.

</p>


</div>

Comments