obstacleSimulationCheckBox->setShortcut(tr("o"));
layout->addWidget(obstacleSimulationCheckBox);
- startBtn = new QPushButton("Start");
- layout->addWidget(startBtn);
+ startPlug = new QCheckBox("Start plug");
+ layout->addWidget(startPlug);
miscGroupBox->setLayout(layout);
}
connect(showMapPushButton, SIGNAL(clicked()),
this, SLOT(showMap()));
- connect(startBtn, SIGNAL(clicked()), this, SLOT(sendStart()));
-
+ connect(startPlug, SIGNAL(stateChanged(int)), this, SLOT(sendStart(int)));
+
/* obstacle simulation */
simulationEnabled = 0;
connect(obstacleSimulationCheckBox, SIGNAL(stateChanged(int)),
return distance;
}
-void RobomonAtlantis::sendStart()
+void RobomonAtlantis::sendStart(int plug)
{
- orte.robot_cmd.start = 1;
+ orte.robot_cmd.start = plug ? 0 : 1;
ORTEPublicationSend(orte.publication_robot_cmd);
}
void pick();
void setBelts(int value);
void setChelae(int value);
- void sendStart();
+ void sendStart(int plug);
/************************************************************
* ORTE
QLabel *fsm_main_state;
QLabel *fsm_act_state;
QLabel *fsm_motion_state;
- QPushButton *startBtn;
+ QCheckBox *startPlug;
/* robot */
Robot *robotActPos;