Skip to content

Commit 1301f97

Browse files
authored
Show wiki to target, ie. Board---FRSKYF4 (#3187)
1 parent 3a6ea29 commit 1301f97

File tree

3 files changed

+15
-25
lines changed

3 files changed

+15
-25
lines changed

locales/en/messages.json

+3-22
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,6 @@
16651665
"message": "Boost iTerm and increase P during fast throttle changes.<br><br>8.0 means about 8x iTerm boost",
16661666
"description": "Anti Gravity Gain Parameter Help Icon"
16671667
},
1668-
16691668
"pidTuningAntiGravityThres": {
16701669
"message": "Threshold",
16711670
"description": "Anti Gravity Threshold Parameter"
@@ -2074,7 +2073,6 @@
20742073
"pidTuningEepromSaved": {
20752074
"message": "EEPROM <span class=\"message-positive\">saved</span>"
20762075
},
2077-
20782076
"tuningHelp": {
20792077
"message": "<b>Tuning tips</b><br /><span class=\"message-negative\">IMPORTANT:</span> It is important to verify motor temperatures during first flights. The higher the filter value gets the better it may fly, but you also will get more noise into the motors. <br>Default value of 100Hz is optimal, but for noiser setups you can try lowering Dterm filter to 50Hz and possibly also the gyro filter."
20802078
},
@@ -2188,14 +2186,12 @@
21882186
"receiverModelPreview": {
21892187
"message": "Preview"
21902188
},
2191-
21922189
"receiverMspWarningText": {
21932190
"message": "These sticks allow Betaflight to be armed and tested without a transmitter or receiver being present. However, <strong>this feature is not intended for flight and propellers must not be attached.</strong><br /><br />This feature does not guarantee reliable control of your craft. <strong>Serious injury is likely to result if propellers are left on.</strong>"
21942191
},
21952192
"receiverMspEnableButton": {
21962193
"message": "Enable controls"
21972194
},
2198-
21992195
"auxiliaryHelp": {
22002196
"message": "Configure modes here using a combination of ranges and/or links to other modes (links supported on BF 4.0 and later). Use <strong>ranges</strong> to define the switches on your transmitter and corresponding mode assignments. A receiver channel that gives a reading between a range min/max will activate the mode. Use a <strong>link</strong> to activate a mode when another mode is activated. <strong>Exceptions:</strong> ARM cannot be linked to or from another mode, modes cannot be linked to other modes that are configured with a link (chained links). Multiple ranges/links can be used to activate any mode. If there is more than one range/link defined for a mode, each of them can be set to <strong>AND</strong> or <strong>OR</strong>. A mode will be activated when:<br />- ALL <strong>AND</strong> ranges/links are active; OR<br />- at least one <strong>OR</strong> range/link is active.<br /><br />Remember to save your settings using the Save button."
22012197
},
@@ -2383,7 +2379,6 @@
23832379
"adjustmentsEepromSaved": {
23842380
"message": "EEPROM <span class=\"message-positive\">saved</span>"
23852381
},
2386-
23872382
"transponderNotSupported": {
23882383
"message": "Your flight controller's firmware does not support transponder functionality."
23892384
},
@@ -2450,7 +2445,6 @@
24502445
"transponderEepromSaved": {
24512446
"message": "EEPROM <span class=\"message-positive\">saved</span>"
24522447
},
2453-
24542448
"servosFirmwareUpgradeRequired": {
24552449
"message": "Servos requires firmware &gt;= 1.10.0. and target support."
24562450
},
@@ -2580,7 +2574,6 @@
25802574
"gnssHealthyUnhealthy": {
25812575
"message": "unhealthy"
25822576
},
2583-
25842577
"motorsVoltage": {
25852578
"message": "Voltage:"
25862579
},
@@ -2599,7 +2592,6 @@
25992592
"motorsmAhDrawnValue": {
26002593
"message": "$1 mAh"
26012594
},
2602-
26032595
"motorsText":{
26042596
"message": "Motors"
26052597
},
@@ -2627,7 +2619,6 @@
26272619
"motorNumber8":{
26282620
"message": "Motor - 8"
26292621
},
2630-
26312622
"servosText":{
26322623
"message": "Servos"
26332624
},
@@ -2655,7 +2646,6 @@
26552646
"servoNumber8":{
26562647
"message": "Servo - 8"
26572648
},
2658-
26592649
"motorsResetMaximumButton":{
26602650
"message": "Reset"
26612651
},
@@ -2702,7 +2692,6 @@
27022692
"motorsDialogSettingsChangedOk": {
27032693
"message": "OK"
27042694
},
2705-
27062695
"motorOutputReorderDialogClose": {
27072696
"message": "Cancel"
27082697
},
@@ -2817,7 +2806,6 @@
28172806
"escDshotDirectionDialog-StopWizard": {
28182807
"message": "Stop motors"
28192808
},
2820-
28212809
"sensorsInfo": {
28222810
"message": "Keep in mind that using fast update periods and rendering multiple graphs at the same time is resource heavy and will burn your battery quicker if you use a laptop.<br />We recommend to only render graphs for sensors you are interested in while using reasonable update periods."
28232811
},
@@ -2866,7 +2854,6 @@
28662854
"sensorsDebugTitle": {
28672855
"message": "Debug"
28682856
},
2869-
28702857
"cliInfo": {
28712858
"message": "<strong>Note:</strong> Leaving CLI tab or pressing Disconnect will <strong>automatically</strong> send \"<strong>exit</strong>\" to the board. With the latest firmware this will make the controller <strong>restart</strong> and unsaved changes will be <strong>lost</strong>.<p><strong><span class=\"message-negative\">Warning:</span></strong> Some commands in CLI can result in arbitrary signals being sent on the motor output pins. This can cause motors to spin up if a battery is connected. Therefore it is highly recommended to make sure that <strong>no battery is connected before entering commands in CLI</strong>."
28722859
},
@@ -2909,7 +2896,6 @@
29092896
"cliConfirmSnippetBtn": {
29102897
"message": "Execute"
29112898
},
2912-
29132899
"loggingNote": {
29142900
"message": "Data will be logged in this tab <span class=\"message-negative\">only</span>, leaving the tab will <span class=\"message-negative\">cancel</span> logging and application will return to its normal <strong>\"configurator\"</strong> state.<br /> You are free to select the global update period, data will be written into the log file every <strong>1</strong> second for performance reasons."
29152901
},
@@ -2943,7 +2929,6 @@
29432929
"loggingAutomaticallyRetained": {
29442930
"message": "Automatically loaded previous log file: <strong>$1</strong>"
29452931
},
2946-
29472932
"blackboxNotSupported": {
29482933
"message": "Your flight controller's firmware does not support Blackbox logging."
29492934
},
@@ -2968,14 +2953,12 @@
29682953
"blackboxLoggingSerial": {
29692954
"message": "Serial Port"
29702955
},
2971-
29722956
"serialLoggingSupportedNote": {
29732957
"message": "You can log to an external logging device (such as an OpenLager) by using a serial port. Configure the port on the Ports tab."
29742958
},
29752959
"sdcardNote": {
29762960
"message": "Flight logs can be recorded to your flight controller's onboard SD card slot."
29772961
},
2978-
29792962
"dataflashUsedSpace": {
29802963
"message": "Used space"
29812964
},
@@ -3042,7 +3025,6 @@
30423025
"dataflashFileWriteFailed": {
30433026
"message": "Failed to write to the file you selected, are the permissions on that folder okay?"
30443027
},
3045-
30463028
"sdcardStatusNoCard": {
30473029
"message": "No card inserted"
30483030
},
@@ -3085,6 +3067,9 @@
30853067
"firmwareFlasherReleaseTarget": {
30863068
"message": "Target:"
30873069
},
3070+
"firmwareFlasherTargetWikiUrlInfo": {
3071+
"message": "Get more information about target at Betaflight wiki (wiki url found in unified target configuration)"
3072+
},
30883073
"firmwareFlasherReleaseMCU": {
30893074
"message": "MCU:"
30903075
},
@@ -3121,7 +3106,6 @@
31213106
"firmwareFlasherTargetWarning": {
31223107
"message": "<span class=\"message-negative\">IMPORTANT</span>: Ensure you flash a file appropriate for your target. Flashing a binary for the wrong target can cause <span class=\"message-negative\">bad</span> things to happen."
31233108
},
3124-
31253109
"firmwareFlasherPath": {
31263110
"message": "Path:"
31273111
},
@@ -3357,7 +3341,6 @@
33573341
"firmwareFlasherPreviousDevice": {
33583342
"message": "Detected: <strong>$1</strong> - previous device still flashing, please replug to try again"
33593343
},
3360-
33613344
"ledStripHelp": {
33623345
"message": "The flight controller can control colors and effects of individual LEDs on a strip.<br />Configure LEDs on the grid, configure wiring order then attach LEDs on your aircraft according to grid positions. LEDs without wire ordering number will not be saved.<br />Double-click on a color to edit the HSV values."
33633346
},
@@ -3669,7 +3652,6 @@
36693652
"controlAxisAux16": {
36703653
"message": "AUX 16"
36713654
},
3672-
36733655
"pidTuningBasic": {
36743656
"message": "Basic/Acro"
36753657
},
@@ -4430,7 +4412,6 @@
44304412
"failsafeSwitchOptionKill": {
44314413
"message": "Kill"
44324414
},
4433-
44344415
"powerButtonSave": {
44354416
"message": "Save"
44364417
},

src/js/tabs/firmware_flasher.js

+10
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,22 @@ firmware_flasher.initialize = function (callback) {
6464
} else {
6565
$('div.release_info #manufacturerInfo').hide();
6666
}
67+
6768
$('div.release_info .target').text(summary.target);
6869
$('div.release_info .name').text(summary.release).prop('href', summary.releaseUrl);
6970
$('div.release_info .date').text(summary.date);
7071
$('div.release_info #targetMCU').text(summary.mcu);
7172
$('div.release_info .configFilename').text(self.isConfigLocal ? self.configFilename : "[default]");
7273

74+
// Wiki link to url found in unified target configuration or if not defined to general wiki url
75+
let targetWiki = $('#targetWikiInfoUrl');
76+
targetWiki.html(`&nbsp;&nbsp;&nbsp;[Wiki]`);
77+
if (summary.wiki === undefined) {
78+
targetWiki.attr("href", "https://github.com/betaflight/betaflight/wiki/");
79+
} else {
80+
targetWiki.attr("href", summary.wiki);
81+
}
82+
7383
if (summary.cloudBuild) {
7484
$('div.release_info #cloudTargetInfo').show();
7585
$('div.release_info #cloudTargetLog').text('');

src/tabs/firmware_flasher.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
<div class="margin-bottom">
232232
<strong i18n="firmwareFlasherReleaseTarget"></strong>
233233
<span class="target"></span>
234-
<br />
234+
<a id="targetWikiInfoUrl" i18n_title="firmwareFlasherTargetWikiUrlInfo" href="#" class="name" target="_blank"></a>
235235
<div id="manufacturerInfo">
236236
<strong i18n="firmwareFlasherReleaseManufacturer"></strong>
237237
<span id="manufacturer"></span>
@@ -247,8 +247,7 @@
247247
<span class="date"></span>
248248
<br />
249249
<strong i18n="firmwareFlasherConfigurationFile"></strong>
250-
<span class="configFilename"></span>
251-
<br />
250+
<span class="configFilename"></span>
252251
</div>
253252
<div id="cloudTargetInfo">
254253
<strong i18n="firmwareFlasherCloudBuildDetails"></strong>

0 commit comments

Comments
 (0)