mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 16:55:24 +03:00
new osd field compatibility
This commit is contained in:
parent
bbc62407dc
commit
dfc69b6c7c
1 changed files with 21 additions and 1 deletions
22
tabs/osd.js
22
tabs/osd.js
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
var SYM = SYM || {};
|
||||
SYM.VOLT = 0x00;
|
||||
SYM.VOLT = 0x06;
|
||||
SYM.RSSI = 0x01;
|
||||
SYM.AH_RIGHT = 0x02;
|
||||
SYM.AH_LEFT = 0x03;
|
||||
|
@ -15,6 +15,8 @@ SYM.AH_CENTER = 0x7E;
|
|||
SYM.AH_BAR9_0 = 0x80;
|
||||
SYM.AH_DECORATION = 0x13;
|
||||
SYM.LOGO = 0xA0;
|
||||
SYM.AMP = 0x9A;
|
||||
SYM.MAH = 0x07;
|
||||
|
||||
var FONT = FONT || {};
|
||||
|
||||
|
@ -284,6 +286,24 @@ OSD.constants = {
|
|||
name: 'HORIZON_SIDEBARS',
|
||||
default_position: -1,
|
||||
positionable: false
|
||||
},
|
||||
{
|
||||
name: 'OSD_CURRENT_DRAW',
|
||||
default_position: -23,
|
||||
positionable: true,
|
||||
preview: FONT.symbol(SYM.AMP) + '42.0'
|
||||
},
|
||||
{
|
||||
name: 'OSD_MAH_DRAWN',
|
||||
default_position: -18,
|
||||
positionable: true,
|
||||
preview: FONT.symbol(SYM.MAH) + '690'
|
||||
},
|
||||
{
|
||||
name: 'OSD_CRAFT_NAME',
|
||||
default_position: -77,
|
||||
positionable: true,
|
||||
preview: '[CRAFT_NAME]'
|
||||
}
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue