![]() |
1516X Push Back 1.0
1516X's robot code for the 2025-2026 VEX Robotics Competition
|
#include "main.h"#include "robodash/api.h"#include <vector>#include <algorithm>#include <functional>#include <string>#include "globals.h"Go to the source code of this file.
Classes | |
| struct | MotorDisplayData |
Macros | |
| #define | TEMP_WARNING_THRESHOLD 55.0 |
| #define | HISTORY_MAX_POINTS 25 |
Functions | |
| static void | close_modal_cb (lv_event_t *e) |
| static void | motor_click_cb (lv_event_t *e) |
| static void | update_temps_cb (lv_timer_t *timer) |
| void | init_motor_dashboard () |
Variables | |
| std::vector< MotorDisplayData > | motorList |
| MotorDisplayData * | activeMotor = nullptr |
| lv_obj_t * | modal_overlay = nullptr |
| lv_obj_t * | chart_modal = nullptr |
| lv_obj_t * | temp_chart = nullptr |
| lv_chart_series_t * | temp_series = nullptr |
| lv_obj_t * | modal_title = nullptr |
| #define HISTORY_MAX_POINTS 25 |
Definition at line 10 of file motorDashboard.cpp.
Referenced by init_motor_dashboard().
| #define TEMP_WARNING_THRESHOLD 55.0 |
Definition at line 9 of file motorDashboard.cpp.
Referenced by motor_click_cb(), and update_temps_cb().
|
static |
Definition at line 33 of file motorDashboard.cpp.
References activeMotor, chart_modal, and modal_overlay.
Referenced by init_motor_dashboard().
| void init_motor_dashboard | ( | ) |
Definition at line 97 of file motorDashboard.cpp.
References chart_modal, close_modal_cb(), HISTORY_MAX_POINTS, intakeMotor(), leftMotors, modal_overlay, modal_title, motor_click_cb(), motorList, outtakeMotor(), rightMotors(), storageMotor(), temp_chart, temp_series, and update_temps_cb().
Referenced by initialize().
|
static |
Definition at line 39 of file motorDashboard.cpp.
References activeMotor, chart_modal, MotorDisplayData::history, modal_overlay, modal_title, MotorDisplayData::name, temp_chart, temp_series, and TEMP_WARNING_THRESHOLD.
Referenced by init_motor_dashboard().
|
static |
Definition at line 63 of file motorDashboard.cpp.
References activeMotor, chart_modal, motorList, temp_chart, temp_series, and TEMP_WARNING_THRESHOLD.
Referenced by init_motor_dashboard().
| MotorDisplayData* activeMotor = nullptr |
Definition at line 25 of file motorDashboard.cpp.
Referenced by close_modal_cb(), motor_click_cb(), and update_temps_cb().
| lv_obj_t* chart_modal = nullptr |
Definition at line 28 of file motorDashboard.cpp.
Referenced by close_modal_cb(), init_motor_dashboard(), motor_click_cb(), and update_temps_cb().
| lv_obj_t* modal_overlay = nullptr |
Definition at line 27 of file motorDashboard.cpp.
Referenced by close_modal_cb(), init_motor_dashboard(), and motor_click_cb().
| lv_obj_t* modal_title = nullptr |
Definition at line 31 of file motorDashboard.cpp.
Referenced by init_motor_dashboard(), and motor_click_cb().
| std::vector<MotorDisplayData> motorList |
Definition at line 24 of file motorDashboard.cpp.
Referenced by init_motor_dashboard(), and update_temps_cb().
| lv_obj_t* temp_chart = nullptr |
Definition at line 29 of file motorDashboard.cpp.
Referenced by init_motor_dashboard(), motor_click_cb(), and update_temps_cb().
| lv_chart_series_t* temp_series = nullptr |
Definition at line 30 of file motorDashboard.cpp.
Referenced by init_motor_dashboard(), motor_click_cb(), and update_temps_cb().