Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - KE7JLM

Pages: 1
1
Project Ideas / Re: Laser Tag - adapted?
« on: November 18, 2009, 11:20:52 AM »
By just removing the IR filter in front of the WiiMote's Camera it will be able to "see" green lasers for quite a distance. I tested it myself.

BTW Am with boonjin, don't use IR lasers.

2
Programmers Den / Re: use webcam instead of Wiimote
« on: November 06, 2009, 09:34:32 AM »
Just use multiple wiimotes, it would be cheaper than any camera with high enough res to match the camera on the wiimote.

3
Programmers Den / Re: Shortcuts for calibration, connecting etc...
« on: September 29, 2009, 11:30:18 PM »
For connecting -

Code: [Select]
private void btnCalibrate_Click(object sender, EventArgs e)
        {
            if (sf == null)
            {
                cf = new CalibrationForm();
                cf.Show();

            }
            if (cf.IsDisposed)
            {
                cf = new CalibrationForm();
                cf.Show();
            }
            cursorControl = false;
            calibrationState = 1;
            doCalibration();
        }

      public void doCalibration(){
            if (cf == null)
                return;
            int x = 0;
            int y = 0;
            int size = 25;
            Pen p = new Pen(Color.Blue);
            switch (calibrationState)
            {
                case 1:
                    x = (int)(screenWidth * calibrationMargin);
                    y = (int)(screenHeight * calibrationMargin);
                    cf.showCalibration(x, y, size, p);
                    dstX[calibrationState - 1] = x;
                    dstY[calibrationState - 1] = y;
                    break;
                case 2:
                    x = screenWidth - (int)(screenWidth * calibrationMargin);
                    y = (int)(screenHeight * calibrationMargin);
                    cf.showCalibration(x, y, size, p);
                    dstX[calibrationState - 1] = x;
                    dstY[calibrationState - 1] = y;
                    break;
                case 3:
                    x = (int)(screenWidth * calibrationMargin);
                    y = screenHeight -(int)(screenHeight * calibrationMargin);
                    cf.showCalibration(x, y, size, p);
                    dstX[calibrationState - 1] = x;
                    dstY[calibrationState - 1] = y;
                    break;
                case 4:
                    x = screenWidth - (int)(screenWidth * calibrationMargin);
                    y = screenHeight -(int)(screenHeight * calibrationMargin);
                    cf.showCalibration(x, y, size, p);
                    dstX[calibrationState - 1] = x;
                    dstY[calibrationState - 1] = y;
                    break;
                case 5:
                    //compute warp
                    warper.setDestination(dstX[0], dstY[0], dstX[1], dstY[1], dstX[2], dstY[2], dstX[3], dstY[3]);
                    warper.setSource(srcX[0], srcY[0], srcX[1], srcY[1], srcX[2], srcY[2], srcX[3], srcY[3]);
                    warper.computeWarp();
                    BeginInvoke((MethodInvoker)delegate() { cf.Close();});
                    cf = null;
                    calibrationState = 0;
                    cursorControl = true;
                    BeginInvoke((MethodInvoker)delegate() { cbCursorControl.Checked = cursorControl; });
//                    saveCalibrationData();
                    UpdateTrackingUtilization();
                    break;
                default:
                    break;
            }

        }

I'd use Johnny Lees app, it works great and is open src.

4
Programmers Den / Re: uweschmidt's Wiimote Whiteboard
« on: September 18, 2009, 10:07:10 AM »
Thank you very much, I will get a new dongle that is widcomm compatible.

5
Programmers Den / Re: uweschmidt's Wiimote Whiteboard
« on: September 10, 2009, 10:55:56 AM »
Thanks Uwe for your advice, I got it to compile and run but as always it never that easy...


The first warning-

Code: [Select]
"Sep 10, 2009 8:24:26 AM org.jdesktop.application.SingleFrameApplication initRootPaneContainer

WARNING: couldn't restore sesssion [mainFrame.session.xml]

org.jdesktop.application.LocalStorage$LSException: load failed "mainFrame.session.xml"

at org.jdesktop.application.LocalStorage.load(LocalStorage.java:150)....

Caused by: java.lang.ClassNotFoundException: org.jdesktop.application.SessionStorage$WindowState"

I am guessing this is not very important (Maybe caused by the commented out JAI lines) and has nothing to do with the following error -
Code: [Select]
Sep 10, 2009 8:25:12 AM wiiremotej.WiiDeviceDiscoverer deviceDiscovered

SEVERE: Error discovering device.

java.io.IOException: Can't query remote device

              at com.intel.bluetooth.RemoteDeviceHelper.getFriendlyName(RemoteDeviceHelper.java:404)

              at javax.bluetooth.RemoteDevice.getFriendlyName(RemoteDevice.java:130)

              at wiiremotej.WiiDeviceDiscoverer.deviceDiscovered(WiiDeviceDiscoverer.java:63)

              at com.intel.bluetooth.BluetoothStackBlueSoleil.deviceDiscoveredCallback(BluetoothStackBlueSoleil.java:278)

              at com.intel.bluetooth.BluetoothStackBlueSoleil.runDeviceInquiryImpl(Native Method)

              at com.intel.bluetooth.BluetoothStackBlueSoleil.runDeviceInquiry(BluetoothStackBlueSoleil.java:262)

              at com.intel.bluetooth.DeviceInquiryThread.run(DeviceInquiryThread.java:103)

I get the same in the log window.

Ive search around and found that some people solve this "Can't query remote device" error by changing the .getFriendlyName() method to false... not sure this is good advice and they where also not working with wiimotes. What is your take on it? I understand this would require getting the src code for the wiiremotej api and editing the bluetooth connection method and recompling to a jar file.

I also understand that it could be my bluetooth stack. If this is the problem it would be a easy fix, right?

If it matter I am able to run Smoothboard and it works fine

Any help is greatly appreciated, thank you very much your previous response.


I am using BlueCove version 2.1.0 on bluesoleil

6
Programmers Den / Re: Programming thrust.
« on: September 04, 2009, 10:47:19 AM »
I'm no pro but I all you'll have to do is look for the acceleration in that axis.

More accel. = more "trust"

7
"The Wii Remote contains a 16 KiB EEPROM chip from which a section of 6 kilobytes can be freely read and written by the host."

That is right off the Wiki site under the header "Memory"- http://en.wikipedia.org/wiki/Wii_Remote

As long as you write to the correct address... you should be fine.

8
Programmers Den / uweschmidt's Wiimote Whiteboard
« on: August 31, 2009, 10:23:25 AM »
I'm new to programming and I don't know how to "install" Java Advanced Imaging. Here is the link -

https://jai.dev.java.net/binary-builds.html

I've downloaded all four of them (I'm running windows) and installed the exe and include the JAR  file to my cross path and nothing (tried each individually). This is a problem because in order to compile the src code you need to have JAI "installed". If it means anything i am getting this error -

on this line -
Code: [Select]
throw new IllegalArgumentException(JaiI18N.getString("Generic0"));
the compiler can not find "Jail18N"

How do you install JAI?

Any help is greatly appreciated, sorry if this a noob type of question.

9
KE7JLM
Can you use existing apps with the wiimote? (smoothboard etc).

Otherwise read teh Bluesoleil SDK has some specifica sections on Wiimotes know, we developed them with Bluesoleil.

benpaddlejones :)

Yes, I can use use WhiteBoard and Smoothboard

10
Bluetooth & Connectivity Knowledge Center / Can't query remote device
« on: August 11, 2009, 12:21:20 AM »
Every time i run the code i get this error -

13747 [DeviceInquiryThread-0] ERROR motej.MoteFinder - Can't query remote device
java.io.IOException: Can't query remote device
   at com.intel.bluetooth.RemoteDeviceHelper.getFriendlyName(RemoteDeviceHelper.java:404)
   at javax.bluetooth.RemoteDevice.getFriendlyName(RemoteDevice.java:130)
   at motej.MoteFinder$1.deviceDiscovered(MoteFinder.java:92)
   at com.intel.bluetooth.BluetoothStackBlueSoleil.deviceDiscoveredCallback(BluetoothStackBlueSoleil.java:278)
   at com.intel.bluetooth.BluetoothStackBlueSoleil.runDeviceInquiryImpl(Native Method)
   at com.intel.bluetooth.BluetoothStackBlueSoleil.runDeviceInquiry(BluetoothStackBlueSoleil.java:262)
   at com.intel.bluetooth.DeviceInquiryThread.run(DeviceInquiryThread.java:103)
13917 [DeviceInquiryThread-0] INFO motej.MoteFinder - inquiry error

I am using motej and BlueSoleil 6.4.269.0

I have bluecove 2.1.0 in my crosspath

I have tried using widcom and no luck

Greatly appreciate any help you can offer, ill be glad to provide more info.

Thanks!




11
Programmers Den / Re: Troubles with motej
« on: August 10, 2009, 10:33:02 AM »
Looks like i found the problem. I was unaware that the import statement that was bringing in the demos library was not referring to a jar file but classes with in folders the code was in and because my folder structure had one extra lvl of folders it was not able to find the demo methods.

I changed this - import java.motej.demos.common.SimpleMoteFinder;

to this - import main.java.motej.demos.common.SimpleMoteFinder;

Now i need to solve this problem of connecting, Winstock no supported.....

12
How do you use the Ant build-script?

13
Say Hi! / Novice Programmer with determination
« on: August 05, 2009, 10:13:21 PM »
      Hello, my name is John. I am from Phx. I been java programming for two years now. I plan on taking on a big project using motej. I want to make a first person shooter using the wiimote and it's IR camera.. anyways this is not the forum for project talk.

      I am a student at Carl Hayden High and the President of the Falcon Robotics team. I love programming but I usually need some guidance. I believe you guys can help me. Thank you!

My contribute to the Johnny Lee and BoonJin - http://www.youtube.com/watch?v=0dq3dBYVLao

14
Programmers Den / Troubles with motej
« on: August 05, 2009, 10:56:17 AM »
I've been messing around with motej for a few days but could not get the sample code to compile. The problem is when I try to import -

import motej.demos.

The compiler can not find the demo library.

I have imported the motej-extras-0.9-bin.zip and motej-library-0.9-bin.zip.

Here is the link to the library downloads. http://sourceforge.net/projects/motej/files/

Here where the problem is, when i download the the motej-demos-0.9-src.zip, there are no jar files.

Has anyone had this problem? Where did the jar files go?

BTW: When I try to import anything else it works fine e.g. - import motej.Mote;

Pages: 1