mirror of
https://github.com/lekrsu/shfw-walkthrough.git
synced 2024-11-13 18:10:52 +01:00
35 lines
1.6 KiB
HTML
35 lines
1.6 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>
|
|
<p class="note">Note: The values calculated here represent theoretical outputs based on input parameters. Actual values may vary due to system efficiency, environmental conditions, and component tolerances. Please use these values for planning purposes and consult hardware specifications for real-world applications.</p>
|
|
<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">Field weakening 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>
|