mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-18 22:05:13 +03:00
Merge pull request #722 from mikeller/added_new_osd_elements
Added new OSD elements for RTC time and adjustment range.
This commit is contained in:
commit
bf6b51ca83
2 changed files with 32 additions and 6 deletions
|
@ -2493,6 +2493,12 @@
|
||||||
"osdDescElementEscRpm": {
|
"osdDescElementEscRpm": {
|
||||||
"message": "RPM reported by ESC telemetry"
|
"message": "RPM reported by ESC telemetry"
|
||||||
},
|
},
|
||||||
|
"osdDescElementRtcDateTime": {
|
||||||
|
"message": "Real time clock date / time"
|
||||||
|
},
|
||||||
|
"osdDescElementAdjustmentRange": {
|
||||||
|
"message": "Currently active adjustment range setting and value"
|
||||||
|
},
|
||||||
"osdDescElementHomeDirection": {
|
"osdDescElementHomeDirection": {
|
||||||
"message": "Arrow showing direction to home position"
|
"message": "Arrow showing direction to home position"
|
||||||
},
|
},
|
||||||
|
|
20
tabs/osd.js
20
tabs/osd.js
|
@ -606,6 +606,20 @@ OSD.constants = {
|
||||||
positionable: true,
|
positionable: true,
|
||||||
preview: '226000'
|
preview: '226000'
|
||||||
},
|
},
|
||||||
|
RTC_DATE_TIME: {
|
||||||
|
name: 'RTC_DATE_TIME',
|
||||||
|
desc: 'osdDescElementRtcDateTime',
|
||||||
|
default_position: -1,
|
||||||
|
positionable: true,
|
||||||
|
preview: '2017-11-11 16:20:00'
|
||||||
|
},
|
||||||
|
ADJUSTMENT_RANGE: {
|
||||||
|
name: 'ADJUSTMENT_RANGE',
|
||||||
|
desc: 'osdDescElementAdjustmentRange',
|
||||||
|
default_position: -1,
|
||||||
|
positionable: true,
|
||||||
|
preview: 'PITCH/ROLL P: 42'
|
||||||
|
},
|
||||||
TIMER_1: {
|
TIMER_1: {
|
||||||
name: 'TIMER_1',
|
name: 'TIMER_1',
|
||||||
desc: 'osdDescElementTimer1',
|
desc: 'osdDescElementTimer1',
|
||||||
|
@ -792,6 +806,12 @@ OSD.chooseFields = function () {
|
||||||
F.ESC_TEMPERATURE,
|
F.ESC_TEMPERATURE,
|
||||||
F.ESC_RPM
|
F.ESC_RPM
|
||||||
]);
|
]);
|
||||||
|
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
||||||
|
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
|
||||||
|
F.RTC_DATE_TIME,
|
||||||
|
F.ADJUSTMENT_RANGE
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue