构建好显示点和线

This commit is contained in:
hm
2022-02-10 14:26:23 +08:00
parent 8cc6d1c3ed
commit cfb7585549
16 changed files with 447 additions and 375 deletions
+20 -9
View File
@@ -602,7 +602,10 @@ void ServoSystem::on_pushButton_SendCommand_clicked()
{
emit showMessage(tr("修改参数 ") + " " + m_id.toLatin1().data() + " " + QString::number(m_value),5000);
emit WriteCmd(m_sysid,m_compid,m_id.toLatin1().data(),m_type,m_value);
emit WriteCmd(m_sysid,m_compid,m_id.toLatin1().data(),m_type,param_getvalue(m_value,m_type));
}
}
@@ -820,9 +823,11 @@ void ServoSystem::on_pushButton_IMU_clicked()
id.clear();
id.append("use_ext_ins");
float value = param_getvalue(ui->comboBox_IMU->currentData(Qt::UserRole).toInt(),type);
//float value = param_getvalue(ui->comboBox_IMU->currentData(Qt::UserRole).toInt(),type);
on_paramClicked(sysid,compid,id,type,value);
on_paramClicked(sysid,compid,id,type,ui->comboBox_IMU->currentData(Qt::UserRole).toDouble());
//emit showMessage(tr("修改参数 ") + " " + m_id.toLatin1().data() + " " + QString::number(ui->comboBox_IMU->currentData(Qt::UserRole).toInt()),5000);
}
else
@@ -850,9 +855,11 @@ void ServoSystem::on_pushButton_IAS_SEL_0_clicked()
id.append("IAS_SEL");
float value = param_getvalue(0,type);
//float value = param_getvalue(0,type);
on_paramClicked(sysid,compid,id,type,value);
//emit showMessage(tr("修改参数 ") + " " + m_id.toLatin1().data() + " " + QString::number(0),5000);
on_paramClicked(sysid,compid,id,type,0);
}
else
@@ -878,9 +885,11 @@ void ServoSystem::on_pushButton_IAS_SEL_1_clicked()
id.clear();
id.append("IAS_SEL");
float value = param_getvalue(1,type);
//float value = param_getvalue(1,type);
on_paramClicked(sysid,compid,id,type,value);
//emit showMessage(tr("修改参数 ") + " " + m_id.toLatin1().data() + " " + QString::number(1),5000);
on_paramClicked(sysid,compid,id,type,1);
}
else
@@ -905,9 +914,11 @@ void ServoSystem::on_pushButton_IAS_SEL_2_clicked()
id.clear();
id.append("IAS_SEL");
float value = param_getvalue(2,type);
//float value = param_getvalue(2,type);
on_paramClicked(sysid,compid,id,type,value);
//emit showMessage(tr("修改参数 ") + " " + m_id.toLatin1().data() + " " + QString::number(2),5000);
on_paramClicked(sysid,compid,id,type,2);
}
else