Commit 24e65e7e authored by Paul Beuchat's avatar Paul Beuchat
Browse files

fixed small bugs for command button 3 in student GUI

parent 36579e13
......@@ -1101,7 +1101,7 @@ void MainWindow::on_demoButton_2_clicked()
ROS_INFO("Demo button 2 pressed in GUI");
}
void MainWindow::on_customButton_3_clicked()
void MainWindow::on_demoButton_3_clicked()
{
CustomButton msg_custom_button;
msg_custom_button.button_index = 3;
......@@ -1138,7 +1138,7 @@ void MainWindow::on_studentButton_3_clicked()
{
CustomButton msg_custom_button;
msg_custom_button.button_index = 3;
msg_custom_button.command_code = (ui->demoField_3->text()).toFloat();
msg_custom_button.command_code = (ui->studentField_3->text()).toFloat();
this->studentCustomButtonPublisher.publish(msg_custom_button);
ROS_INFO("Student button 3 pressed in GUI");
}
......
......@@ -57,6 +57,7 @@
#include "d_fall_pps/Controller.h"
#include "d_fall_pps/DebugMsg.h"
#include "d_fall_pps/CustomControllerYAML.h"
#include "d_fall_pps/CustomButton.h"
// Include the Parameter Service shared definitions
#include "nodes/ParameterServiceDefinitions.h"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment