diff --git a/dfall_ws/src/dfall_pkg/GUI_Qt/flyingAgentGUI/src/controllerstatusbanner.cpp b/dfall_ws/src/dfall_pkg/GUI_Qt/flyingAgentGUI/src/controllerstatusbanner.cpp index 0ad01ec5525c2f54c5e440b7a2f84371e2a7f170..5063c21cdda79f36ff0b457231181ac4045403c5 100644 --- a/dfall_ws/src/dfall_pkg/GUI_Qt/flyingAgentGUI/src/controllerstatusbanner.cpp +++ b/dfall_ws/src/dfall_pkg/GUI_Qt/flyingAgentGUI/src/controllerstatusbanner.cpp @@ -33,6 +33,9 @@ void ControllerStatusBanner::setStatus(int new_status) // CHECK IF THE "new_status" IS DIFFERENT FROM THE "m_current_status" if (new_status!=m_current_status) { + // UPDATE THE CLASS VARIABLE TO THE NEW STATUS + m_current_status = new_status; + // SWITCH BETWEEN THE POSSIBLE STATUS VALUES switch (new_status) { diff --git a/dfall_ws/src/dfall_pkg/GUI_Qt/flyingAgentGUI/src/controllertabs.cpp b/dfall_ws/src/dfall_pkg/GUI_Qt/flyingAgentGUI/src/controllertabs.cpp index 52d7c5f3ee0602eeb481fb3ce29fda352deaa616..c29d10d692ea6cf2e3e89f0bf6af1558c509b5b4 100644 --- a/dfall_ws/src/dfall_pkg/GUI_Qt/flyingAgentGUI/src/controllertabs.cpp +++ b/dfall_ws/src/dfall_pkg/GUI_Qt/flyingAgentGUI/src/controllertabs.cpp @@ -428,7 +428,7 @@ void ControllerTabs::poseDataReceivedCallback(const dfall_pkg::ViconData& viconD // > For the controller currently operating, received on "controllerUsedSubscriber" void ControllerTabs::controllerUsedChangedCallback(const std_msgs::Int32& msg) { - //ROS_INFO_STEAM("[COORDINATOR ROW GUI] Controller Used Changed Callback called for agentID = " << m_agentID); + //ROS_INFO_STREAM("[COORDINATOR ROW GUI] Controller Used Changed Callback called with msg.data = " << msg.data); setControllerEnabled(msg.data); } #endif @@ -438,9 +438,6 @@ void ControllerTabs::setControllerEnabled(int new_controller) { // Define the tab text highlight colour locally const static QColor tab_text_colour_highlight = QColor(40,120,40); - // Define the on string and style sheet setting locally - const static QString style_sheet_string_for_on = "background-color:rgb(40,120,40);"; - const static QString text_for_controller_isOn = "A\nC\nT\nI\nV\nE"; // First set everything back to normal colouring setAllTabLabelsToNormalColouring();