mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-18 11:13:29 +00:00
Missed one file on readd
This commit is contained in:
parent
9bbdd1be20
commit
5f0a6bbf87
@ -49,7 +49,7 @@ uint32_t GPSUpdateScheduling::msUntilNextSearch()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// How long have we already been searching?
|
// How long have we already been searching?
|
||||||
// Used to abort a search in progress, if it runs unnaceptably long
|
// Used to abort a search in progress, if it runs unacceptably long
|
||||||
uint32_t GPSUpdateScheduling::elapsedSearchMs()
|
uint32_t GPSUpdateScheduling::elapsedSearchMs()
|
||||||
{
|
{
|
||||||
// If searching
|
// If searching
|
||||||
@ -98,7 +98,7 @@ void GPSUpdateScheduling::updateLockTimePrediction()
|
|||||||
|
|
||||||
// Ignore the first lock-time: likely to be long, will skew data
|
// Ignore the first lock-time: likely to be long, will skew data
|
||||||
|
|
||||||
// Second locktime: likely stable. Use to intialize the smoothing filter
|
// Second locktime: likely stable. Use to initialize the smoothing filter
|
||||||
if (searchCount == 1)
|
if (searchCount == 1)
|
||||||
predictedMsToGetLock = lockTime;
|
predictedMsToGetLock = lockTime;
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ void GPSUpdateScheduling::updateLockTimePrediction()
|
|||||||
else if (searchCount > 1)
|
else if (searchCount > 1)
|
||||||
predictedMsToGetLock = (lockTime * weighting) + (predictedMsToGetLock * (1 - weighting));
|
predictedMsToGetLock = (lockTime * weighting) + (predictedMsToGetLock * (1 - weighting));
|
||||||
|
|
||||||
searchCount++; // Only tracked so we can diregard initial lock-times
|
searchCount++; // Only tracked so we can disregard initial lock-times
|
||||||
|
|
||||||
LOG_DEBUG("Predicting %us to get next lock", predictedMsToGetLock / 1000);
|
LOG_DEBUG("Predicting %us to get next lock", predictedMsToGetLock / 1000);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user