APM:Libraries
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Display Class Reference

#include <Display.h>

Inheritance diagram for Display:
[legend]
Collaboration diagram for Display:
[legend]

Public Member Functions

bool init (void)
 
void update ()
 
- Public Member Functions inherited from NotifyDevice
virtual ~NotifyDevice ()
 
virtual void handle_led_control (mavlink_message_t *msg)
 
virtual void handle_play_tune (mavlink_message_t *msg)
 

Private Member Functions

void draw_char (uint16_t x, uint16_t y, const char c)
 
void draw_text (uint16_t x, uint16_t y, const char *c)
 
void update_all ()
 
void update_arm (uint8_t r)
 
void update_prearm (uint8_t r)
 
void update_gps (uint8_t r)
 
void update_gps_sats (uint8_t r)
 
void update_ekf (uint8_t r)
 
void update_battery (uint8_t r)
 
void update_mode (uint8_t r)
 
void update_text (uint8_t r)
 
void update_text_empty (uint8_t r)
 

Private Attributes

Display_Backend_driver
 
bool _healthy
 
uint8_t _mstartpos
 
uint8_t _movedelay
 
uint8_t _screenpage
 
const uint16_t _send_text_valid_millis = 20000
 

Friends

class Display_Backend
 

Additional Inherited Members

- Public Attributes inherited from NotifyDevice
const AP_NotifypNotify
 

Detailed Description

Definition at line 12 of file Display.h.

Member Function Documentation

◆ draw_char()

void Display::draw_char ( uint16_t  x,
uint16_t  y,
const char  c 
)
private

Definition at line 426 of file Display.cpp.

Referenced by draw_text(), and update_gps_sats().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ draw_text()

void Display::draw_text ( uint16_t  x,
uint16_t  y,
const char *  c 
)
private

Definition at line 405 of file Display.cpp.

Referenced by update_arm(), update_battery(), update_ekf(), update_gps(), update_gps_sats(), update_mode(), update_prearm(), update_text(), and update_text_empty().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

bool Display::init ( void  )
virtual

Implements NotifyDevice.

Definition at line 320 of file Display.cpp.

Here is the call graph for this function:

◆ update()

void Display::update ( void  )
virtual

Implements NotifyDevice.

Definition at line 360 of file Display.cpp.

Here is the call graph for this function:

◆ update_all()

void Display::update_all ( )
private

Definition at line 394 of file Display.cpp.

Referenced by init(), and update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_arm()

void Display::update_arm ( uint8_t  r)
private

Definition at line 449 of file Display.cpp.

Referenced by update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_battery()

void Display::update_battery ( uint8_t  r)
private

Definition at line 518 of file Display.cpp.

Referenced by update_all().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_ekf()

void Display::update_ekf ( uint8_t  r)
private

Definition at line 509 of file Display.cpp.

Referenced by update_all().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_gps()

void Display::update_gps ( uint8_t  r)
private

Definition at line 467 of file Display.cpp.

Referenced by update_all().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_gps_sats()

void Display::update_gps_sats ( uint8_t  r)
private

Definition at line 502 of file Display.cpp.

Here is the call graph for this function:

◆ update_mode()

void Display::update_mode ( uint8_t  r)
private

Definition at line 525 of file Display.cpp.

Referenced by update_all().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_prearm()

void Display::update_prearm ( uint8_t  r)
private

Definition at line 458 of file Display.cpp.

Referenced by update_all().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_text()

void Display::update_text ( uint8_t  r)
private

Definition at line 543 of file Display.cpp.

Referenced by update_all().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_text_empty()

void Display::update_text_empty ( uint8_t  r)
private

Definition at line 534 of file Display.cpp.

Referenced by update_text().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Display_Backend

friend class Display_Backend
friend

Definition at line 14 of file Display.h.

Member Data Documentation

◆ _driver

Display_Backend* Display::_driver
private

Definition at line 33 of file Display.h.

Referenced by draw_char(), init(), and update().

◆ _healthy

bool Display::_healthy
private

Definition at line 35 of file Display.h.

Referenced by init(), and update().

◆ _movedelay

uint8_t Display::_movedelay
private

Definition at line 38 of file Display.h.

Referenced by update_text(), and update_text_empty().

◆ _mstartpos

uint8_t Display::_mstartpos
private

Definition at line 37 of file Display.h.

Referenced by update_text(), and update_text_empty().

◆ _screenpage

uint8_t Display::_screenpage
private

Definition at line 39 of file Display.h.

Referenced by update().

◆ _send_text_valid_millis

const uint16_t Display::_send_text_valid_millis = 20000
private

Definition at line 42 of file Display.h.

Referenced by update_text().


The documentation for this class was generated from the following files: