[examples] Add comment on how to view elevator sim (NFC) (#4482)

This commit is contained in:
Michael Leong
2022-12-13 22:34:00 -08:00
committed by GitHub
parent fb2c170b6e
commit cc8675a4e5
2 changed files with 4 additions and 0 deletions

View File

@@ -83,6 +83,8 @@ class Robot : public frc::TimedRobot {
m_encoder.SetDistancePerPulse(kArmEncoderDistPerPulse);
// Put Mechanism 2d to SmartDashboard
// To view the Elevator Sim in the simulator, select Network Tables ->
// SmartDashboard -> Elevator Sim
frc::SmartDashboard::PutData("Elevator Sim", &m_mech2d);
}