使用GPS时间作为基准
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user