Skip to content

Commit

Permalink
Added new DSHOT debug modes
Browse files Browse the repository at this point in the history
Added checkbox to activate edt

Restore other translation files than the english one
  • Loading branch information
damosvil committed Jan 21, 2023
1 parent 51ed2dd commit 17c1d82
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
6 changes: 5 additions & 1 deletion locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6276,8 +6276,12 @@
"message": "Bidirectional DShot (requires supported ESC firmware)",
"description": "Feature for the ESC/Motor"
},
"configurationDshotEdt": {
"message": "Built-in sensors",
"description": "ESC/Motor feature"
},
"configurationDshotBidirHelp": {
"message": "Sends ESC data to the FC via DShot telemetry. Required by RPM Filtering and dynamic idle. <br> <br>Note: Requires a compatible ESC with appropriate firmware, eg JESC, Jazzmac, BLHeli-32.",
"message": "Sends ESC data to the FC via DShot telemetry. Required by RPM Filtering and dynamic idle. <br> <br>Note: Requires a compatible ESC with appropriate firmware, eg Bluejay, AM32, JESC, Jazzmac, BLHeli-32.",
"description": "Description of the Bidirectional DShot feature of the ESC/Motor"
},
"configurationGyroSyncDenom": {
Expand Down
6 changes: 3 additions & 3 deletions src/css/tabs/onboard_logging.less
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
.blackboxRate {
select {
float: left;
width: 180px;
width: 260px;
height: 20px;
margin: 0 10px 5px 0;
border: 1px solid var(--subtleAccent);
Expand All @@ -180,7 +180,7 @@
.blackboxDebugMode {
select {
float: left;
width: 180px;
width: 260px;
height: 20px;
margin: 0 10px 5px 0;
border: 1px solid var(--subtleAccent);
Expand All @@ -193,7 +193,7 @@
.blackboxDevice {
select {
float: left;
width: 180px;
width: 260px;
height: 20px;
margin: 0 10px 5px 0;
border: 1px solid var(--subtleAccent);
Expand Down
8 changes: 8 additions & 0 deletions src/js/tabs/onboard_logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,14 @@ onboard_logging.initialize = function (callback) {
{text: "VTX_MSP"},
{text: "GPS_DOP"},
{text: "ANGLEMODE"},
{text: "FAILSAFE"},
{text: "DSHOT_STATUS_N_TEMPERATURE"},
{text: "DSHOT_STATUS_N_VOLTAGE"},
{text: "DSHOT_STATUS_N_CURRENT"},
{text: "DSHOT_STATUS_N_DEBUG1"},
{text: "DSHOT_STATUS_N_DEBUG2"},
{text: "DSHOT_STATUS_N_DEMAG_METRIC"},
{text: "DSHOT_STATUS_N_ERPM_FRACTION"},
];

for (let i = 0; i < FC.PID_ADVANCED_CONFIG.debugModeCount; i++) {
Expand Down
10 changes: 9 additions & 1 deletion src/tabs/motors.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,15 @@
<div style="float: left; height: 20px; margin-right: 14px; margin-left: 3px;">
<input type="checkbox" id="dshotBidir" class="toggle" />
</div>
<span class="freelabel" i18n="configurationDshotBidir"></span>
<div style="float: left; height: 20px; margin-right: 14px; margin-left: 3px;">
<span class="freelabel" i18n="configurationDshotBidir"></span>
</div>
<div style="float: left; height: 20px; margin-right: 14px; margin-left: 3px;">
<input type="checkbox" id="dshotEdt" class="toggle" />
</div>
<div style="float: left; height: 20px; margin-right: 14px; margin-left: 3px;">
<span class="freelabel" i18n="configurationDshotEdt"></span>
</div>
<div class="helpicon cf_tip" i18n_title="configurationDshotBidirHelp"></div>
</div>
<div class="number motorPoles">
Expand Down

0 comments on commit 17c1d82

Please sign in to comment.