Page 2 of 3

Re: MwGui - Another Gui

Posted: Sun Jun 17, 2012 6:13 pm
by kataventos
I read the intructions and build,repaired permissions, etc, but still not able to run, so... I think that I´m going to wait for a clic and go :) for MAC
PowerMAC11,2
G5 Quad 2.5GHz
OS 10.5.8
8GB DDR2

Cheers,
H

Re: MwGui - Another Gui

Posted: Sun Jun 17, 2012 6:23 pm
by kos
@macos user :serial port rescan should update on demand now

Re: MwGui - Another Gui

Posted: Sun Jun 17, 2012 11:32 pm
by kos
Pyrofer wrote:Couple of suggestions :) (get used to it, its all I have right now!)
Disable the buttons such as "start, stop" when it's not connected to a serial port as that seems to lock up the app if you press them.
Can you have a default set of PID and checkboxes show on startup rather than the blank page? Would look nicer.
These are simply cosmetic changes so feel free to ignore :)

Thanks again on the speedy development here!


done, i started to add the compas and other instruments Panel

https://github.com/treymarc/mwi-swing/wiki

;)

Re: MwGui - Another Gui

Posted: Mon Jun 18, 2012 12:11 pm
by kos
fiendie wrote:
kos wrote:will not be merge yet , i will change the directory layout to include maven modules for extra step (mac bundle , jnlp , etc .. ) so prepare another pom for that :)

No rush ;)
There actually is a Maven plugin, too.
I will test that.


merged -> https://github.com/treymarc/mwi-swing/t ... mac-bundle

;)

Re: MwGui - Another Gui

Posted: Mon Jun 18, 2012 12:18 pm
by fiendie


I'll wrap that into maven so the bundle will be created in the package phase and just copied to the target directory ;)
The AntRun plugin is playing hard to get but I'll figure it out =)

Re: MwGui - Another Gui

Posted: Mon Jun 18, 2012 11:27 pm
by kos
kos wrote:Image


new heading display ... suggestions ?

Re: MwGui - Another Gui

Posted: Mon Jun 18, 2012 11:32 pm
by copterrichie
Dude!!! Wow and another Wow!

Re: MwGui - Another Gui

Posted: Tue Jun 19, 2012 10:59 am
by fiendie
@kos: I adjusted the Mac OS X bundle generation to the new directory structure. The code is up on my GitHub.

Anyone who wants to build the code on a Mac has to add the mac profile on the command line now:

Code: Select all

mvn install -P mac


The bundle will be in mac-bundle/target

A working app bundle of the current snapshot can be downloaded here:
http://flexo.fiendie.net/MultiWiiConf.dmg

Re: MwGui - Another Gui

Posted: Tue Jun 19, 2012 2:44 pm
by kataventos
Hi,

is this universal? it can not run on my architecture.

I´m very confuse already! :? please post a how to from the beginning (detailed instructions) for confused guys.

Cheers,
H

Re: MwGui - Another Gui

Posted: Tue Jun 19, 2012 3:25 pm
by LenzGr
kos wrote:new heading display ... suggestions ?

Looks nice! Not sure how complicated that would be, but I'd suggest to replace the plane image with an arrow or a copter image (maybe a different one depending on the configuration?)

Still waiting for the new serial protocol to hit the trunk, so I can toy around with the new GUI :)

Re: MwGui - Another Gui

Posted: Tue Jun 19, 2012 4:19 pm
by fiendie
kataventos wrote:Hi,

is this universal? it can not run on my architecture.

I´m very confuse already! :? please post a how to from the beginning (detailed instructions) for confused guys.

Cheers,
H


Hi kataventos,

that version was built with target level 1.6+. I uploaded another version built for 1.5. under the same link. Could you test that and let me know if it works on 32-bit Mac OS?

Cheers
Andreas

Re: MwGui - Another Gui

Posted: Tue Jun 19, 2012 6:27 pm
by kos
LenzGr wrote:Not sure how complicated that would be, but I'd suggest to replace the plane image with an arrow or a copter image (maybe a different one depending on the configuration?)

as multiwii does support ariplane , best practice is to send me any images .. i will add them ;)

Re: MwGui - Another Gui

Posted: Tue Jun 19, 2012 6:55 pm
by kos
fiendie wrote:@kos: I adjusted the Mac OS X bundle generation to the new directory structure. The code is up on my GitHub.


merged

Re: MwGui - Another Gui

Posted: Tue Jun 19, 2012 10:09 pm
by LenzGr
kos wrote:as multiwii does support ariplane , best practice is to send me any images .. i will add them ;)

Good point. What is the preferred file format for these images? SVG?

Re: MwGui - Another Gui

Posted: Tue Jun 19, 2012 10:44 pm
by kataventos
OK, so... Can some one post a step by step for MAC?
I´m getting very nervous and it´s rare thing... :)

Cheers,
H

Re: MwGui - Another Gui

Posted: Tue Jun 19, 2012 10:51 pm
by kos
do not have a MAC , can not help

simple step is :

1 - download multiwiiConf , unzip
2 - download/compile mwgui-jar-withblabla.jar in the <Macos>/lib folder
3 - download/compile the mwgui.sh script in <Macos> folder

open Terminal , cd <Macos>

4 - chmod 755 mwgui.sh (set right execution for your user)
5 - ./mwgui.sh

tada , should work ..

it is a mimic of the multiwiiconf setup , nothing more

LenzGr wrote:
kos wrote:as multiwii does support ariplane , best practice is to send me any images .. i will add them ;)

Good point. What is the preferred file format for these images? SVG?


gimp xcf , png + alpha , multilayer is ok

you can anticipate the need for images to construct some other nice servo/motor uav panel , be creative ;)

you can send me a pm with download link , but github is better -> https://github.com/treymarc/mwi-swing/issues?state=open

sample : https://github.com/treymarc/mwi-swing/t ... /resources


thanks for your help !

Re: MwGui - Another Gui

Posted: Tue Jun 19, 2012 11:05 pm
by fiendie
kataventos wrote:OK, so... Can some one post a step by step for MAC?
I´m getting very nervous and it´s rare thing... :)

Cheers,
H

No need to get nervous ;)
It's a very early developer build so have some patience.
The steps in the Readme up on GitHub are very comprehensive and should get you through the build process.
It would be easier if you told us where exactly your problems lie.

Cheers
Andreas

Re: MwGui - Another Gui

Posted: Wed Jun 20, 2012 1:00 am
by kataventos
Do I need to add the MAVEN_OPTS environment variable to specify JVM properties?

H

Edit: brain stopping here :geek:
Edit 1.0: dead brain (only capable to fly Multiwii drones)

Re: MwGui - Another Gui

Posted: Wed Jun 20, 2012 9:28 am
by msev
So this gui works on Windows too right? I don't see instructions in the read me how to.set it up in Windows.

Re: MwGui - Another Gui

Posted: Wed Jun 20, 2012 11:37 am
by fiendie
msev wrote:So this gui works on Windows too right? I don't see instructions in the read me how to.set it up in Windows.

The steps are the same. Instead of executing the shell script you just use the batch file in Windows.
You have to have Apache Maven installed and add it to your PATH: http://www.mkyong.com/maven/how-to-install-maven-in-windows/

First, clone the repository with the Windows GitHub app.
Then install the serial lib to your local maven repository from the Command Prompt.

Code: Select all

mvn install:install-file -Dfile=C:\path\to\gnu\serial\1.0\serial-1.0.jar -DgroupId=gnu -DartifactId=serial -Dversion=1.0 -Dpackaging=jar


After that run

Code: Select all

mvn clean install
from the project root directory (the default is C:\Users\foo\Documents\GitHub\mwi-swing).

Hope that helps.


Cheers
Andreas

Re: MwGui - Another Gui

Posted: Fri Jun 22, 2012 1:55 am
by kos

Re: MwGui - Another Gui

Posted: Fri Jun 22, 2012 8:33 am
by EOSBandi
feel free....

Re: MwGui - Another Gui

