Skip to content

Commit

Permalink
test: change values for demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
seilc1 committed Aug 25, 2024
1 parent ecfd431 commit bf5e6d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Trackmate.Backend/Tracks/TrackModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ public class TrackModel()

public required TrackNodeModel GoalNode { get; set; }

public DateTimeOffset LastPictureUploadDateTime { get; set; }
public DateTimeOffset LastPictureUploadDateTime { get; set; } = DateTimeOffset.MinValue;

public DateTimeOffset LastHintDateTime { get; set; }
public DateTimeOffset LastHintDateTime { get; set; } = DateTimeOffset.MinValue;

public Vector3 CurrentVector
{
Expand Down
3 changes: 3 additions & 0 deletions src/Trackmate.Backend/Tracks/TrackService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ private static async Task<TrackNodeModel> FindNextRelevantTrackNodeModel(TrackNo
/// </summary>
private bool IsInstructionNecessary(TrackModel track, TrackNodeModel nextTrackNodeModel)
{
// disable for DEMO
return false;

Vector3 currentVector = track.CurrentVector;
Vector3 nextVector = nextTrackNodeModel.Location.AsCoordinates();
double dotProduct = currentVector.X * nextVector.X + currentVector.Y * nextVector.Y + currentVector.Z * nextVector.Z;
Expand Down
2 changes: 1 addition & 1 deletion src/Trackmate.Backend/Tracks/TrackServiceSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class TrackServiceSettings
/// <summary>
/// No repetetive instructions will be given to the user within this time span.
/// </summary>
public TimeSpan InstructionTimeout { get; set; } = TimeSpan.FromSeconds(10);
public TimeSpan InstructionTimeout { get; set; } = TimeSpan.FromHours(10);

/// <summary>
/// The angle threshold in degrees to determine if a instruction is necessary.
Expand Down

0 comments on commit bf5e6d5

Please sign in to comment.