|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
We started playing with the example code tonight, trying to use the navX to Auto-Rotate to an angle but we're having an issue where no matter what values we use for PID, the bot rotates to the angle and constantly shakes back and forth trying to reach the exact angle.
I can post our code if that helps, we're using C++ and have a 4 motor/4 transmission tank drive configuration on our test chassis. Hoping someone might have some ideas for us. Thx. |
|
#2
|
||||
|
||||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
Quote:
The problem ended up being that the loop time was really long, like 300 ms. Since it took so long to update, it repeatedly overshot the target and shook back and forth. In my case, it turned out that this was being caused by an error, because I didn't configure something correctly in the drive encoders. So the code seemed to be quietly throwing errors which drastically slowed down the iteration time. Last edited by cjl2625 : 20-01-2015 at 23:37. |
|
#3
|
||||
|
||||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
Not sure about anyone else, but the NavXMXPUI program isn't working for our team. When I try to run the .bat file, it says it can't find a file.
Is there a KNOWN working version somewhere? Thanks! |
|
#4
|
|||
|
|||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
The navXMXPUI 64 bit windows version is known working, tested on Windows 7 64-bit. Please post details on the error message you are seeing. Note that Java is required to be installed, too.
|
|
#5
|
||||
|
||||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
I'm using 64-bit Windows 8.1 (that might be the issue?)
Here is the command prompt window text Code:
Catched FileNotFoundException: C:\Users\Joe\Desktop\navx-utilities\navXMXPUI\app
lication.windows64\lib\gluegen-rt-natives-windows-i586.jar (The system cannot fi
nd the file specified), while addNativeJarLibsImpl(classFromJavaJar class com.jo
gamp.common.os.Platform, classJarURI jar:file:/C:/Users/Joe/Desktop/navx-utiliti
es/navXMXPUI/application.windows64/lib/gluegen-rt.jar!/com/jogamp/common/os/Plat
form.class, nativeJarBaseName gluegen-rt-natives-windows-i586.jar): [ file:/C:/U
sers/Joe/Desktop/navx-utilities/navXMXPUI/application.windows64/lib/gluegen-rt.j
ar -> file:/C:/Users/Joe/Desktop/navx-utilities/navXMXPUI/application.windows64/
lib/ ] + gluegen-rt-natives-windows-i586.jar -> slim: jar:file:/C:/Users/Joe/Des
ktop/navx-utilities/navXMXPUI/application.windows64/lib/gluegen-rt-natives-windo
ws-i586.jar!/
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: Can't loa
d library: C:\Users\Joe\Desktop\navx-utilities\navXMXPUI\application.windows64\g
luegen-rt.dll
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoad
erBase.java:551)
at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.ja
va:64)
at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNIL
ibLoaderBase.java:96)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.j
ava:414)
at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrar
y(DynamicLibraryBundle.java:388)
at com.jogamp.common.os.Platform$1.run(Platform.java:203)
at java.security.AccessController.doPrivileged(Native Method)
at com.jogamp.common.os.Platform.<clinit>(Platform.java:173)
at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:82)
at processing.opengl.PJOGL.initSurface(PJOGL.java:238)
at processing.opengl.PGraphicsOpenGL.initPrimary(PGraphicsOpenGL.java:59
88)
at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:16
00)
at processing.core.PApplet.run(PApplet.java:2177)
at java.lang.Thread.run(Unknown Source)
Thanks! |
|
#6
|
|||
|
|||
|
Quote:
Also, you might try installing the processing IDE, using the instructions at the bottom of this page: https://code.google.com/p/navx-mxp/wiki/navXMXPUI |
|
#7
|
||||
|
||||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
Quote:
I have the Processing IDE installed (v2.2.1) When I try to run the navXMXPUI.pde, it says: Code:
No library found for com.kauailabs.navx_mxp No library found for com.kauailabs.navx_mxp Libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder. |
|
#8
|
|||
|
|||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
Quote:
You'll need processing IDE v 2.1. Also the sketch folder in the processing IDE needs to be set to point to the directory that has the navXMXPUI.pde file in it. |
|
#9
|
||||
|
||||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
Rolling back to Java 7 worked! Thanks!
|
|
#10
|
|||
|
|||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
Great to hear, congratulations.
Did a little research on the error message re: the missing file; it looks like the previous Java system thought it was 32 bits, so perhaps previously the 32-bit version of Java 8 was installed. We will do some testing with Java 8 and the navXMXPUI to try to get this sorted out. |
|
#11
|
||||
|
||||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
Quote:
Thanks again for the help. The NavX is VERY responsive at 60Hz! It's awesome! |
|
#12
|
||||
|
||||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
Quote:
* You might also get the symptoms you've described if there is some binding or other non-uniform drag in your drivetrain. |
|
#13
|
||||
|
||||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
Quote:
|
|
#14
|
|||||
|
|||||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
Quote:
It sounds to me like you need to set the P constant lower yet. Remember that it's using the error in robot heading and turning that into a motor command. Motor values are between -1 and 1, and you probably want it to go to less than ten percent power when you're within several degrees of the target. I'd try a Kp of 0.01 to start with and go from there. |
|
#15
|
||||
|
||||
|
Re: ANNOUNCING: navX MXP Robotics Navigation Sensor
Scott,
I too am having difficulty running the UI. If I execute navXMXPUI.bat (edited as specified to point to COM4, which is where the ST VCP is connected), I get an error "Could not find or load main class NAVXMXPUI". I am able to run navXConfig (setup.exe) with no issues which leads me to believe both the PC and navX hardware are configured properly. I'm using Win 7 (64 bit), and have Java 1.7 runtime enabled under User settings (1.8 is also installed, but I have disabled it). I've also installed Processing 2.2.1 (BTW, 2.1 is not listed as a downloadable release) and have merged the UI "processing" directory to the [user]\Documents\Processing location. I can open the Sketch successfully however when I attempt to compile it I get the same library errors as a previous poster reported (no library found for com.kauailabs etc.). When I "Show Sketch Folder", the navXMXPUI folder (and its subfolders) is displayed as one would expect. Where have I gone wrong? I suspect it's something in my Java configuration. Last edited by ayeckley : 21-01-2015 at 20:33. Reason: Update: discovered that the library needs to go under [user]/Documents/Processing, not just [user]/Processing |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|