CAJ Innovations Forums
https://www.cajinnovations.com.au/forum/YaBB.pl
MyECU >> Developments and wishs lists >> New GUI feedback
https://www.cajinnovations.com.au/forum/YaBB.pl?num=1243307073

Message started by _Cliff_ on 05/26/09 at 13:04:33

Title: New GUI feedback
Post by _Cliff_ on 05/26/09 at 13:04:33
I'm looking at replacing the current ECUController/Optimiser with a new bit of software that will hopefully work across many platforms.

I have written a quick and dirty program in java and swing to allow some map editting.
Currently it only does injector duration and spark advance.

It allows you to left button drag over the grid to select portions of the map, then right click to perform an operation.

What I'm interested on at this time is what you were able to run it on or not ( PDAs etc), and whether the GUI is usable at all. Is it workable on a PDA?

you should be able to download it from here http://cajinnovations.com/MapEditor0.jar

copy it to a folder and from the command line type

java -jar MapEditor0.jar

I don't want to here about features it should have at this stage.

Title: Re: New GUI feedback
Post by raz on 05/26/09 at 16:46:36
Quick try on Ubuntu Linux, it fails when I browse into the directory with maps (it contains about 145 files)

$ chmod +x MapEditor0.jar
$ ./MapEditor0.jar
Button1
Exception in thread "Basic L&F File Loading Thread" java.lang.NullPointerException
     at MapEditor.MainFrame$5.accept(MainFrame.java:534)
     at javax.swing.JFileChooser.accept(JFileChooser.java:1594)
     at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryModel.java:250)
     at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:232)

Title: Re: New GUI feedback
Post by _Cliff_ on 05/26/09 at 17:15:57
Was that after you selected the file or were you still in the filechooser?
What happens in a simpler directory?

Title: Re: New GUI feedback
Post by Luhbo on 05/26/09 at 20:11:40
Under XP SP3 it doesn't crash, but does it work? After downloading I had a .zip file, renamed that to .jar and in a new terminal I entered the given command line. A new window poped up with a map containing cell names. The terminal shows "mouse pressed" , "mouse released" or so. Load map works in so far as the map is obviously read (terminal window) but there's no change to the map in the editor window, still only cell indicators (0,0; 3,5, and so on).

The PC was not connected to the MyEcu.

Hubert

Title: Re: New GUI feedback
Post by Luhbo on 05/26/09 at 20:22:03
No success at work under XP SP2, it crashes. Java Version 1.4.2_10

-------------------
Exception in thread "main" java.lang.UnsupportedClassVersionError: MapEditor/Mai
nFrame (Unsupported major.minor version 49.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
-------------------------------

Hubert

Title: Re: New GUI feedback
Post by Luhbo on 05/26/09 at 20:40:17
-------------
Error:
Invalid jad-file (Java Application Descriptor)
--------------

intent Java MIDlet Manager
2003 Tao Group
Runtime MIDP 2.0: v10.1.2.57(Build 20040705)

under PocketPC 2003

Title: Re: New GUI feedback
Post by raz on 05/27/09 at 03:43:28

_Cliff_ wrote on 05/26/09 at 17:15:57:
Was that after you selected the file or were you still in the filechooser?
What happens in a simpler directory?

I could browse through folders until I chose this largish directory with my maps in, then it failed. I now noticed it does survive, it just refuses to enter that directory.

I now tried copying one map to a less populated folder and it works fine. Tried selecting rectangles and changing values. Saved file in same folder, ok. Tried saving in that bigger folder, similar exception.

Button2
You chose to open this file: 090517_changed.ecu
Button2
Exception in thread "Basic L&F File Loading Thread" java.lang.NullPointerException
     at MapEditor.MainFrame$6.accept(MainFrame.java:618)
     at javax.swing.JFileChooser.accept(JFileChooser.java:1594)
     at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryModel.java:250)
     at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:232)


Checked the saved file, it reflected the fuel changes but no SpkAdv changes.

Title: Re: New GUI feedback
Post by raz on 05/27/09 at 03:48:04
FWIW
The program window size is 752x300 on my Ubuntu. That wouldn't fit the PDA I have somewhere (it's 640x480 I think) but maybe it depends on fonts or something? Also, the button text is wider than the buttons, may be font problem too.

The 'save file' dialog says 'open file' but we're used to that  :)

Title: Re: New GUI feedback
Post by raz on 05/27/09 at 04:06:26
It seems I was using this:
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu10)
OpenJDK Client VM (build 14.0-b08, mixed mode, sharing)


Now tried this Sun version instead:
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)


Large directory problems still there.
Button text now fits buttons.
Window size was now 740x300.
SpkAdv still not making it to output file.

I also noticed it saves the file with CR line endings instead of CRLF. If I recall correctly, ECUControl won't care.

Title: Re: New GUI feedback
Post by _Cliff_ on 05/27/09 at 05:54:09
So much  for Java's write once run every where. Rather disappointing results.
I'm not too worried about bugs at this stage just portability and look and feel.

Title: Re: New GUI feedback
Post by _Cliff_ on 07/15/09 at 14:50:05
Ok lets have another try.
This should allow most map editting.

You can click on the axis labels to move break points ( This version doesn't know about TPS yet and it will not do the map value interpolation )
You can click and drag in the map to select cells and when you pause for a few seconds it will pop up a menu allowing you to adjust the map. Selecting a single cell allows an edit of it.

It was written for JDK5 so you'll need something more recent than java 1.4.

For pocket PC I'm using the freeMysaifu JVM. Its a bit slow though. I looked at doing a MIDlet but that environment is a bit too limiting.

You should be able to download it from here http://cajinnovations.com/ECUController.jar

Title: Re: New GUI feedback
Post by raz on 07/15/09 at 19:18:55
Looks promising. I did not get that pop up for multiple cells until I realised you need to pause with mouse button still pressed.

I encountered no problems at all loading and editing. Haven't tried using it for real though.

Title: Re: New GUI feedback
Post by Luhbo on 07/16/09 at 05:40:48
Yes, looks good (after renaming it to .jar). The map window is bit tiny, nevertheless. No option for enlarging it?
Not checked with engine connected (how to connect it? No config option for Coms yet?)

Windows XP SP3
Pocket PC yet to be tested

Hubert

Title: Re: New GUI feedback
Post by Frosty on 07/27/09 at 13:52:34
Hi Cliff, tried it on the Mac.  It runs up fine but it's in a very small windows that can't be resized so you can't see any of the controls or displays.


CAJ Innovations Forums » Powered by YaBB 2.4!
YaBB © 2000-2009. All Rights Reserved.