From 11131d34e3528b5df5cc0cfce6bdd93fa25a1db4 Mon Sep 17 00:00:00 2001 From: Alexander Malishev Date: Sun, 1 Jul 2018 23:51:21 +0400 Subject: [PATCH] AP_OSD: give credits to the original authors --- libraries/AP_OSD/AP_OSD.cpp | 1 + libraries/AP_OSD/AP_OSD_MAX7456.cpp | 1 + libraries/AP_OSD/AP_OSD_Screen.cpp | 3 +++ 3 files changed, 5 insertions(+) diff --git a/libraries/AP_OSD/AP_OSD.cpp b/libraries/AP_OSD/AP_OSD.cpp index de64ee1ee2..8220333162 100644 --- a/libraries/AP_OSD/AP_OSD.cpp +++ b/libraries/AP_OSD/AP_OSD.cpp @@ -139,6 +139,7 @@ void AP_OSD::update_osd() backend->flush(); } +//Thanks to minimosd authors for the multiple osd screen idea void AP_OSD::update_current_screen() { if (rc_channel == 0) { diff --git a/libraries/AP_OSD/AP_OSD_MAX7456.cpp b/libraries/AP_OSD/AP_OSD_MAX7456.cpp index 824b8d4823..62cbb96218 100644 --- a/libraries/AP_OSD/AP_OSD_MAX7456.cpp +++ b/libraries/AP_OSD/AP_OSD_MAX7456.cpp @@ -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() { uint8_t check = 0xFF; diff --git a/libraries/AP_OSD/AP_OSD_Screen.cpp b/libraries/AP_OSD/AP_OSD_Screen.cpp index a2c1b68650..2bc983ddc7 100644 --- a/libraries/AP_OSD/AP_OSD_Screen.cpp +++ b/libraries/AP_OSD/AP_OSD_Screen.cpp @@ -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()); } +//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) { 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); } +//Thanks to betaflight/inav for simple and clean artificial horizon visual design void AP_OSD_Screen::draw_horizon(uint8_t x, uint8_t y) { AP_AHRS &ahrs = AP::ahrs();