Skip to content

Commit fe075f0

Browse files
committed
add WMA G2 Profile
1 parent e6c8667 commit fe075f0

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

assets/js/language.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ function switchLanguage(language) {
7070
document.getElementById('DE-G2-ProfileSelection-Disclaimer').style.display = (language === 'DE') ? 'block' : 'none';
7171
document.getElementById('EN-G2-ProfileSelection-Disclaimer-2').style.display = (language === 'EN') ? 'block' : 'none';
7272
document.getElementById('DE-G2-ProfileSelection-Disclaimer-2').style.display = (language === 'DE') ? 'block' : 'none';
73+
document.getElementById('EN-G2-ProfileSelection-Disclaimer-3').style.display = (language === 'EN') ? 'block' : 'none';
74+
document.getElementById('DE-G2-ProfileSelection-Disclaimer-3').style.display = (language === 'DE') ? 'block' : 'none';
7375
document.getElementById('EN-G2-Contents').style.display = (language === 'EN') ? 'block' : 'none';
7476
document.getElementById('DE-G2-Contents').style.display = (language === 'DE') ? 'block' : 'none';
7577
document.getElementById('EN-G2-Throttle').style.display = (language === 'EN') ? 'block' : 'none';

assets/js/profile.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@ function showProfile_G2(profile) {
55
currentProfile = profile; // Speichert das aktuelle Profil
66
document.getElementById('settings-default-disclaimer_G2').style.display = (profile === 'default') ? 'block' : 'none';
77
document.getElementById('settings-tuned-disclaimer_G2').style.display = (profile === 'tuned') ? 'block' : 'none';
8+
document.getElementById('settings-wma-disclaimer_G2').style.display = (profile === 'wma') ? 'block' : 'none';
89
document.getElementById('settings-default-throttle_G2').style.display = (profile === 'default') ? 'block' : 'none';
910
document.getElementById('settings-tuned-throttle_G2').style.display = (profile === 'tuned') ? 'block' : 'none';
11+
document.getElementById('settings-wma-throttle_G2').style.display = (profile === 'wma') ? 'block' : 'none';
1012
document.getElementById('settings-default-mss_G2').style.display = (profile === 'default') ? 'block' : 'none';
1113
document.getElementById('settings-tuned-mss_G2').style.display = (profile === 'tuned') ? 'block' : 'none';
14+
document.getElementById('settings-wma-mss_G2').style.display = (profile === 'wma') ? 'block' : 'none';
1215
document.getElementById('settings-default-fwk_G2').style.display = (profile === 'default') ? 'block' : 'none';
1316
document.getElementById('settings-tuned-fwk_G2').style.display = (profile === 'tuned') ? 'block' : 'none';
17+
document.getElementById('settings-wma-fwk_G2').style.display = (profile === 'wma') ? 'block' : 'none';
1418
document.getElementById('settings-default-cc_G2').style.display = (profile === 'default') ? 'block' : 'none';
1519
document.getElementById('settings-tuned-cc_G2').style.display = (profile === 'tuned') ? 'block' : 'none';
20+
document.getElementById('settings-wma-cc_G2').style.display = (profile === 'wma') ? 'block' : 'none';
1621
}
1722

1823
function showProfile_G30(profile) {

index.html

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ <h3 class="major">Profil wählen</h3>
589589
<select name="category-settings" id="category-settings" onchange="showProfile_G2(this.value)">
590590
<option value="default">Factory Settings</option>
591591
<option value="tuned">30 Km/h Settings</option>
592+
<option value="wma">WMA 40+km/h Settings</option>
592593
</select>
593594
</dropdown>
594595
<br>
@@ -614,6 +615,18 @@ <h3 class="major">Profil wählen</h3>
614615
</div>
615616
<br>
616617
</div>
618+
<!-- WMA Disclaimer -->
619+
<div id="settings-wma-disclaimer_G2" style="display: none">
620+
<div id="EN-G2-ProfileSelection-Disclaimer-3" style="display: block">
621+
622+
<label style="width: auto; padding-left: 1rem; color:crimson;">The following settings are designed to maximize the performance of the scooter and reach the limits of what is technically feasible. <br><br>They can significantly affect the service life of the battery and the overall performance of the scooter and may lead to damage or malfunctions of the hardware.<br><br>Use at your own risk!</label>
623+
</div>
624+
<div id="DE-G2-ProfileSelection-Disclaimer-3" style="display: none">
625+
626+
<label style="width: auto; padding-left: 1rem; color:crimson;">Die folgenden Einstellungen sind auf maximale Leistungsfähigkeit des Scooters ausgelegt und erreichen die Grenzen des technisch Machbaren. <br><br> Sie können die Lebensdauer der Batterie und die Gesamtleistung des Scooters erheblich beeinflussen und führen möglicherweise zu Beschädigungen oder Fehlfunktionen der Hardware.<br><br>Benutzung auf eigene Gefahr!</label>
627+
</div>
628+
<br>
629+
</div>
617630
</div>
618631
<!-- Contents -->
619632
<div>
@@ -724,6 +737,45 @@ <h3 class="major" id="throttle_G2">Throttle</h3>
724737
<label style="width: auto; padding-left: 1rem;">Acceleration Boost 40% - 100%</label>
725738
<br>
726739
</div>
740+
<!-- Profile Settings WMA40 -->
741+
<div class="table-wrapper" id="settings-wma-throttle_G2" style="display: none" >
742+
<table>
743+
<thead>
744+
<tr>
745+
<th>MODE</th>
746+
<th>SPEED LIMIT</th>
747+
<th>THROTTLE MODE</th>
748+
<th>QUADRATIC</th>
749+
<th>PWM OVERMOD.</th>
750+
</tr>
751+
</thead>
752+
<tbody>
753+
<tr>
754+
<td>ECO</td>
755+
<td>22 km/h</td>
756+
<td>DPC 20A</td>
757+
<td>1</td>
758+
<td>OFF</td>
759+
</tr>
760+
<tr>
761+
<td>Drive</td>
762+
<td>30 km/h</td>
763+
<td>DPC 25A</td>
764+
<td>0.7</td>
765+
<td>ON</td>
766+
</tr>
767+
<tr>
768+
<td>Sports</td>
769+
<td>40 km/h or OFF</td>
770+
<td>DPC 28A</td>
771+
<td>0.5</td>
772+
<td>ON</td>
773+
</tr>
774+
</tbody>
775+
</table>
776+
<label style="width: auto; padding-left: 1rem;">Acceleration Boost 40% - 100%</label>
777+
<br>
778+
</div>
727779
</div>
728780
</div>
729781
<!-- Brake Settings -->
@@ -780,6 +832,12 @@ <h3 class="major" id="motor-start-speed_G2">Motor start speed</h3>
780832
<label style="width: auto; padding-left: 1rem;">Enable negative MSP: OFF</label>
781833
<br>
782834
</div>
835+
<!-- WMA MSP -->
836+
<div id="settings-wma-mss_G2" style="display: none">
837+
<label style="width: auto; padding-left: 1rem;">Motor Start Speed: 0 km/h</label>
838+
<label style="width: auto; padding-left: 1rem;">Enable negative MSP: ON</label>
839+
<br>
840+
</div>
783841
</div>
784842
<!-- Field weakening Settings -->
785843
<div>
@@ -814,6 +872,19 @@ <h3 class="major" id="field-weakening_G2">Field weakening</h3>
814872
<label style="width: auto; padding-left: 1rem;">Maximum Field Current (Id): 30A</label>
815873
<br>
816874
</div>
875+
<!-- WMA FWK -->
876+
<div id="settings-wma-fwk_G2" style="display: none">
877+
<label style="width: auto; padding-left: 1rem;">Enable in ECO Mode: OFF</label>
878+
<label style="width: auto; padding-left: 1rem;">Enable in Drive Mode: ON</label>
879+
<label style="width: auto; padding-left: 1rem;">Enable in Sports Mode: ON</label>
880+
<br>
881+
<label style="width: auto; padding-left: 1rem;">Starting Speed: 24 km/h</label>
882+
<label style="width: auto; padding-left: 1rem;">Initial Current: 5A</label>
883+
<label style="width: auto; padding-left: 1rem;">Variable Current: 1500 ma/km/h</label>
884+
<label style="width: auto; padding-left: 1rem;">Maximum Torque current (Iq): 75A</label>
885+
<label style="width: auto; padding-left: 1rem;">Maximum Field Current (Id): 40A</label>
886+
<br>
887+
</div>
817888
</div>
818889
<!-- Cruise Control -->
819890
<div>
@@ -840,6 +911,18 @@ <h3 class="major" id="CruiseControl_G2">Cruise Control</h3>
840911
<label style="width: auto; padding-left: 1rem;">Beep type when disengaging: None</label>
841912
<br>
842913
</div>
914+
<div id="settings-wma-cc_G2" style="display: none">
915+
<label style="width: auto; padding-left: 1rem;">Cruise Control: ON</label>
916+
<label style="width: auto; padding-left: 1rem;">Activation Type: Time</label>
917+
<label style="width: auto; padding-left: 1rem;">Activation Delay: 5 seconds</label>
918+
<label style="width: auto; padding-left: 1rem;">Inc/Dec CC speed with trottle : OFF</label>
919+
<label style="width: auto; padding-left: 1rem;">Use throttle pos. in speed: OFF</label>
920+
<label style="width: auto; padding-left: 1rem;">Speed-based CC in DPS Mode: OFF</label>
921+
<br>
922+
<label style="width: auto; padding-left: 1rem;">Beep type when engaging: Long</label>
923+
<label style="width: auto; padding-left: 1rem;">Beep type when disengaging: None</label>
924+
<br>
925+
</div>
843926
</div>
844927
<!-- Modes-->
845928
<div>

0 commit comments

Comments
 (0)