Skip to content

Commit 34a4264

Browse files
committed
Adding Configurator support for the Camera Angle Reference OSD feature
'Camera Angle Reference' and 'Camera Angle Reference Sidebar' OSD features
1 parent 5a633c9 commit 34a4264

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

Diff for: locales/en/messages.json

+14
Original file line numberDiff line numberDiff line change
@@ -5290,6 +5290,20 @@
52905290
"osdDescElementHorizonSidebars": {
52915291
"message": "Sidebars around artificial horizon indicator"
52925292
},
5293+
"osdTextElementCameraAngleReference": {
5294+
"message": "Camera Angle Reference",
5295+
"description": "One of the elements of the OSD"
5296+
},
5297+
"osdDescElementCameraAngleReference": {
5298+
"message": "Camera angle reference for flying with FPV tilt gimbal"
5299+
},
5300+
"osdTextElementCameraAngleReferenceSidebar": {
5301+
"message": "Camera Angle Reference Sidebar",
5302+
"description": "One of the elements of the OSD"
5303+
},
5304+
"osdDescElementCameraAngleReferenceSidebar": {
5305+
"message": "Sidebar for Camera angle reference"
5306+
},
52935307
"osdTextElementCurrentDraw": {
52945308
"message": "Battery current draw",
52955309
"description": "One of the elements of the OSD"

Diff for: src/js/tabs/osd.js

+20
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,24 @@ OSD.loadDisplayFields = function() {
15361536
positionable: true,
15371537
preview: '1:23.456',
15381538
},
1539+
CAM_ANGLE_REFERENCE: {
1540+
name: 'CAM_ANGLE_REFERENCE',
1541+
text: 'osdTextElementCameraAngleReference',
1542+
desc: 'osdDescElementCameraAngleReference',
1543+
defaultPosition: -1,
1544+
draw_order: 555,
1545+
positionable: true,
1546+
preview: '***CAR***',
1547+
},
1548+
CAM_ANGLE_REFERENCE_SBAR: {
1549+
name: 'CAM_ANGLE_REFERENCE_SBAR',
1550+
text: 'osdTextElementCameraAngleReferenceSidebar',
1551+
desc: 'osdDescElementCameraAngleReferenceSidebar',
1552+
defaultPosition: -1,
1553+
draw_order: 560,
1554+
positionable: true,
1555+
preview: '***SBR***||',
1556+
},
15391557
};
15401558
};
15411559

@@ -1970,6 +1988,8 @@ OSD.chooseFields = function() {
19701988
F.GPS_LAP_TIME_CURRENT,
19711989
F.GPS_LAP_TIME_PREVIOUS,
19721990
F.GPS_LAP_TIME_BEST3,
1991+
F.CAM_ANGLE_REFERENCE,
1992+
F.CAM_ANGLE_REFERENCE_SBAR,
19731993
]);
19741994
}
19751995

0 commit comments

Comments
 (0)