Compile MultiWiiConf-Basic HowTo

This forum is dedicated to all issues and questions related to your individual setups and configurations

Compile MultiWiiConf-Basic HowTo

Postby gompf » Mon Mar 28, 2011 11:16 am

Hi,
maybe easy stuff for most of you but cost me some time on the first run. I´m sure it´s already explained better somewhere else but I haven`t found it in compressed form so I´ll give a brief description here:

1. Altough the Conf code opens in Arduino you need "Processing" to compile it: http://processing.org/
2. You need the controlP5 library: http://www.sojamo.de/libraries/controlP5/
Unzip this to a directory /libraries/controlP5 to the Sketchbook folder, NOT the Sketch folder. Shoud also work to just create the folder and copy the controlP5.jar from Alex´s package. You can check your
Sketchfolder in File->Preferences
3. Check if the library is enlisted in Processing in the tab "Sketch"->"Import Library", Processing needs to be started with admin rights once on W7/64
4. "Export" equals test&compile, "Export Application" will build the executable(s) for the choosen platform(s).

Regards,
gompf
gompf
 
Posts: 8
Joined: Sun Feb 06, 2011 2:50 am

Re: Compile MultiWiiConf-Basic HowTo

Postby sleedo » Thu Apr 28, 2011 1:26 am

Thank you! This helped me get a running config program (with a little fumbling around)
sleedo
 
Posts: 2
Joined: Sat Feb 05, 2011 12:51 pm

Re: Compile MultiWiiConf-Basic HowTo

Postby Hamburger » Thu Apr 28, 2011 1:23 pm

5. with some OpenGL implementations/drivers Export works, but ExportApplication will produce a non working application. Then you may try to build it as fullscreen+stopButton (in the ExportApplication dialog). Works for me.

Hamburger
User avatar
Hamburger
 
Posts: 2400
Joined: Tue Mar 01, 2011 2:14 pm

Re: Compile MultiWiiConf-Basic HowTo

Postby PatrikE » Mon Jun 20, 2011 3:41 pm

Thanks for the guide..

The library had to be in another place to get it to work for me.

..\processing-1.5.1\modes\java\libraries\controlP5

Cheers
/ PatrikE
PatrikE
 
Posts: 1685
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden

Re: Compile MultiWiiConf-Basic HowTo

Postby Anakin » Thu Jun 23, 2011 10:58 am

Hi all,

I'm getting an error when trying to run the MultiWiiConf1_7.exe GUI ..

« could not find the main class. Program will exit! » error from Java Virtual Machine Launcher.

I have seen this issue mentioned in RCGroups additional HOWTO thread but cant seem to find a resolution to this anywhere

I am running WinXP SP2 and have the latest version of Java on my machine. Ariuno IDE, NetBeans and Processing also runs without issues.

Can anyone here offer any advice please?

thx!
Anakin
 
Posts: 4
Joined: Wed Jun 22, 2011 3:52 pm

Re: Compile MultiWiiConf-Basic HowTo

Postby rihardsb » Tue Jul 05, 2011 12:57 pm

Thanks for the post!
rihardsb
 
Posts: 14
Joined: Thu Mar 31, 2011 11:47 am
Location: Ireland

Re: Compile MultiWiiConf-Basic HowTo

Postby paddytfm » Wed Aug 24, 2011 10:30 pm

Thank's for the post, particularly
Gompf for explanations and patrike for the upgrade
So in order to see Yaw Z axis working like other axis in the graph I did this

// if (azGraph) {
// if (scaleSlider.value()<2) g_graph.drawLine(accYAW, -1000, +1000);
// else g_graph.drawLine(accYAW, 200*scaleSlider.value()-1000,200*scaleSlider.value()+500);

if (azGraph) { g_graph.drawLine(accYAW, -1000, +1000);
//else g_graph.drawLine(accYAW, 200*scaleSlider.value()-1000,200*scaleSlider.value()+500);

best autolevel
Paddytfm
paddytfm
 
Posts: 8
Joined: Sun Aug 07, 2011 9:07 pm

Re: Compile MultiWiiConf-Basic HowTo

Postby Rudi48 » Wed Oct 12, 2011 3:48 pm

Because I have not found any good description how to compile the MultiWiiConf program under MAC OS X, I like to describe that for reference.

Please see the web page: http://www.rudiswiki.de/wiki9/QuadrocopterMultiWiiConf

Regards, Rudolf
User avatar
Rudi48
 
Posts: 19
Joined: Mon Sep 19, 2011 10:44 am
Location: Wiesbaden, Germany

Re: Compile MultiWiiConf-Basic HowTo

Postby kalle123 » Wed Oct 12, 2011 3:59 pm

No issues here running PCLinuxOS.

Just installed arduino0022 from the repositories and it works.
kalle123
 
Posts: 99
Joined: Sun Oct 09, 2011 10:07 am

Re: Compile MultiWiiConf-Basic HowTo

Postby gompf-2 » Thu Oct 27, 2011 12:31 am

double posting...
Last edited by gompf-2 on Thu Oct 27, 2011 12:49 am, edited 2 times in total.
gompf-2
 
Posts: 136
Joined: Sun Jun 05, 2011 11:46 am

Re: Compile MultiWiiConf-Basic HowTo

Postby gompf-2 » Thu Oct 27, 2011 12:38 am

Tweak to processing on Win32 for faster comport scan/use with non toshiba based BT-hardware:
http://servicios.ried.cl/arduino/temp/rxtxSerial-2.2_fixed_2009-03-17.rar
Seems to be enough to copy this into the /lib folder of the ready build application.
Path in the processing folder: \processing-1.5.1\modes\java\libraries\serial\library\windows32

More details:http://www.multiwii.com/forum/viewtopic.php?f=8&t=817
gompf-2
 
Posts: 136
Joined: Sun Jun 05, 2011 11:46 am

Re: Compile MultiWiiConf-Basic HowTo

Postby darlofranco » Fri Nov 18, 2011 6:22 pm

Thank you gomf !

This has got me up and running :D

Frank
darlofranco
 
Posts: 13
Joined: Sat Jun 18, 2011 4:16 pm

Re: Compile MultiWiiConf-Basic HowTo

Postby Nicksdesign » Sat Jul 06, 2013 1:00 am

When I installed Processing, I found the advice on where put the controlP5 library confusing. I just couldn't get it to work. (If anyone can be confused, it's me.) With the new version 2.0.1, it was easy to let Processing itself import the library. Just go to Tools/import Library/, select conrolP5 (or type the name in the selection field) and click Install. That's all.

Nick
Nicksdesign
 
Posts: 63
Joined: Sat Jan 26, 2013 6:49 am

Re: Compile MultiWiiConf-Basic HowTo

Postby Lecostarius » Mon Oct 20, 2014 11:37 pm

Hi all,

I am currently writing a Dataflash logging facility for MultiWii, using the Crius AIOP 2.0 built-in dataflash (AT45DB161 from adesto). First basic things are already working fine, including communication with MultiWiiConf - however, I encounter an unexpected difficulty when trying to create a standalone application from processing: I do an export to application, and get no errors, just a message that everything has been compiled and linked fine, and I get an executable - which will open an empty grey window, no MultiWiiConf contents.
When launching the same program from processings GUI, all works fine.

Any ideas how to create standalone app from processing (tried to export into full screen, which yields a full screen grey empty screen :? )

Thanks for all help you can provide!
Lecostarius
 
Posts: 7
Joined: Mon Oct 20, 2014 11:29 pm

Re: Compile MultiWiiConf-Basic HowTo

Postby brewski » Fri Oct 24, 2014 8:30 pm

Lecostarius wrote:Hi all,

I am currently writing a Dataflash logging facility for MultiWii, using the Crius AIOP 2.0 built-in dataflash (AT45DB161 from adesto). First basic things are already working fine, including communication with MultiWiiConf - however, I encounter an unexpected difficulty when trying to create a standalone application from processing: I do an export to application, and get no errors, just a message that everything has been compiled and linked fine, and I get an executable - which will open an empty grey window, no MultiWiiConf contents.
When launching the same program from processings GUI, all works fine.

Any ideas how to create standalone app from processing (tried to export into full screen, which yields a full screen grey empty screen :? )

Thanks for all help you can provide!


I have Crius AIOP V2 as do many others on this forum. Please publish the code to enable onboard logging :D
Can you also explain how to read the logged values & what type of data is logged.
brewski
 
Posts: 438
Joined: Tue Apr 29, 2014 12:04 am
Location: Cleveland Qld Australia

Re: Compile MultiWiiConf-Basic HowTo

Postby Lecostarius » Sun Oct 26, 2014 12:40 pm

Great that there is some interest. I am happy to share what I have. Sadly it is ongoing work, so not finished yet.

Reading the logged values is done with MultiWiiConf - there is a new register tab called "Dataflash", and you just connect your copter after flying (and logging :-)), and hit the button "download logs". That will produce a file, currently fixed-name "dataflash.dat", on your harddisk, which contains the raw logs. I will also write another standalone program that converts the "dataflash.dat" into a "dataflash.xls" so you can import it into Excel. After that, for the time being, you are on your own what you do with it.
When it comes to "what is being logged", I am planning to make this configurable in config.h - so there is a #define LOG_BARO and/or a #define LOG_PID etc. I mainly want to use it myself for PID optimization and playing around with some cruise and altitude control, but I am open to any suggestions about things that would be interesting to log, so please let me know.
Lecostarius
 
Posts: 7
Joined: Mon Oct 20, 2014 11:29 pm

Re: Compile MultiWiiConf-Basic HowTo

Postby brewski » Sun Oct 26, 2014 8:02 pm

OK so you produced a custom MW Config to enable download of logs... very interesting.
I think selectable data for logging should include IMU , Baro, Mag, GPS coordinates, GPS sats, and motor outputs.
I look forward to your posting the code when you think it is ready.
brewski
 
Posts: 438
Joined: Tue Apr 29, 2014 12:04 am
Location: Cleveland Qld Australia


Return to Getting Started - MultiWii config and setup

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest