basic support for GPS elements

pull/152/head
Pawel Spychalski (DzikuVx) 8 years ago
parent 1d653f0f78
commit f1193c1a41

@ -452,3 +452,7 @@ button {
height: calc(100% - 30px);
}
}
.osd__elements {
margin-bottom: 3em;
}

@ -11,7 +11,7 @@
<p class="note">Note that some flight controllers have an onboard <a href="https://www.youtube.com/watch?v=ikKH_6SQ-Tk" target="_blank">MinimOSD</a> that can be flashed and configured with <a href="https://github.com/ShikOfTheRa/scarab-osd/releases/latest" target="_blank">scarab-osd</a>, however the MinimOSD cannot be configured through this interface.</p>
</div>
<div class="supported hide">
<div class="cf_column third_left elements">
<div class="cf_column third_left osd__elements">
<div class="spacer_right">
<div class="gui_box grey">
<div

@ -402,6 +402,48 @@ OSD.constants = {
default_position: -1,
positionable: true,
preview: '50W'
},
GPS_LON: {
name: 'LONGITUDE',
default_position: -1,
positionable: true,
preview: '14.7652'
},
GPS_LAT: {
name: 'LATITUDE',
default_position: -1,
positionable: true,
preview: '52.9872'
},
HOME_DIR: {
name: 'DIRECTION_TO_HOME',
default_position: -1,
positionable: true,
preview: '165'
},
HOME_DIST: {
name: 'DISTANCE_TO_HOME',
default_position: -1,
positionable: true,
preview: '300m'
},
HEADING: {
name: 'HEADING',
default_position: -1,
positionable: true,
preview: '175'
},
VARIO: {
name: 'VARIO',
default_position: -1,
positionable: true,
preview: '-'
},
VARIO_NUM: {
name: 'VARIO_NUM',
default_position: -1,
positionable: true,
preview: '2'
}
}
};
@ -433,6 +475,14 @@ OSD.chooseFields = function () {
OSD.constants.DISPLAY_FIELDS.push(F.PITCH_PIDS);
OSD.constants.DISPLAY_FIELDS.push(F.YAW_PIDS);
OSD.constants.DISPLAY_FIELDS.push(F.POWER);
OSD.constants.DISPLAY_FIELDS.push(F.GPS_LON);
OSD.constants.DISPLAY_FIELDS.push(F.GPS_LAT);
OSD.constants.DISPLAY_FIELDS.push(F.HOME_DIR);
OSD.constants.DISPLAY_FIELDS.push(F.HOME_DIST);
OSD.constants.DISPLAY_FIELDS.push(F.HEADING);
OSD.constants.DISPLAY_FIELDS.push(F.VARIO);
OSD.constants.DISPLAY_FIELDS.push(F.VARIO_NUM);
}
};

Loading…
Cancel
Save