Browse Source

AP_OSD: give credits to the original authors

mission-4.1.18
Alexander Malishev 7 years ago committed by Andrew Tridgell
parent
commit
11131d34e3
  1. 1
      libraries/AP_OSD/AP_OSD.cpp
  2. 1
      libraries/AP_OSD/AP_OSD_MAX7456.cpp
  3. 3
      libraries/AP_OSD/AP_OSD_Screen.cpp

1
libraries/AP_OSD/AP_OSD.cpp

@ -139,6 +139,7 @@ void AP_OSD::update_osd() @@ -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) {

1
libraries/AP_OSD/AP_OSD_MAX7456.cpp

@ -261,6 +261,7 @@ void AP_OSD_MAX7456::buffer_add_cmd(uint8_t reg, uint8_t arg) @@ -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;

3
libraries/AP_OSD/AP_OSD_Screen.cpp

@ -196,6 +196,8 @@ void AP_OSD_Screen::draw_batused(uint8_t x, uint8_t y) @@ -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) @@ -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();

Loading…
Cancel
Save