Skip to content

Commit

Permalink
Use current timestamp in NT puts
Browse files Browse the repository at this point in the history
  • Loading branch information
shueja committed Jan 11, 2024
1 parent 1dfc84a commit 627298a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions monologue/src/generate/java/NTLogger.java.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package monologue;
import edu.wpi.first.networktables.NetworkTableInstance;
import edu.wpi.first.networktables.*;
import edu.wpi.first.util.struct.Struct;
import edu.wpi.first.util.WPIUtilJNI;
import edu.wpi.first.util.sendable.Sendable;
import edu.wpi.first.wpilibj.DataLogManager;
import edu.wpi.first.wpilibj.smartdashboard.SendableBuilderImpl;
Expand Down Expand Up @@ -69,9 +70,9 @@ class NTLogger extends GenericLogger {
{%endif%}
}
{%if t.TypeName == 'IntegerArray'%}
NetworkTablesJNI.set{{t.java.EntryName}}(published.get(entryName), 0, toLongArray(value));
NetworkTablesJNI.set{{t.java.EntryName}}(published.get(entryName), WPIUtilJNI.now(), toLongArray(value));
{%else%}
NetworkTablesJNI.set{{t.java.EntryName}}(published.get(entryName), 0, value);
NetworkTablesJNI.set{{t.java.EntryName}}(published.get(entryName), WPIUtilJNI.now(), value);
{%endif%}
}

Expand Down

0 comments on commit 627298a

Please sign in to comment.