Commit 616f6d78 authored by beuchatp's avatar beuchatp
Browse files

Added motors off and crtl C to close to both GUIs, needs testing

parent 56ff9f1e
......@@ -223,6 +223,13 @@ void MainGUIWindow::_init()
ui->checkBox_vicon_highlight_markers->setEnabled(false);
// Add keyboard shortcuts
// > for "all motors off", press the space bar
ui->all_motors_off_button->setShortcut(tr("Space"));
// > for "kill GUI node", press "CTRL+C" while the GUI window is the focus
QShortcut* close_GUI_shortcut = new QShortcut(QKeySequence(tr("CTRL+C")), this, SLOT(close()));
#ifdef CATKIN_MAKE
_rosNodeThread->init();
qRegisterMetaType<ptrToMessage>("ptrToMessage");
......
......@@ -154,6 +154,13 @@ MainWindow::MainWindow(int argc, char **argv, QWidget *parent) :
ui->error_label->setStyleSheet("QLabel { color : red; }");
ui->error_label->clear();
// Add keyboard shortcuts
// > for "all motors off", press the space bar
ui->motors_OFF_button->setShortcut(tr("Space"));
// > for "kill GUI node", press "CTRL+C" while the GUI window is the focus
QShortcut* close_GUI_shortcut = new QShortcut(QKeySequence(tr("CTRL+C")), this, SLOT(close()));
initialize_demo_setpoint();
initialize_student_setpoint();
initialize_mpc_setpoint();
......
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