Skip to content

Commit

Permalink
Merge branch 'release/v0.18.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
stylesuxx committed Aug 4, 2021
2 parents 49e1b65 + 5e3f646 commit 81abf37
Show file tree
Hide file tree
Showing 14 changed files with 337 additions and 257 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esc-configurator",
"version": "0.17.0",
"version": "0.18.0",
"private": false,
"license": "AGPL-3.0",
"dependencies": {
Expand Down
31 changes: 27 additions & 4 deletions src/Components/Flash/CommonSettings/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,42 @@ function CommonSettings({
}

if (!settingsDescriptions) {
const unsupported = `${availableSettings.MAIN_REVISION}.${availableSettings.SUB_REVISION}`;
const unsupportedNames = ['JESC'];
const version = `${availableSettings.MAIN_REVISION}.${availableSettings.SUB_REVISION}`;

return (
<h3
let unsupportedText = (
<p
dangerouslySetInnerHTML={{
__html: t('common:versionUnsupported', {
version: unsupported,
version: version,
name: availableSettings.NAME,
layout: availableSettings.LAYOUT_REVISION,
}),
}}
/>
);

if (unsupportedNames.includes(availableSettings.NAME)) {
unsupportedText = (
<p
dangerouslySetInnerHTML={{ __html: t('common:useDedicatedConfigurator', { name: availableSettings.NAME }) }}
/>
);
}

return (
<div className="gui-box grey">
<div className="gui-box-titlebar">
<div className="spacer-box-title">
{t('unsupportedFirmware')}
</div>
</div>

<div className="spacer-box">
{unsupportedText}
</div>
</div>
);
}

if (!allMulti) {
Expand Down
9 changes: 9 additions & 0 deletions src/changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
[
{
"title": "0.18.0",
"items": [
"Translation: Added traditional chinese translation",
"Attempt to detect JESC and do not allow settings to be changed",
"Enhancement: Improve display of unsupported firmware/version",
"Bugfix: Improve detection of wrong dead-time on ESCs with L MCU"
]
},
{
"title": "0.17.0",
"items": [
Expand Down
6 changes: 5 additions & 1 deletion src/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v0.17.0",
"version": "v0.18.0",
"corsProxy": "https://bubblesort.me/?",
"availableLanguages": [
{
Expand All @@ -17,6 +17,10 @@
{
"label": "简体中文",
"value": "zh-CN"
},
{
"label": "繁體中文",
"value": "zh-TW"
}
],
"defaultLanguage": "en",
Expand Down
2 changes: 2 additions & 0 deletions src/translations/de/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"notePropsOff": "<strong>Achtung:</strong> Stelle sicher, dass die Propeller <strong>entfernt</strong> wurden, bevor du den Konfigurator verwendest.",
"noteConnectPower": "<strong>Achtung:</strong> Stelle sicher, dass eine Batterie angesteckt ist.",
"commonParameters": "Allgemeine Parameter",
"unsupportedFirmware": "Nicht unterstützte Firmware",
"commonSettingsDisabled": "Allgemeine Einstellungen deaktiviert",
"commonSettingsDisabledText": "Allgemeine Einstellungen sind deaktiviert. Jeder ESC muss separat eingestellt werden.",
"escProgrammingByTX": "Programmierung durch den Sender",
Expand Down Expand Up @@ -87,6 +88,7 @@
"whatsNextText": "<p>Wenn du mitverfolgen willst welche Funktionen in Zukunft entstehen, kannst du dies im <a href=\"https://github.com/stylesuxx/esc-configurator\" title=\"https://www.github.com\" target=\"_blank\">github-Repository</a> beobachten. Gerne kannst du auch eine Feature-Anfrage erstellen, wenn du eine Idee zu einem Feature hast, welches du gerne implementiert hättest.</p>",
"openPortSelection": "Portauswahl öffnen",
"versionUnsupported": "{{name}} Version '{{version}}' (Layout {{layout}}) wird noch nicht unterstützt.<br/><br/>Lass es uns wissen indem du einen <a href=\"https://github.com/stylesuxx/esc-configurator\" title=\"https://www.github.com/issues/new\" target=\"_blank\">Fehlerbericht erstellst</a>.",
"useDedicatedConfigurator": "{{name}} wird nicht unterstützt, bitte verwende einen dedizierten Konfigurator.",
"motorControl": "Motorsteuerung",
"motorControlText": "<p>Stelle sicher das deine ESCs entsprechend der Slider Positionen konfiguriert sind.</p><p>zB.: Wenn du den 3D Modus aktiviert hast, stelle sicher, dass deinen ESCs entsprechend konfiguriert sind, ansonsten können die Motoren mit voller Geschwindigkeit anlaufen. </p><p>Die Motoren werden nicht anlaufen wenn am Flugregler bi-directtinal Dshot aktiviert ist, aber nicht auf den ESCs, was beispielsweise passieren könnte wenn du von einer RPM firmware auf klassisches BlHeli_S zurück flasht.</p>",
"enableMotorControl": "Motorsteuerung aktivieren",
Expand Down
2 changes: 2 additions & 0 deletions src/translations/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"notePropsOff": "<strong>Note:</strong> Make sure you've taken the propellers <strong>OFF</strong> before doing anything on this tab.",
"noteConnectPower": "<strong>Note:</strong> Connect power to the ESCs.",
"commonParameters": "Common Parameters",
"unsupportedFirmware": "Unsupported Firmware",
"commonSettingsDisabled": "Common settings disabled",
"commonSettingsDisabledText": "Common settings are disabled in the settings, each ESC needs to be ajdusted individually instead.",
"escProgrammingByTX": "Programming by TX",
Expand Down Expand Up @@ -87,6 +88,7 @@
"whatsNextText": "<p>If you want to see which features are upcoming, drop by in the <a href=\"https://github.com/stylesuxx/esc-configurator\" title=\"https://www.github.com\" target=\"_blank\">github repository</a>. Also feel free to add a feature request if you have an idea that you want to see implemented.</p>",
"openPortSelection": "Open Port Selection",
"versionUnsupported": "{{name}} version '{{version}}' (Layout {{layout}}) is not yet supported.<br/><br/>Let us know by opening an <a href=\"https://github.com/stylesuxx/esc-configurator\" title=\"https://www.github.com/issues/new\" target=\"_blank\">issue</a>.",
"useDedicatedConfigurator": "{{name}} not supported, please use dedicated configurator.",
"motorControl": "Motor Control",
"motorControlText": "<p>Make sure your ESCs are properly set up to reflect the state of the sliders.</p><p>Eg.: When you enabled 3D mode in your flight controller, make sure the ESCs are also set up for 3D mode, otherwise the motors might go off with full power.</p><p>Also be aware that the motors will not spin if you have bi-directional Dshot enabled on the Flight-controller, but the ESC does not support it. Which might be the case when flashing from RPM enabled firmware to BLHeli_S.</p>",
"enableMotorControl": "Enable motor control",
Expand Down
2 changes: 2 additions & 0 deletions src/translations/es/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"notePropsOff": "<strong>Nota:</strong> Asegúrate de que has removido las <strong>HELICES</strong> antes de hacer nada en esta pestaña.",
"noteConnectPower": "<strong>Nota:</strong> Conecta energía a los ESCs.",
"commonParameters": "Parámetros Comunes",
"unsupportedFirmware": "Unsupported Firmware",
"commonSettingsDisabled": "Ajustes comunes desactivados",
"commonSettingsDisabledText": "Los ajustes comunes están deshabilitados en los ajustes, cada ESC necesita ser ajustado individualmente.",
"escProgrammingByTX": "Programación a través de TX",
Expand Down Expand Up @@ -87,6 +88,7 @@
"whatsNextText": "<p>Si desea ver qué características están en funcionamiento, hazlo en el repositorio <a href=\"https://github.com/stylesuxx/esc-configurator\" title=\"https://www.github.com\" target=\"_blank\">github</a>. También siéntete libre de añadir una solicitud de característica si tienes una idea que quieres ver implementada.</p>",
"openPortSelection": "Abrir Selección de Puertos",
"versionUnsupported": "{{name}} version '{{version}}' (Layout {{layout}}) no esta soportada.<br/><br/>Haznoslo saber abriendo un <a href=\"https://github.com/stylesuxx/esc-configurator\" title=\"https://www.github.com/issues/new\" target=\"_blank\">problema</a>.",
"useDedicatedConfigurator": "{{name}} not supported, please use dedicated configurator.",
"motorControl": "Control de Motor",
"motorControlText": "<p>Asegúrate de que tus ESC estén correctamente configurados para reflejar el estado de los deslizadores.</p><p>Ej. Cuando activaste el modo 3D en tu controlador de vuelo, Asegúrese de que los ESC también están configurados para el modo 3D, de lo contrario los motores podrían apagarse con plena potencia.</p><p>También tenga en cuenta que los motores no girarán si tiene activada la opción Dshot bidireccional en el controlador de vuelo, pero el ESC no lo soporta. Esto puede ser el caso cuando se flashea a BlHeli_S desde un firmware con RPM activado.</p>",
"enableMotorControl": "Activar el control de motores",
Expand Down
24 changes: 13 additions & 11 deletions src/translations/zh-CN/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"notePropsOff": "<strong>注意:</strong> 在使用本页面前,请确保您已经 <strong>取下</strong> 所有螺旋桨。",
"noteConnectPower": "<strong>注意:</strong> 请将电源连接至电调。",
"commonParameters": "公共参数",
"unsupportedFirmware": "不支持的固件",
"commonSettingsDisabled": "公共设置已禁用",
"commonSettingsDisabledText": "公共设置已被禁用,每个 ESC 需要单独调整。",
"escProgrammingByTX": "通过 TX 编程",
Expand All @@ -31,7 +32,7 @@
"_RPM Power Protection (Rampup)": "RPM 功率保护 (爬升功率)",
"_Minimum Startup Power (Boost)": "最小启动功率 (升压)",
"_Maximum Startup Power (Protection)": "最大启动功率 (保护)",
"escButtonFirmwareDump": "转存固件",
"escButtonFirmwareDump": "转储固件",
"escButtonFlash": "烧录固件",
"defaultChangelogHead": "更新日志",
"escButtonRead": "读取配置",
Expand All @@ -50,14 +51,14 @@
"homeDisclaimerHeader": "免责声明",
"homeDisclaimerText": "Web 应用程序支持运行 BLHeli for Atmel、BLHeli for SiLabs 和 BLHeli_S 固件的电调.</br><strong>BLHeli 飞控透穿</strong> 是目前唯一支持的接口。<br /></br>如果您遇到任何问题,请务必使用 <strong>保存调试日志</strong> 按钮并通过 <a href=\"https://github.com/stylesuxx/esc-configurator/issues/new\" title=\"https://github.com\" target=\"_blank\">GitHub</a> 提交新问题。<br /><br/>应用程序源代码可以从 <a href=\"https://github.com/stylesuxx/esc-configurator\" title=\"https://www.github.com\" target=\"_blank\">这里</a> 下载。<br /><br />最新的 <a href=\"https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers\" title=\"http://www.silabs.com\" target=\"_blank\">CP210x 驱动程序</a> 可从 <a href=\"https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers\" title=\"http://www.silabs.com\" target=\"_blank\">这里</a>下载。<br />最新的 <a href=\"https://www.st.com/en/development-tools/stsw-stm32102.html\" title=\"http://www.st.com\" target=\"_blank\">STM USB VCP 驱动程序</a> 可从 <a href=\"https://www.st.com/en/development-tools/stsw-stm32102.html\" title=\"http://www.st.com\" target=\"_blank\">这里</a> 下载。<br />",
"homeWelcome": "欢迎使用 <strong>ESC - 配置程序</strong>,为简化固件升级、配置电调而生的工具。",
"betaWarning": "<strong> 此工具目前还在BETA测试阶段。</strong><br /> 部分功能可能无法正常工作 - 如果您发现任何bug,请 <a href=\"https://github.com/stylesuxx/esc-configurator/issues/new\" title=\"https://github.com\" target=\"_blank\"> 反馈 </a>",
"escButtonSelectLocally": "烧写本地固件",
"betaWarning": "<strong>此工具目前还在BETA测试阶段。</strong><br />部分功能可能无法正常工作 - 如果您发现任何bug,请 <a href=\"https://github.com/stylesuxx/esc-configurator/issues/new\" title=\"https://github.com\" target=\"_blank\">反馈</a>",
"escButtonSelectLocally": "烧录本地固件",
"cookieText": "此站点或此站点使用的第三方工具使用操作所需的 cookie 和 cookie 策略中所概述的有用性。 接受即表示同意使用 cookie。",
"resetDefaults": "恢复默认设置",
"forceFlashText": "忽略不匹配的 MCU 和布局?",
"forceFlashHint": "(闪烁不匹配的固件可能会损坏您的 ESC,请自行承担风险)",
"forceFlashHint": "(烧录不匹配的固件可能会损坏您的 ESC,请自行承担风险)",
"migrateFlashText": "在不同的固件之间迁移设置?",
"migrateFlashHint": "(这将尝试在不同固件之间迁移设置,例如从 BLHeli_S 迁移到 Blujay)",
"migrateFlashHint": "(这将尝试在不同固件之间迁移设置,例如从 BLHeli_S 迁移到 Bluejay)",
"migrationNote": "<b>注意:</b> 设置不能在不同的固件之间进行迁移, 请务必注意您的电机转向和其他您可能想要改动的设置。 设置可以在同一固件的不同版本之间迁移。",
"escDirectionReversed": "反转方向",
"escBidirectionalMode": "双向模式",
Expand All @@ -80,13 +81,14 @@
"escLowVoltageThreshold": "低电压截止阈值",
"escRcCarReversing": "RC 遥控车风格的反转换向",
"bluejayText": "<p>Bluejay 是一个基于 BLHeli_S 固件能够使用双向DShot的新固件 - 如果你想要在你的飞机上运行 RPM 滤波器,那么这是一个很好的选择。该项目还旨在清理和简化最初的 BLHeli_S 源代码。</p><p>启动音乐编辑器也是它的一个新功能。</p>",
"bluejaySupportedHardware": "<p>请花一点时间来帮助我们将您的成功刷新到 Bluejay 固件的硬件 <a href=\"https://github.com/mathiasvr/bluejay/wiki/Tested-Hardware\" target=\"_blank\">添加到 Wiki 上</a>。</p><p>尽管它理论上能够兼容所有 BLHeli 的硬件,但我们仍然想保留一个列表。这样人们就可以确信,他们手中的硬件的确能够在 Bluejay 上正常工作。</p>",
"blheli32ToAM32": "<p>基于 ARM 的 ESC 的固件。虽然目前其较新,但用户和制造商都对此很感兴趣。预装 AM32 固件的 ESC 将很快可以从不同的制造商那里买到。</p><p><strong>可以在 BLHeli_32 ESC 上刷入 AM32 固件</strong>。 但是,您必须先通过 <a href=\"https://www.st.com/en/development-tools/stm32cubeprog.html#get-software\" target=\"_blank\">STM32 Cube 程序</a> 和 STLink\nV2 编程适配器刷入 AM32 引导程序。所需要的引导程序可以在 <a href=\"https://github.com/AlkaMotors/AM32_Bootloader_F051/releases\" target=\"_blank\">AM32 bootloader 仓库</a>中找到。</p>",
"bluejaySupportedHardware": "<p>请花一点时间来帮助我们将您的成功刷到 Bluejay 固件的硬件 <a href=\"https://github.com/mathiasvr/bluejay/wiki/Tested-Hardware\" target=\"_blank\">添加到 Wiki 上</a>。</p><p>尽管它理论上能够兼容所有 BLHeli 的硬件,但我们仍然想保留一个列表。这样人们就可以确信,他们手中的硬件的确能够在 Bluejay 上正常工作。</p>",
"blheli32ToAM32": "<p>基于 ARM 的 ESC 的固件。虽然目前其较新,但用户和制造商都对此很感兴趣。预装 AM32 固件的 ESC 将很快可以从不同的制造商那里买到。</p><p><strong>可以在 BLHeli_32 ESC 上刷入 AM32 固件</strong>。 但是,您必须先通过 <a href=\"https://www.st.com/en/development-tools/stm32cubeprog.html#get-software\" target=\"_blank\">STM32 Cube 程序</a> 和 STLink V2 编程适配器刷入 AM32 引导程序。所需要的引导程序可以在 <a href=\"https://github.com/AlkaMotors/AM32_Bootloader_F051/releases\" target=\"_blank\">AM32 bootloader 仓库</a>中找到。</p>",
"blhelisText": "<p>BLHeli_S 可能不需要介绍 - 在几乎每个基于 EFM8 的四轴飞行器上使用的最常见的 ESC 固件。</p><p>已尝试并测试,支持每个模拟和数字协议。</p>",
"whatsNextHeader": "接下来是什么?",
"whatsNextText": "<p>如果你想要看到哪些功能即将到来,请顺便查看一下我们的 <a href=\"https://github.com/stylesuxx/esc-configurator\" title=\"https://www.github.com\" target=\"_blank\">github 仓库</a>。 如果您有一个想法想要继承进来,请随时添加功能请求。</p>",
"whatsNextText": "<p>如果你想要看到哪些功能即将到来,请顺便查看一下我们的 <a href=\"https://github.com/stylesuxx/esc-configurator\" title=\"https://www.github.com\" target=\"_blank\">github 仓库</a>。 如果您有一个想法想要集成进来,请随时添加功能请求。</p>",
"openPortSelection": "打开端口选择",
"versionUnsupported": "{{name}} 版本 '{{version}}' (布局 {{layout}}) 尚未支持。<br/><br/>请打开一个<a href=\"https://github.com/stylesuxx/esc-configurator\" title=\"https://www.github.com/issues/new\" target=\"_blank\">问题</a>来让我们知道。",
"useDedicatedConfigurator": "{{name}} 不支持,请使用专用配置程序。",
"motorControl": "电机控制",
"motorControlText": "<p>请确保您的ESC正确设置以反映滑块的状态。</p><p>例如,当您在飞控中启用3D模式后, 请确保 ESC 也已经设置为 3D 模式,否则电机可能在解锁瞬间满负荷运行。</p><p>同样地,如果你在飞控上使用双向 Dshot,而 ESC 固件并不支持双向 Dshot,那么电机将不会旋转。从已有 RPM 回传的固件向前回滚刷入 BLHeli_S 时可能会出现这种情况。</p>",
"enableMotorControl": "启用电机控制",
Expand All @@ -109,8 +111,8 @@
"melodyEditorStopAll": "停止全部",
"melodyPresetsLabel": "选择一个旋律",
"homeAttributionHeader": "致谢",
"homeAttributionText": "此项目受 <a target=\"_blank\" href=\"https://github.com/blheli-configurator/blheli-configurator\">BLHeli Configurator</a> 的强烈启发。 大多数用户界面都是从零开始重写的,但大量与刷新和固件处理有关的低级物品已被重新使用 - 所以对所有参与原来的 BLHeli Configurator 的人致以最高敬意。",
"syncMelodies": "同步的旋律",
"homeAttributionText": "此项目受 <a target=\"_blank\" href=\"https://github.com/blheli-configurator/blheli-configurator\">BLHeli Configurator</a> 的强烈启发。 大多数用户界面都是从零开始重写的,但大量与烧录和固件处理有关的低级物品已被重新使用 - 所以对所有参与原来的 BLHeli Configurator 的人致以最高敬意。",
"syncMelodies": "同步旋律",
"syncMelodiesHint": "如果开启,所有的 ESC 都将使用相同的旋律。",
"allEscs": "全部 ESC",
"escButtonOpenMelodyEditor": "打开旋律编辑器",
Expand All @@ -132,5 +134,5 @@
"escMissing1": "ESC 尚未准备就绪。例如,如果 ESC <b>正在播放旋律</b>,则可能发生这种情况。 同样,先前刷入的固件可能是错误的固件,并且它需要更长的时间才能完成启动。",
"escMissing2": "只是 <b>没有连接更多的 ESC</b> 。",
"escMissing3": "ESC 的 <b> MCU 存在缺陷</b> 。",
"mistagged": "<p><b>警告:</b> 当前刷入的固件似乎被标记为错误!</p><p>仅当您知晓您自己在做什么时再继续。在这里继续可能会导致您的电调面临过热的风险,甚至最糟糕的情况是电调烧毁。强烈建议刷入检测到的版本的更高死区固件,而不是这个被标记的版本,你需要勾选顶部的<i>“忽略不匹配的 MCU 和布局?”</i>选项。</p><table><tr><td>被标记</td><td>{{tagged}}</td></tr><tr><td>检测到</td><td>{{detected}}</td></tr></table><p>如果您看到此条消息,请<a href=\"https://github.com/stylesuxx/esc-configurator/wiki/Wrongly-Tagged-AIO's\" target=\"_blank\">考虑在 Wiki 上添加一个词条</a>,来帮助我们记录有问题的硬件。</p><p><b>如果您不明白此步骤中包含的风险,请不要犹豫,立刻<a target=\"_blank\" href=\"https://discord.gg/QvSS5dk23C\">加入我们的 Discord 服务器</a>。</b></p>"
"mistagged": "<p><b>警告:</b> 当前烧录的固件似乎被标记为错误!</p><p>仅当您知晓您自己在做什么时再继续。在这里继续可能会导致您的电调面临过热的风险,甚至最糟糕的情况是电调烧毁。强烈建议烧录检测到的版本的更高死区固件,而不是这个被标记的版本,你需要勾选顶部的<i>“忽略不匹配的 MCU 和布局?”</i>选项。</p><table><tr><td>被标记</td><td>{{tagged}}</td></tr><tr><td>检测到</td><td>{{detected}}</td></tr></table><p>如果您看到此条消息,请<a href=\"https://github.com/stylesuxx/esc-configurator/wiki/Wrongly-Tagged-AIO's\" target=\"_blank\">考虑在 Wiki 上添加一个词条</a>,来帮助我们记录有问题的硬件。</p><p><b>如果您不明白此步骤中包含的风险,请不要犹豫,立刻<a target=\"_blank\" href=\"https://discord.gg/QvSS5dk23C\">加入我们的 Discord 服务器</a>。</b></p>"
}
Loading

0 comments on commit 81abf37

Please sign in to comment.