20201029
This commit is contained in:
@ -31,7 +31,7 @@ VinceControl::~VinceControl()
|
||||
if (protools==NETTCP)
|
||||
{
|
||||
tcpServer->close();
|
||||
delete tcpServer;
|
||||
//delete tcpServer;
|
||||
|
||||
}
|
||||
|
||||
@ -426,7 +426,7 @@ void VinceControl::initMotor(QString motornetid /*= "non"*/)
|
||||
SendCommandtoMotor(commonstr, motornetid);
|
||||
GetCommonRetrun(buf, motornetid);
|
||||
//<2F><><EFBFBD><EFBFBD>ϸ<EFBFBD><CFB8>
|
||||
commonstr = "cfg mcs=7\n";
|
||||
commonstr = "cfg mcs=6\n";
|
||||
SendCommandtoMotor(commonstr, motornetid);
|
||||
GetCommonRetrun(buf, motornetid);
|
||||
|
||||
@ -473,10 +473,10 @@ void VinceControl::initMotor(QString motornetid /*= "non"*/)
|
||||
SendCommandtoMotor(commonstr, motornetid);
|
||||
GetCommonRetrun(buf, motornetid);
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ4
|
||||
commonstr = "cfg crn=4\n";
|
||||
commonstr = "cfg crn=1.4\n";
|
||||
SendCommandtoMotor(commonstr, motornetid);
|
||||
GetCommonRetrun(buf, motornetid);
|
||||
commonstr = "cfg cra=4\n";
|
||||
commonstr = "cfg cra=1.4\n";
|
||||
SendCommandtoMotor(commonstr, motornetid);
|
||||
GetCommonRetrun(buf, motornetid);
|
||||
|
||||
@ -611,7 +611,7 @@ void VinceControl::onNewTcpClinetConnet()
|
||||
int speed = 200;
|
||||
Speedlist.append(speed);
|
||||
qint32 port = tcpSocket[tcpSocket.length() - 1]->peerPort();
|
||||
QString str11 = ip + " Connected The Port Number is "+QString::number(port)+"\n";
|
||||
QString str11 = ip + " is Connected \n";
|
||||
SendLog(str11);
|
||||
Handshacke(Motorlist[Motorlist.length()-1]);
|
||||
qDebug() << ip << ":" << port;
|
||||
|
Reference in New Issue
Block a user