航迹最大1000个点,数据保存1分钟存一次
This commit is contained in:
@@ -239,12 +239,20 @@ void StatusUI::setState(uint32_t pos, QVariant value1, QVariant value2)
|
||||
case 7:
|
||||
ui->label_1_cas->setText(value1.toString());
|
||||
|
||||
if(value1.toFloat() <= 90)
|
||||
{
|
||||
setColor(ui->label_1_cas,state::failure);
|
||||
}
|
||||
else
|
||||
{
|
||||
setColor(ui->label_1_cas,state::inital);
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
ui->label_1_tas->setText(value1.toString());
|
||||
ui->label_2_tas->setText(value2.toString());
|
||||
|
||||
if(value1.toFloat() <= 90)
|
||||
if(value1.toFloat() <= 100)
|
||||
{
|
||||
setColor(ui->label_1_tas,state::failure);
|
||||
}
|
||||
@@ -257,7 +265,7 @@ void StatusUI::setState(uint32_t pos, QVariant value1, QVariant value2)
|
||||
case 9:
|
||||
ui->label_1_gs->setText(value1.toString());
|
||||
|
||||
if(value1.toFloat() <= 90)
|
||||
if(value1.toFloat() <= 100)
|
||||
{
|
||||
setColor(ui->label_1_gs,state::failure);
|
||||
}
|
||||
@@ -318,11 +326,10 @@ void StatusUI::setEngine(uint32_t pos,QVariant value1,QVariant value2)
|
||||
{
|
||||
switch (pos) {
|
||||
case 1:
|
||||
//ui->label_thr->setText(value1.toString());
|
||||
|
||||
if(value1.toInt() > 100)
|
||||
if(value1.toInt() >= 100)
|
||||
{
|
||||
//ui->label_thr
|
||||
ui->label_thr->setRange(0,value1.toInt());
|
||||
}
|
||||
|
||||
ui->label_thr->setValue(value1.toInt());
|
||||
|
||||
Reference in New Issue
Block a user