1516X Push Back 1.0
1516X's robot code for the 2025-2026 VEX Robotics Competition
Loading...
Searching...
No Matches
MotorDisplayData Struct Reference

Public Member Functions

 MotorDisplayData (std::string n, std::function< double()> f)

Public Attributes

std::string name
std::function< double()> getTemp
lv_obj_t * btn = nullptr
lv_obj_t * label = nullptr
std::vector< lv_coord_t > history
bool isOverheating = false

Detailed Description

Definition at line 12 of file motorDashboard.cpp.

Constructor & Destructor Documentation

◆ MotorDisplayData()

MotorDisplayData::MotorDisplayData ( std::string n,
std::function< double()> f )
inline

Definition at line 20 of file motorDashboard.cpp.

21 : name(n), getTemp(f) {}
std::function< double()> getTemp

References getTemp, and name.

Member Data Documentation

◆ btn

lv_obj_t* MotorDisplayData::btn = nullptr

Definition at line 15 of file motorDashboard.cpp.

◆ getTemp

std::function<double()> MotorDisplayData::getTemp

Definition at line 14 of file motorDashboard.cpp.

Referenced by MotorDisplayData().

◆ history

std::vector<lv_coord_t> MotorDisplayData::history

Definition at line 17 of file motorDashboard.cpp.

Referenced by motor_click_cb().

◆ isOverheating

bool MotorDisplayData::isOverheating = false

Definition at line 18 of file motorDashboard.cpp.

◆ label

lv_obj_t* MotorDisplayData::label = nullptr

Definition at line 16 of file motorDashboard.cpp.

◆ name

std::string MotorDisplayData::name

Definition at line 13 of file motorDashboard.cpp.

Referenced by MotorDisplayData(), and motor_click_cb().


The documentation for this struct was generated from the following file: