Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REVLib Spark simulation not iterating integrated rotor sensor position or connected absolute encoder sensor position/velocity when enabled in sim #83

Open
viggy96 opened this issue Dec 21, 2024 · 0 comments
Labels
bug Something isn't working REV Robotics

Comments

@viggy96
Copy link

viggy96 commented Dec 21, 2024

Describe the bug
Calling m_sparkSim.iterate() does not update the sensor position or velocity as expected.

To Reproduce
Steps to reproduce the behavior:

  1. Use Spark Sim
  2. Enable sim in teleop mode
  3. Look at sim device position value while trying to drive motor
  4. Profit
    Expected behavior
    Sensor position is updated

Screenshots
Image

Desktop (please complete the following information if applicable):

  • OS: Linux
  • OS Language: English
  • Project Information:
WPILib Information:
Project Version: 2025.1.1-beta-1
VS Code Version: 1.95.1
WPILib Extension Version: 2025.1.1-beta-3
C++ Extension Version: Not Installed
Java Extension Version: 1.38.0
Java Debug Extension Version: 0.58.1
Java Dependencies Extension Version 0.24.1
Java Version: 17
Java Location: /home/vignesh/wpilib/2025/jdk
Vendor Libraries:
    AdvantageKit (4.0.0-alpha-1)
    CTRE-Phoenix (v5) (5.34.0-beta-4)
    CTRE-Phoenix (v6) (25.0.0-beta-4)
    REVLib (2025.0.0-beta-3)
    ReduxLib (2025.0.0-beta0)
    Studica (2025.1.1-alpha-14)
    URCL (2025.0.0-beta-1)
    WPILib-New-Commands (1.0.0)
    photonlib (v2024.3.1)

Additional context
Add any other context about the problem here.

@viggy96 viggy96 added the bug Something isn't working label Dec 21, 2024
@viggy96 viggy96 changed the title REVLib Spark simulation not iterating integrated rotor sensor position or connected absolute encoder sensor position REVLib Spark simulation not iterating integrated rotor sensor position or connected absolute encoder sensor position when enabled in sim Dec 21, 2024
@viggy96 viggy96 changed the title REVLib Spark simulation not iterating integrated rotor sensor position or connected absolute encoder sensor position when enabled in sim REVLib Spark simulation not iterating integrated rotor sensor position or connected absolute encoder sensor position/velocity when enabled in sim Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working REV Robotics
Projects
None yet
Development

No branches or pull requests

2 participants