构建好显示点和线
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user