Posted: Fri Jun 22, 2012 9:16 am
by Pyrofer
K-os, just an idea for motor power...

On the quads in the GUI I made I used a circle that slowly filled as motor power increased. I also changed colour with power.
Another option was a pie chart type circle that "pac-man"d more open/closed to show power.

More interesting than the bars I think. Just an idea though!

Re: MwGui - Another Gui

Posted: Fri Jun 22, 2012 10:52 am
by EOSBandi
Pyrofer wrote:K-os, just an idea for motor power...

On the quads in the GUI I made I used a circle that slowly filled as motor power increased. I also changed colour with power.
Another option was a pie chart type circle that "pac-man"d more open/closed to show power.

More interesting than the bars I think. Just an idea though!


It's up to Kos, but during prototyping the WinGUI I tried the pie chart approach, and it does not work well, the bar graph fits better to power level visually than a pie.

Re: MwGui - Another Gui

Posted: Fri Jun 22, 2012 11:09 am
by Pyrofer
Really? I guess it's all personal preference.
Maybe have some options in the GUI for what you prefer.

I quite like the growing circle approach I have now and think it looks nice. Whatever Kos does I am sure it will be great.
I find the colour change from red to green makes it visually easier to tell quickly what the power level is too.

Re: MwGui - Another Gui

Posted: Fri Jun 22, 2012 11:34 am
by urkadurka
Java, Windows, Bars, Pies all are items thats do not matter on aircraft. Each one is a personal opinion not a technical solution so every one will use the preferred solution

So, I using windows based pc the I using today and I'm using tomorrow the EOSBandi solution, I hope that EosBandi will continue to maintain it's solution.

So, good luck to everyone that would experience new ways on this wonderful free project :D

Re: MwGui - Another Gui

Posted: Fri Jun 22, 2012 12:08 pm
by Pyrofer
" I hope that EosBandi will continue to maintain it's solution."

I don't think there was any suggestion that he stop!
This is just an alternative and I am only suggesting ideas, no need to panic :p

Re: MwGui - Another Gui

Posted: Sun Jun 24, 2012 10:14 pm
by kos

Re: MwGui - Another Gui

Posted: Tue Jun 26, 2012 11:39 pm
by kataventos
Hi,
need some help here! today I try to use the older gui and did not work... I have the ports in use... I think I have messed up trying to put your gui working on my mac... any ideas?

Cheers,
H

Re: MwGui - Another Gui

Posted: Tue Jun 26, 2012 11:45 pm
by kos
first

Code: Select all

ps aux | grep java
kill -9

or

Code: Select all

 reboot


remove everything and unzip the original gui

Code: Select all

http://code.google.com/p/multiwii/downloads/list

Re: MwGui - Another Gui

Posted: Wed Jun 27, 2012 12:42 am
by kataventos
:) Thanks Kos, it is working now! I would like to put this one working but... no can do.

Re: MwGui - Another Gui

Posted: Wed Jun 27, 2012 1:13 am
by kos
fiendie is working on the mac packaging ;)

gui is 50% ready

Image

Re: MwGui - Another Gui

Posted: Wed Jun 27, 2012 1:44 am
by kataventos
I´m waiting for that!

Cheers,
H

Re: MwGui - Another Gui

Posted: Wed Jun 27, 2012 11:30 am
by Pyrofer
Can you update the .jar in build,as that's 5 days old and I would like to see the latest one.

Re: MwGui - Another Gui

Posted: Wed Jun 27, 2012 6:04 pm
by kos
Pyrofer wrote:Can you update the .jar in build,as that's 5 days old and I would like to see the latest one.

you can find the latest dev build download link

thanks to fiendie ;)

Re: MwGui - Another Gui

Posted: Wed Jun 27, 2012 9:50 pm
by Liftoff
What are the issues or difficulties that might come up while trying to add firmware downloading support to this UI?
If it is feasible, that might be something that I can look into. I know Java very well.

Is this just too board specific to even try?

Re: MwGui - Another Gui

Posted: Wed Jun 27, 2012 11:07 pm
by kos
Liftoff wrote:What are the issues or difficulties that might come up while trying to add firmware downloading support to this UI?


none
this is on the task list -> https://github.com/treymarc/mwi-swing/issues/8

this issue is not assigned to the first release .. and i am focusing on the first release so your help is very welcomed :)

- add a button in the menu
- select the firmware (check for update on google sources , or checkout the latest dev version)
- compile & upload

best pratice is to use the avrdude and gcc from the orginial arduino IDE , so the uploaded code is 100% arduino like

side note : we have no clean packaging yet and this is required here

Liftoff wrote:I know Java very well.


Image

here is the red pill : https://github.com/arduino/Arduino/blob ... oader.java

8-)

Re: MwGui - Another Gui

Posted: Thu Jun 28, 2012 6:24 pm
by Liftoff
kos wrote: your help is very welcomed


Thanks for the warm welcoming. A couple of observations and points of view:

  • I am using Cortex M3 Freeflight Board, not AVR, so the download procedure and the compile is definitely different.
  • I was hoping to have a pure java solution so it would run on Linux, which is where I live these days. Chain loading another native executable is not what I had in mind.
  • I don't think compiling the target source in this GUI is the way to go. In my case I am using Timecop's Free Flight forked mwii source initially anyway. I would sooner invest in supporting that via a server side resource, like what Maple is doing. There are too many loose ends and too many dependencies to make building on the field computer bullet proof. Making an IDE is probably harder than making a cloud compile service, or a couple of them since we have 8 bit and 32 bit targets in play.

Re: MwGui - Another Gui

Posted: Thu Jun 28, 2012 7:04 pm
by kos
kos wrote:best pratice is to use the avrdude and gcc from the orginial arduino IDE , so the uploaded code is 100% arduino like


for arm : best pratice is to use openocd and gcc

u could check the link in : http://www.rcgroups.com/forums/member.php?u=342216

Re: MwGui - Another Gui

Posted: Thu Jun 28, 2012 10:09 pm
by Liftoff
for arm : best pratice is to use openocd and gcc


I used to contribute to openocd, but got tired of programming on my hands and knees. (Rewrote major portions of it in Groovy, Java and C++.)

Fortunately with the STM32 (Cortex M3) they've got some kind of quasi-permanent monitor routine in there that can be used with a simple serial download with intermediate ACK, of the main firmware in the form of a hex file.

I have the C source to this download tool for linux, and now I have the Java gnu.io serial stuff installed, so most barriers are falling away. Will check to see if there are any legal barriers from ST.

Re: MwGui - Another Gui

Posted: Sat Jun 30, 2012 8:01 am
by Liftoff
I would suggest that we request our own highest level TOPIC, that is at the highest level of this forum. This thing is going to have legs, so there is no need to hide it deep inside this forum engine.

BTW, is anyone else finding the forum very slow, and does it seem to hog your browser's time somehow?

Re: MwGui - Another Gui

Posted: Sat Jun 30, 2012 11:44 pm
by kos
you should now have right to create/add/modifies issue in the jira

Re: MwGui - Another Gui

Posted: Mon Jul 02, 2012 5:53 am
by jy0933
can i get a quick tutorial for installing it on ubuntu?
i'm not so familiar with linux yet.. but it is the only netbook I have that is easy to bring outside for tuning

thanks

Re: MwGui - Another Gui

Posted: Mon Jul 02, 2012 1:06 pm
by kos
soon 8-)

Re: MwGui - Another Gui

Posted: Mon Jul 02, 2012 6:33 pm
by kos
current status ;
- code clean up & checkstyle in progress
- waiting for the jira open source approval

what would be , in your opinion, the best collaborative tools for this project ?

Re: MwGui - Another Gui

Posted: Mon Jul 02, 2012 9:57 pm
by Liftoff
kos wrote:current status ;
- code clean up & checkstyle in progress
- waiting for the jira open source approval

what would be , in your opinion, the best collaborative tools for this project ?


It is a matter of opinion, like asking what is the best color. In my opinion, this forum is miserably difficult to use, relative to a mailing list which lets me interact with it using my mail client.
However, the mail list record does not organize that well into thread topics, but google helps with that.

I just find this forum extremely slow, it is virtually painful, mostly due to the poor speed. It needs to be 10 times faster. But even then, I don't have to log in to get an email, here I do.

Version control: I enjoy using bzr. It has an extremely nice gui, and runs well on all interesting platforms. It is the "best" version control system I have used to date (like teal is my "best" color).
It is a distributed version control system, so it is nice to have local commits, separate branches. It is simpler than git, with probably better cross platform support since windows is not strong for git.

bzr lets you offer read only repo support just using http to the outside world. So a limited audience or a read only audience would not need a site like launchpad.net. You simply put the repo under a docroot somewhere and that is instant read only access.

launchpad.net is pretty decent, but I would say most of its value is its predominate support and use of bzr (bazaar). A project there lets everyone be a rock star with their own branches.
There are code reviews and bug reports, and mailing list support also. And it is not google, who now admits to doing data mining on everything it can get its hands on.

I don't know Maven well enough yet to formulate an opinion, but I think the learning curve is more difficult than advertised. So it was not fantastic experience.

Re: MwGui - Another Gui

Posted: Mon Jul 02, 2012 10:29 pm
by fiendie
Liftoff wrote:It is a matter of opinion, like asking what is the best color. In my opinion, this forum is miserably difficult to use, relative to a mailing list which lets me interact with it using my mail client.
However, the mail list record does not organize that well into thread topics, but google helps with that.

I just find this forum extremely slow, it is virtually painful, mostly due to the poor speed. It needs to be 10 times faster. But even then, I don't have to log in to get an email, here I do.

Version control: I enjoy using bzr. It has an extremely nice gui, and runs well on all interesting platforms. It is the "best" version control system I have used to date (like teal is my "best" color).
It is a distributed version control system, so it is nice to have local commits, separate branches. It is simpler than git, with probably better cross platform support since windows is not strong for git.

bzr lets you offer read only repo support just using http to the outside world. So a limited audience or a read only audience would not need a site like launchpad.net. You simply put the repo under a docroot somewhere and that is instant read only access.

launchpad.net is pretty decent, but I would say most of its value is its predominate support and use of bzr (bazaar). A project there lets everyone be a rock star with their own branches.
There are code reviews and bug reports, and mailing list support also. And it is not google, who now admits to doing data mining on everything it can get its hands on.

I don't know Maven well enough yet to formulate an opinion, but I think the learning curve is more difficult than advertised. So it was not fantastic experience.

I think we should stick with what we have already.
JIRA works perfeclty for this kind of project.
Git and Github is a tried and tested combination and it has worked great so far. Why change that? It also has no affiliation with Google. I see no advantage of launchpad over GitHub.
While Maven may be a bit much to digest at first there is really no better way to manage dependencies and lifecycles in a Java project.
I say we stay with what we have.

Re: MwGui - Another Gui

Posted: Mon Jul 02, 2012 10:52 pm
by kos
launchpad seem to have a better issue managing system than github ?

jira is big (i will have to put it on a dedicated vhost for proper hosting) and we do not have the open source license yet .. to me it is complementary to git-hub .
we can create a mailing list based on the jira-mwgui group , but i tend to be more receptive to commit and todo lists .

the main concern is sharing code and knowing what other are doing so there is no overlap or wasted work


edit : Congratulations, your Open Source project has been approved for Open Source Licenses!

Re: MwGui - Another Gui

Posted: Tue Jul 10, 2012 12:22 am
by kos
thanks to Liftoff the gui is now much smoother , it work with the 2.1 release candidate , tricopter an bicopter are now supported + some other minor improvements ...

Re: MwGui - Another Gui

Posted: Sat Jul 21, 2012 9:43 pm
by treym
thanks to fiendie , the MacBundle is now ready, alterscape joined the effort.

the MwGui - Another Gui is now renamed multiwii-gui-swing to match the multiwii naming pattern .

you can find the new repo url on the community page https://github.com/multiwii.