使用GPS时间作为基准

This commit is contained in:
2023-05-17 16:27:12 +08:00
parent fbdd84ca12
commit 2b024562b5
5 changed files with 53 additions and 9 deletions
+2 -3
View File
@@ -446,7 +446,7 @@ void PowerSystem::setFuel(QVariant press, QVariant value)
void PowerSystem::setMa(QVariant Ma)
void PowerSystem::setMa(qint64 time, QVariant Ma)
{
if(AMaTimer)
{
@@ -456,9 +456,8 @@ void PowerSystem::setMa(QVariant Ma)
}
}
averageMa.append(Ma.toDouble());
averageTime.append(QDateTime::currentMSecsSinceEpoch());
averageTime.append(time);
while(averageTime.back() - averageTime.first() > (100 * 1000))
{