mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Merge pull request #1201 from timman2er/add-support-for-max-esc-temp-and-rpm
add support for esc max temp and rpm
This commit is contained in:
commit
b6f3f11ce6
2 changed files with 20 additions and 0 deletions
|
@ -3575,6 +3575,12 @@
|
|||
"osdDescStatGForce": {
|
||||
"message": "Max G-Force experienced by the craft"
|
||||
},
|
||||
"osdDescStatEscTemperature": {
|
||||
"message": "Max ESC temperature"
|
||||
},
|
||||
"osdDescStatEscRpm": {
|
||||
"message": "Max ESC RPM"
|
||||
},
|
||||
|
||||
|
||||
"osdTimerSource": {
|
||||
|
|
|
@ -893,6 +893,14 @@ OSD.constants = {
|
|||
MAX_G_FORCE: {
|
||||
name: 'MAX_G_FORCE',
|
||||
desc: 'osdDescStatGForce'
|
||||
},
|
||||
MAX_ESC_TEMP: {
|
||||
name: 'MAX_ESC_TEMP',
|
||||
desc: 'osdDescStatEscTemperature'
|
||||
},
|
||||
MAX_ESC_RPM: {
|
||||
name: 'MAX_ESC_RPM',
|
||||
desc: 'osdDescStatEscRpm'
|
||||
}
|
||||
},
|
||||
ALL_WARNINGS: {
|
||||
|
@ -1125,6 +1133,12 @@ OSD.chooseFields = function () {
|
|||
F.BLACKBOX_LOG_NUMBER,
|
||||
F.MAX_G_FORCE
|
||||
];
|
||||
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
|
||||
OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([
|
||||
F.MAX_ESC_TEMP,
|
||||
F.MAX_ESC_RPM
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
// Choose warnings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue