修改了关于马达的配置 加速 匀速电流均为4 加减速度为10000

This commit is contained in:
xin
2020-09-17 17:20:29 +08:00
parent 0116669ee2
commit 306e4f68a5
2 changed files with 15 additions and 2 deletions

View File

@ -436,6 +436,19 @@ void VinceControl::initMotor(QString motornetid /*= "non"*/)
commonstr = "cfg psv=0\n";
SendCommandtoMotor(commonstr, motornetid);
GetCommonRetrun(buf, motornetid);
commonstr = "cfg acc=10000\n";
SendCommandtoMotor(commonstr, motornetid);
GetCommonRetrun(buf, motornetid);
commonstr = "cfg dec=10000\n";
SendCommandtoMotor(commonstr, motornetid);
GetCommonRetrun(buf, motornetid);
commonstr = "cfg crn=4\n";
SendCommandtoMotor(commonstr, motornetid);
GetCommonRetrun(buf, motornetid);
commonstr = "cfg cra=4\n";
SendCommandtoMotor(commonstr, motornetid);
GetCommonRetrun(buf, motornetid);
}