Skip to content

Commit

Permalink
changing to a more reasonable update period for a battery driven device.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryancostanich committed May 7, 2024
1 parent 79ef09c commit 3e0dd45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/GnssTracker_Demo/MeadowApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public class MeadowApp : App<F7CoreComputeV2>

protected IGnssTrackerHardware gnssTracker { get; set; }

readonly TimeSpan GNSSPositionReportInterval = TimeSpan.FromSeconds(15);
readonly TimeSpan GNSSPositionReportInterval = TimeSpan.FromMinutes(5);

readonly TimeSpan sensorUpdateInterval = TimeSpan.FromSeconds(90);
readonly TimeSpan sensorUpdateInterval = TimeSpan.FromMinutes(5);

public override Task Initialize()
{
Expand Down Expand Up @@ -227,6 +227,7 @@ public override async Task Run()

if (gnssTracker.Gnss is { } gnss)
{
//TODO: This should be set with an interval, no?
gnss.StartUpdating();
}

Expand Down

0 comments on commit 3e0dd45

Please sign in to comment.