1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-26 01:35:28 +03:00

Add electrical power to OSD

This commit is contained in:
Florian Ragwitz 2016-12-30 12:42:30 -08:00
parent ed35a74746
commit 58e369baf6

View file

@ -380,6 +380,12 @@ OSD.constants = {
default_position: 0x800 | (12 << 5) | 2, // 0x0800 | (y << 5) | x default_position: 0x800 | (12 << 5) | 2, // 0x0800 | (y << 5) | x
positionable: true, positionable: true,
preview: 'YAW 70 45 20' preview: 'YAW 70 45 20'
},
POWER: {
name: 'POWER',
default_position: (15 << 5) | 2,
positionable: true,
preview: '142W'
} }
} }
}; };
@ -411,7 +417,8 @@ OSD.chooseFields = function () {
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([ OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
F.PID_ROLL, F.PID_ROLL,
F.PID_PITCH, F.PID_PITCH,
F.PID_YAW F.PID_YAW,
F.POWER
]); ]);
} }
} }