Add DriverStationSim.notifyNewData (#1537)

This commit is contained in:
Peter Johnson
2019-01-09 23:47:42 -08:00
committed by GitHub
parent 308bdbe298
commit 28547d934f
2 changed files with 5 additions and 0 deletions

View File

@@ -75,6 +75,9 @@ public class DriverStationSim {
public void setDsAttached(boolean dsAttached) {
DriverStationDataJNI.setDsAttached(dsAttached);
}
public void notifyNewData() {
DriverStationDataJNI.notifyNewData();
}
public void resetData() {
DriverStationDataJNI.resetData();

View File

@@ -103,6 +103,8 @@ class DriverStationSim {
HALSIM_SetDriverStationDsAttached(dsAttached);
}
void NotifyNewData() { HALSIM_NotifyDriverStationNewData(); }
void ResetData() { HALSIM_ResetDriverStationData(); }
};
} // namespace sim