AP_OSD: give credits to the original authors

This commit is contained in:
Alexander Malishev 2018-07-01 23:51:21 +04:00 committed by Andrew Tridgell
parent 4061ed03d9
commit 11131d34e3
3 changed files with 5 additions and 0 deletions

View File

@ -139,6 +139,7 @@ void AP_OSD::update_osd()
backend->flush(); backend->flush();
} }
//Thanks to minimosd authors for the multiple osd screen idea
void AP_OSD::update_current_screen() void AP_OSD::update_current_screen()
{ {
if (rc_channel == 0) { if (rc_channel == 0) {

View File

@ -261,6 +261,7 @@ void AP_OSD_MAX7456::buffer_add_cmd(uint8_t reg, uint8_t arg)
} }
} }
//Thanks to betaflight for the max stall/reboot detection approach and ntsc/pal autodetection
void AP_OSD_MAX7456::check_reinit() void AP_OSD_MAX7456::check_reinit()
{ {
uint8_t check = 0xFF; uint8_t check = 0xFF;

View File

@ -196,6 +196,8 @@ void AP_OSD_Screen::draw_batused(uint8_t x, uint8_t y)
backend->write(x,y, battery.has_failsafed(), "%c%4.0f", SYM_MAH, battery.consumed_mah()); backend->write(x,y, battery.has_failsafed(), "%c%4.0f", SYM_MAH, battery.consumed_mah());
} }
//Autoscroll message is the same as in minimosd-extra.
//Thanks to night-ghost for the approach.
void AP_OSD_Screen::draw_message(uint8_t x, uint8_t y) void AP_OSD_Screen::draw_message(uint8_t x, uint8_t y)
{ {
AP_Notify * notify = AP_Notify::instance(); AP_Notify * notify = AP_Notify::instance();
@ -250,6 +252,7 @@ void AP_OSD_Screen::draw_gspeed(uint8_t x, uint8_t y)
backend->write(x, y, false, "%3.0f%c", v, SYM_KMH); backend->write(x, y, false, "%3.0f%c", v, SYM_KMH);
} }
//Thanks to betaflight/inav for simple and clean artificial horizon visual design
void AP_OSD_Screen::draw_horizon(uint8_t x, uint8_t y) void AP_OSD_Screen::draw_horizon(uint8_t x, uint8_t y)
{ {
AP_AHRS &ahrs = AP::ahrs(); AP_AHRS &ahrs = AP::ahrs();