Skip to content

Commit

Permalink
[choreolib] Fix compilation error in Trajectory::GetTotalTime()
Browse files Browse the repository at this point in the history
Fixes #1147.
  • Loading branch information
calcmogul committed Jan 15, 2025
1 parent b4cb4cd commit 2910b90
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <utility>
#include <vector>

#include <units/time.h>
#include <wpi/json_fwd.h>

#include "choreo/trajectory/DifferentialSample.h"
Expand Down Expand Up @@ -157,7 +158,7 @@ class Trajectory {
if (samples.size() == 0) {
return 0_s;
}
return GetFinalSample().GetTimestamp();
return GetFinalSample().value().GetTimestamp();
}

/**
Expand Down

0 comments on commit 2910b90

Please sign in to comment.