Skip to content

Commit 20b869e

Browse files
committed
Copilot review follow-up: Improve GPS resilience code clarity
1 parent 4c5332f commit 20b869e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Vehicle/FactGroups/VehicleGPSAggregateFactGroup.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ VehicleGPSAggregateFactGroup::VehicleGPSAggregateFactGroup(QObject *parent)
4646
_isStaleFact.setRawValue(true);
4747

4848
_staleTimer.setSingleShot(true);
49-
_staleTimer.setInterval(5000);
49+
_staleTimer.setInterval(GNSS_INTEGRITY_STALE_TIMEOUT_MS);
5050
connect(&_staleTimer, &QTimer::timeout, this, &VehicleGPSAggregateFactGroup::_onStaleTimeout);
5151
}
5252

src/Vehicle/FactGroups/VehicleGPSAggregateFactGroup.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ private slots:
4040
void _onStaleTimeout();
4141

4242
private:
43+
static constexpr int GNSS_INTEGRITY_STALE_TIMEOUT_MS = 5000;
44+
4345
static int _mergeWorst(int a, int b);
4446
static int _mergeAuthentication(int a, int b);
4547
static int _valueOrInvalid(Fact* fact);

0 commit comments

Comments
 (0)