[examples] Update Field2d position in periodic() (#2928)

This ensures that the robot position will be updated in dashboards like Glass when running on real hardware.
This commit is contained in:
Prateek Machiraju
2020-12-10 23:36:20 -05:00
committed by GitHub
parent f78d1d4340
commit 65219f3093
7 changed files with 18 additions and 9 deletions

View File

@@ -64,6 +64,7 @@ class Drivetrain {
frc::Pose2d GetPose() const { return m_odometry.GetPose(); }
void SimulationPeriodic();
void Periodic();
private:
static constexpr units::meter_t kTrackWidth = 0.381_m * 2;