mirror of https://github.com/ArduPilot/ardupilot
AP_OSD: give credits to the original authors
This commit is contained in:
parent
4061ed03d9
commit
11131d34e3
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue