Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

CTRE Issue #23

Closed
Auroric opened this issue May 21, 2018 · 16 comments
Closed

CTRE Issue #23

Auroric opened this issue May 21, 2018 · 16 comments
Labels
wait for 2019 Issues with this tag should be fixed once WPILIB goes into beta tests for the 2019 season

Comments

@Auroric
Copy link

Auroric commented May 21, 2018

Error Message: java.lang.UnsatisfiedLinkError: com.ctre.phoenix.motorcontrol.can.MotControllerJNI.Set_4(JIDDI)V java.lang.UnsatisfiedLinkError: com.ctre.phoenix.motorcontrol.can.MotControllerJNI.Set_4(JIDDI)V

This is normally resolved by running Lifeboat with the RIO connected to the computer. Is there a way to do it here?

@pjreiniger
Copy link
Collaborator

See #12. Working on fixing that with a more permanent solution

@pjreiniger
Copy link
Collaborator

I saw you posted in the other thread too. Is this happening when you deploy to the robot, or when you try to run the simulator?

@Auroric
Copy link
Author

Auroric commented May 23, 2018

This happens when trying to run the simulator. We had the exact same issue on the robot a few days ago but fixed it by running Lifeboat.

@pjreiniger
Copy link
Collaborator

pjreiniger commented May 24, 2018

Try updating the SnobotSim plugin to version 2018.05.23, and see if that helps anything. Might not in this case. You can now run gradlew runSnobotSim from the command line to run the simulator

@pjreiniger
Copy link
Collaborator

Actually, what version of CTRE are you trying to link against?

@Auroric
Copy link
Author

Auroric commented May 26, 2018

No idea where to find the CTRE version, but its the most recent one.

@Auroric
Copy link
Author

Auroric commented May 26, 2018

Managed to get it working, and it no longer returns the Unsatisfied Link Error. However there appears to be issues with some of the other CTRE functions. Logs are here: logs.

@RocketRedNeck
Copy link

I submitted a similar issue (#41) and will withdraw it. But could @Auroric please post what you did to solve the link error? Spread the wealth!

@Auroric
Copy link
Author

Auroric commented Sep 4, 2018

That was a while ago, kind of forgot. I probably wrote it down somewhere for the rest of my team, so I'll take a look in my notes @RocketRedNeck .

@pjreiniger
Copy link
Collaborator

I pulled the base of the CTRE simulation out into its own repo, which should help with some of the DLL Hell that was going on. I won't close this yet to make sure it works for 2019 beta, but in the meantime you can play with Release 2018-2.0.0

@pjreiniger pjreiniger added the wait for 2019 Issues with this tag should be fixed once WPILIB goes into beta tests for the 2019 season label Sep 14, 2018
@pjreiniger
Copy link
Collaborator

Try the latest version. This is a good example to base your build file on.

The simulator currently supports CTRE 5.12.0

@RocketRedNeck
Copy link

RocketRedNeck commented Jan 18, 2019 via email

@RocketRedNeck
Copy link

RocketRedNeck commented Jan 18, 2019 via email

@RocketRedNeck
Copy link

RocketRedNeck commented Jan 18, 2019 via email

@pjreiniger
Copy link
Collaborator

I haven't tried to do that with VSCode, I'm still getting spun up on it (and using eclipse or intellij for everything else). I'll see if I can figure out how to get it hooked up with those launch things.

In the meantime if it helps, I know you can do debugging in eclipse. There are also ways that you can tell gradle to wait for a remote debugger to attach on the command line. I don't know if VSCode supports that, but eclipse and intellij do.

@RocketRedNeck
Copy link

Is the main class for snobot still com.snobot.simulator.Main? Or has that changed? I think that as long as I know the entrypoint prior to snobot starting the Robot it should work just fine.
P.S., I think the PS4 controller mapping is not quite right (will be submitting a separate issue unless you have a quick tip)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wait for 2019 Issues with this tag should be fixed once WPILIB goes into beta tests for the 2019 season
Projects
None yet
Development

No branches or pull requests

3 participants