|
@@ -762,6 +762,31 @@ void ADCIntelligentShow::SplitString(const string& s, vector<string>& v, const s
|
|
|
|
|
|
void ADCIntelligentShow::on_park_clicked()
|
|
void ADCIntelligentShow::on_park_clicked()
|
|
{
|
|
{
|
|
|
|
+ iv::hmi::hmimsg xhmi;
|
|
|
|
+ xhmi.set_mbbochemode(true);
|
|
|
|
+ xhmi.set_mbbusmode(false);
|
|
|
|
+ if(mbRunning)
|
|
|
|
+ xhmi.set_mbpause(true);
|
|
|
|
+ else
|
|
|
|
+ xhmi.set_mbpause(false);
|
|
|
|
+ int nsize = xhmi.ByteSize();
|
|
|
|
+ char * str = new char[nsize];
|
|
|
|
+ if(xhmi.SerializeToArray(str,1000))
|
|
|
|
+ {
|
|
|
|
+#ifndef Android
|
|
|
|
+ iv::modulecomm::ModuleSendMsg(mpapad,str,nsize);
|
|
|
|
+#else
|
|
|
|
+ ggt->UpdateData(str,nsize,"pad");
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ std::cout<<"ADCIntelligentShow::on_pushButton_clicked serialize error."<<std::endl;
|
|
|
|
+ }
|
|
|
|
+ delete str;
|
|
|
|
+ QApplication::beep();
|
|
|
|
+ return;
|
|
int xRun = 2;
|
|
int xRun = 2;
|
|
socket->writeDatagram((char *)&xRun,4,QHostAddress::Broadcast,9998);
|
|
socket->writeDatagram((char *)&xRun,4,QHostAddress::Broadcast,9998);
|
|
QApplication::beep();
|
|
QApplication::beep();
|