mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-22 07:45:29 +03:00
Add baro altitude to OSD
This commit is contained in:
parent
efc14e6068
commit
184bf12d3e
4 changed files with 26 additions and 1 deletions
|
@ -1197,10 +1197,11 @@ static bool processOutCommand(uint8_t cmdMSP)
|
|||
|
||||
case MSP_OSD_CONFIG:
|
||||
#ifdef OSD
|
||||
headSerialReply(2 + (OSD_MAX_ITEMS * 2));
|
||||
headSerialReply(3 + (OSD_MAX_ITEMS * 2));
|
||||
serialize8(1); // OSD supported
|
||||
// send video system (AUTO/PAL/NTSC)
|
||||
serialize8(masterConfig.osdProfile.video_system);
|
||||
serialize8(masterConfig.osdProfile.units);
|
||||
for (i = 0; i < OSD_MAX_ITEMS; i++) {
|
||||
serialize16(masterConfig.osdProfile.item_pos[i]);
|
||||
}
|
||||
|
@ -1581,6 +1582,7 @@ static bool processInCommand(void)
|
|||
// set all the other settings
|
||||
if ((int8_t)addr == -1) {
|
||||
masterConfig.osdProfile.video_system = read8();
|
||||
masterConfig.osdProfile.units = read8();
|
||||
}
|
||||
// set a position setting
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue