did some testing with custom hardware

This commit is contained in:
2026-02-01 18:42:44 +01:00
parent b289eb7cf2
commit 9104e5f616
11 changed files with 39 additions and 16 deletions
+1 -4
View File
@@ -3,13 +3,10 @@
Can_Debugger::Can_Debugger(CAN_Wrapper* can_wrapper, QObject* parent) :
Simulator_base("Can_Debugger", can_wrapper, std::chrono::milliseconds(100), parent),
m_wrapper(can_wrapper),
m_can_ui(Color::Black, Color::White),
m_clear_can_list("Clear list", Color::Black, Color::White)
m_can_ui(Color::Black, Color::White)
{
this->add_UI_item(&this->m_can_ui);
this->add_UI_item(&this->m_clear_can_list);
connect(&m_clear_can_list, &UI_button::on_click, this, [=, this]{this->m_can_ui.clear_send_buffer(); this->m_can_ui.clear_receive_buffer();});
connect(&m_can_ui, &UI_can::on_send, this, [=, this](QCanBusFrame frame){m_wrapper->send_can_message(frame);});
}
-1
View File
@@ -11,5 +11,4 @@ class Can_Debugger : public Simulator_base {
private:
CAN_Wrapper* m_wrapper;
UI_can m_can_ui;
UI_button m_clear_can_list;
};