mirror of
https://github.com/lekrsu/shfw-walkthrough.git
synced 2025-02-02 21:07:19 +01:00
34 lines
1.3 KiB
HTML
34 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Peak Current Draw Calculator</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Peak Current Draw Calculator</h1>
|
|
<div class="input-section">
|
|
<!-- Iq (Torque component) -->
|
|
<label for="torqueAmps">Torque amps (I<sub>q</sub>) in A:</label>
|
|
<input type="number" id="torqueAmps">
|
|
</div>
|
|
<div class="input-section">
|
|
<!-- Inputs for calculating Id (Flux component) -->
|
|
<label for="initialFlux">Initial flux (I<sub>d</sub>, base) in A:</label>
|
|
<input type="number" id="initialFlux">
|
|
<label for="variableFlux">Variable flux (I<sub>d</sub>, variable) in mAh:</label>
|
|
<input type="number" id="variableFlux">
|
|
<label for="currentMaxSpeed">Current max speed in km/h:</label>
|
|
<input type="number" id="currentMaxSpeed">
|
|
<label for="activationSpeed">Start speed in km/h:</label>
|
|
<input type="number" id="activationSpeed">
|
|
</div>
|
|
<button onclick="calculatePeakCurrentDraw()">Calculate Peak Current Draw (I<sub>total</sub>)</button>
|
|
<div id="result"></div>
|
|
</div>
|
|
<script src="script.js"></script>
|
|
</body>
|
|
</html>
|