update gencode based on 68aa2ed, linked detect disable in bat

This commit is contained in:
Matthew GONG
2021-04-24 08:31:07 +08:00
parent 57abf00a34
commit 03809f0259
85 changed files with 13274 additions and 13281 deletions
+19
View File
@@ -89,6 +89,12 @@ void MainWindow::scan_param()
param_value = QString("%1").arg(c[j]);
}
break;
case SS_BOOLEAN:
{
boolean_T *c = (boolean_T *)da[idx];
param_value = QString("%1").arg(c[j]);
}
break;
case SS_UINT16:
{
uint16_T *h = (uint16_T *)da[idx];
@@ -230,6 +236,12 @@ void MainWindow::setup_param(const QVector<QString> &head, const QVector<double>
c[target_idx] = target_value;
}
break;
case SS_BOOLEAN:
{
bool *c = (bool *)da[idx];
c[target_idx] = target_value >=0.5?true:false;
}
break;
case SS_UINT16:
{
uint16_T *h = (uint16_T *)da[idx];
@@ -475,6 +487,13 @@ void MainWindow::onFire()
head.push_back("X0(2)");
onecase.push_back(hground+val);
}
head.push_back("force_sysauto_level");
onecase.push_back(0);
}
else
{
head.push_back("force_sysauto_level");
onecase.push_back(1);
}
setup_param(head, onecase);