mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
[examples] Add comment on how to view elevator sim (NFC) (#4482)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +76,8 @@ public class Robot extends TimedRobot {
|
||||
m_encoder.setDistancePerPulse(kElevatorEncoderDistPerPulse);
|
||||
|
||||
// Publish Mechanism2d to SmartDashboard
|
||||
// To view the Elevator Sim in the simulator, select Network Tables -> SmartDashboard ->
|
||||
// Elevator Sim
|
||||
SmartDashboard.putData("Elevator Sim", m_mech2d);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user