#include <ui_g.h>
|
| | UI (uint16_t robot_id, std::function< void(uint8_t *, uint16_t)> send_func) |
| | Sets up robot id and sending function.
|
| |
| void | ui_init_g () |
| | Setup up all figures & strings.
|
| |
| void | ui_reinit_g () |
| |
| void | ui_update_g () |
| | Checks what figures/strings has been updated and only sends those that have changes to the server.
|
| |
| void | set_spin_ui (bool is_spinning) |
| |
| void | set_flywheel_ui (bool is_flywheel_on) |
| |
| void | set_cv_ui (bool is_cv_on) |
| |
| void | set_alignment_ui (bool is_aligned) |
| |
◆ UI()
| UI::UI |
( |
uint16_t |
robot_id, |
|
|
std::function< void(uint8_t *, uint16_t)> |
send_func |
|
) |
| |
Sets up robot id and sending function.
- Parameters
-
| robot_id | is the robot id to send the UI to |
| send_func | is the function used to send the data |
◆ set_alignment_ui()
| void UI::set_alignment_ui |
( |
bool |
is_aligned | ) |
|
◆ set_cv_ui()
| void UI::set_cv_ui |
( |
bool |
is_cv_on | ) |
|
◆ set_flywheel_ui()
| void UI::set_flywheel_ui |
( |
bool |
is_flywheel_on | ) |
|
◆ set_spin_ui()
| void UI::set_spin_ui |
( |
bool |
is_spinning | ) |
|
◆ ui_init_g()
Setup up all figures & strings.
◆ ui_reinit_g()
Tells server to re-add stuff
◆ ui_update_g()
Checks what figures/strings has been updated and only sends those that have changes to the server.
◆ TOTAL_FIGURE
| const int UI::TOTAL_FIGURE = 0 |
|
static |
◆ TOTAL_STRING
| const int UI::TOTAL_STRING = 4 |
|
static |
◆ ui_g_dirty_figure
◆ ui_g_dirty_string
◆ ui_g_max_send_count
◆ ui_g_now_figures
◆ ui_g_now_strings
◆ ui_self_id
The documentation for this class was generated from the following files:
- core/util/communications/ui/ui_g.h
- core/util/communications/ui/ui_g.cpp