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

did the 2022 update change the romi's motor channels? #222

Closed
SammyPants37 opened this issue Mar 21, 2022 · 12 comments
Closed

did the 2022 update change the romi's motor channels? #222

SammyPants37 opened this issue Mar 21, 2022 · 12 comments

Comments

@SammyPants37
Copy link

I just updated the romi image to 2022 and now the romi won't drive is this because of the update or some other issue on my end

@zhiquanyeo
Copy link
Member

We'll test this shortly. By "not driving" do you mean not moving at all, or not driving in the way you expect

@SammyPants37
Copy link
Author

the drivetrain thinks that it is running motors but the romi isn't moving at all

@jpokornyiii
Copy link

Can you confirm you can reach the romi via the webapi? Try http://wpilibpi.local or http://10.0.0.2. Re-imaging the Romi will reset the wireless configuration on the pi which could cause a mismatch with your Java code build configuration if you customized it.

@SammyPants37
Copy link
Author

I can reach http://10.0.0.2/ and this is a fresh image (I made this issue just a little while after I imaged it)

@SammyPants37
Copy link
Author

I just tested the romi reference code and that worked fine

@jpokornyiii
Copy link

Can you post a link to the robot code that doesn't work? I'll try it out as well.

@SammyPants37
Copy link
Author

SammyPants37 commented Mar 23, 2022 via email

@jpokornyiii
Copy link

Can you check if you see "HALSimWS: WebSocket Connected" in the output as well? There were some changes between WPILib 2021 and WPILIB 2022 and the builld.gradle file. It may not be connecting at all.

@SammyPants37
Copy link
Author

here is my code that isn't working
https://github.com/SammyPants37/romiWork-2022

@jpokornyiii
Copy link

I'll test this out when I get home tonight but my gut felling is that you are missing this in your build.gradle file:

wpi.sim.envVar("HALSIMWS_HOST", "10.0.0.2")
wpi.sim.addWebsocketsClient().defaultEnabled = true

This was coded differently in the past and if you imported the project to FRC VS Code 2022 you would have to add them back.

@jpokornyiii
Copy link

Change above fixed it when I tested it out. Please confirm this fixes the issue.

@jpokornyiii
Copy link

Created above issue to follow up on the importing of romi projects to new VS Code versions. Will close this out. If this problem continues please create a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants