mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
MAX7456: Adjustable screen area position offsets
There are displays and goggles with slightly different timing characteristics compared the standard ones. With such devices, screen area may be too high or too low that top or bottom most characters may be truncated. This PR provides a way to adjust the screen area position so that entire screen area can be shifted up or down, or left or right. A new vcdProfile_t (VCD = Video Character Device) is defined and video_system was moved from osdProfile also.
This commit is contained in:
parent
547230b28b
commit
062e8b7b26
9 changed files with 64 additions and 14 deletions
|
@ -42,6 +42,7 @@
|
|||
#include "drivers/io.h"
|
||||
#include "drivers/flash.h"
|
||||
#include "drivers/sdcard.h"
|
||||
#include "drivers/vcd.h"
|
||||
#include "drivers/max7456.h"
|
||||
#include "drivers/vtx_soft_spi_rtc6705.h"
|
||||
#include "drivers/pwm_output.h"
|
||||
|
@ -1034,7 +1035,7 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn
|
|||
#ifdef OSD
|
||||
sbufWriteU8(dst, 1); // OSD supported
|
||||
// send video system (AUTO/PAL/NTSC)
|
||||
sbufWriteU8(dst, masterConfig.osdProfile.video_system);
|
||||
sbufWriteU8(dst, masterConfig.vcdProfile.video_system);
|
||||
sbufWriteU8(dst, masterConfig.osdProfile.units);
|
||||
sbufWriteU8(dst, masterConfig.osdProfile.rssi_alarm);
|
||||
sbufWriteU16(dst, masterConfig.osdProfile.cap_alarm);
|
||||
|
@ -1534,7 +1535,7 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
|||
addr = sbufReadU8(src);
|
||||
// set all the other settings
|
||||
if ((int8_t)addr == -1) {
|
||||
masterConfig.osdProfile.video_system = sbufReadU8(src);
|
||||
masterConfig.vcdProfile.video_system = sbufReadU8(src);
|
||||
masterConfig.osdProfile.units = sbufReadU8(src);
|
||||
masterConfig.osdProfile.rssi_alarm = sbufReadU8(src);
|
||||
masterConfig.osdProfile.cap_alarm = sbufReadU16(src);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue