wpilibsuite / WPILibPi

WPILib Raspberry Pi images designed for FRC (formerly FRCVision)
Other
86 stars 40 forks source link

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

Closed SammyPants37 closed 2 years ago

SammyPants37 commented 2 years ago

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 commented 2 years ago

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

SammyPants37 commented 2 years ago

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

jpokornyiii commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

I just tested the romi reference code and that worked fine

jpokornyiii commented 2 years ago

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

SammyPants37 commented 2 years ago

Yeah I can put it on GitHub at some point


From: jpokornyiii @.> Sent: Wednesday, March 23, 2022 6:13:52 PM To: wpilibsuite/WPILibPi @.> Cc: SammyPants @.>; Author @.> Subject: Re: [wpilibsuite/WPILibPi] did the 2022 update change the romi's motor channels? (Issue #222)

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

— Reply to this email directly, view it on GitHubhttps://github.com/wpilibsuite/WPILibPi/issues/222#issuecomment-1076908525, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWOIT4SDLM4FAAXODGPH5S3VBOQTBANCNFSM5RI5CLGA. You are receiving this because you authored the thread.Message ID: @.***>

jpokornyiii commented 2 years ago

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 commented 2 years ago

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

jpokornyiii commented 2 years ago

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 commented 2 years ago

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

jpokornyiii commented 2 years ago

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.