-
Notifications
You must be signed in to change notification settings - Fork 11
CTRE Issue #23
Comments
See #12. Working on fixing that with a more permanent solution |
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? |
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. |
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 |
Actually, what version of CTRE are you trying to link against? |
No idea where to find the CTRE version, but its the most recent one. |
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. |
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 . |
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 |
Try the latest version. This is a good example to base your build file on. The simulator currently supports CTRE 5.12.0 |
Changed the simulator_config.properties to reference frc.robot.Robot.
Thanks, got it to run with "./gradlew runJavaSnobotSim"
But the nice GUI that popped up with the example did not appear. Is there
something I am missing?
Michael Kessel
Coach
The Bit Buckets
web.bitbuckets.org <http://www.bitbuckets.org>
FRC Team #4183
FLL Team #38905
VEX Team #5485
…On Thu, Jan 17, 2019 at 2:42 PM PJ Reiniger ***@***.***> wrote:
Try the latest version. This
<https://github.com/pjreiniger/SnobotSimExamples/blob/master/JavaExample/build.gradle>
is a good example to base your build file on.
The simulator currently supports CTRE 5.12.0
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATUoKCp1Ilu-qi9hqnkd7Ow2eHKmh7weks5vEO5bgaJpZM4UGTyF>
.
|
I think I found out why: the following dialog was behind a bunch of windows
and as soon as I closed it, then things popped up.
[image: image.png]
Michael Kessel
Coach
The Bit Buckets
web.bitbuckets.org <http://www.bitbuckets.org>
FRC Team #4183
FLL Team #38905
VEX Team #5485
…On Thu, Jan 17, 2019 at 11:27 PM Mike Kessel ***@***.***> wrote:
Changed the simulator_config.properties to reference frc.robot.Robot.
Thanks, got it to run with "./gradlew runJavaSnobotSim"
But the nice GUI that popped up with the example did not appear. Is there
something I am missing?
Michael Kessel
Coach
The Bit Buckets
web.bitbuckets.org <http://www.bitbuckets.org>
FRC Team #4183
FLL Team #38905
VEX Team #5485
On Thu, Jan 17, 2019 at 2:42 PM PJ Reiniger ***@***.***>
wrote:
> Try the latest version. This
> <https://github.com/pjreiniger/SnobotSimExamples/blob/master/JavaExample/build.gradle>
> is a good example to base your build file on.
>
> The simulator currently supports CTRE 5.12.0
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#23 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ATUoKCp1Ilu-qi9hqnkd7Ow2eHKmh7weks5vEO5bgaJpZM4UGTyF>
> .
>
|
Sorry to bug you again. Trying to key the VS Code debugger into running the
sim
The following configuration worked with the previous version (alpha
integration)
But the com.snobot.simulator.Main is no longer the entry point (does not
exist).
Using the frc.robot.Main does not seem right; how should we start the sim
through the debugger?
mk
{
"type": "java",
"name": "Debug (Launch)",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopOnEntry": false,
"mainClass": "com.snobot.simulator.Main",
"args": "",
"vmArgs": "-Djava.library.path=build/native_libs",
"env": {
"DYLD_LIBRARY_PATH": "build/native_libs"
}
}
Michael Kessel
Coach
The Bit Buckets
web.bitbuckets.org <http://www.bitbuckets.org>
FRC Team #4183
FLL Team #38905
VEX Team #5485
…On Thu, Jan 17, 2019 at 11:31 PM Mike Kessel ***@***.***> wrote:
I think I found out why: the following dialog was behind a bunch of
windows and as soon as I closed it, then things popped up.
[image: image.png]
Michael Kessel
Coach
The Bit Buckets
web.bitbuckets.org <http://www.bitbuckets.org>
FRC Team #4183
FLL Team #38905
VEX Team #5485
On Thu, Jan 17, 2019 at 11:27 PM Mike Kessel ***@***.***>
wrote:
> Changed the simulator_config.properties to reference frc.robot.Robot.
> Thanks, got it to run with "./gradlew runJavaSnobotSim"
>
> But the nice GUI that popped up with the example did not appear. Is there
> something I am missing?
>
>
> Michael Kessel
> Coach
> The Bit Buckets
> web.bitbuckets.org <http://www.bitbuckets.org>
> FRC Team #4183
> FLL Team #38905
> VEX Team #5485
>
>
> On Thu, Jan 17, 2019 at 2:42 PM PJ Reiniger ***@***.***>
> wrote:
>
>> Try the latest version. This
>> <https://github.com/pjreiniger/SnobotSimExamples/blob/master/JavaExample/build.gradle>
>> is a good example to base your build file on.
>>
>> The simulator currently supports CTRE 5.12.0
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <#23 (comment)>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/ATUoKCp1Ilu-qi9hqnkd7Ow2eHKmh7weks5vEO5bgaJpZM4UGTyF>
>> .
>>
>
|
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. |
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. |
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?
The text was updated successfully, but these errors were encountered: