[Patch] MultiwiiConf fails to compile with current controlP5

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
fiendie
Posts: 151
Joined: Fri Apr 20, 2012 4:22 pm

Re: [Patch] MultiwiiConf fails to compile with current contr

Post by fiendie »

Hamburger wrote:so we have (been) moved to the newer ControlP5 library. I hope we do not receive too many requests for support on older versions of the GUI.

Do you run a call center? :)
Just document it somewhere and be done with it.
It's an open source project. Try getting support from one of the Linux Kernel devs ;)

User avatar
kos
Posts: 286
Joined: Thu Feb 16, 2012 4:51 am
Location: Fr

Re: [Patch] MultiwiiConf fails to compile with current contr

Post by kos »

the mwi-gui-component / ControlP5 fork used by multiwii can be found here -> https://github.com/treymarc/mwi-gui-com ... ster/build

hdias
Posts: 1
Joined: Fri Jun 29, 2012 11:06 pm

Re: [Patch] MultiwiiConf fails to compile with current contr

Post by hdias »

I had the same problem and solved it with the following code (I hope that this code is right...):

MultiWiiConf_2_0
Processing-1.5.1
controlP5-0.7.5

Code: Select all

//    hideLabel(checkbox1[i].addItem(i + "1",1));hideLabel(checkbox1[i].addItem(i + "2",2));hideLabel(checkbox1[i].addItem(i + "3",3));
//    hideLabel(checkbox1[i].addItem(i + "4",4));hideLabel(checkbox1[i].addItem(i + "5",5));hideLabel(checkbox1[i].addItem(i + "6",6));

    checkbox1[i].addItem(i + "1",1);
    checkbox1[i].addItem(i + "2",2);
    checkbox1[i].addItem(i + "3",3);
    checkbox1[i].addItem(i + "4",4);
    checkbox1[i].addItem(i + "5",5);
    checkbox1[i].addItem(i + "6",6);
    checkbox1[i].hideLabels();

    checkbox2[i] =  controlP5.addCheckBox("cb_"+i,xBox+170,yBox+20+13*i);
    checkbox2[i].setColorActive(color(255));checkbox2[i].setColorBackground(color(120));
    checkbox2[i].setItemsPerRow(6);checkbox2[i].setSpacingColumn(10);
    checkbox2[i].setLabel("");
//    hideLabel(checkbox2[i].addItem(i + "1_",1));hideLabel(checkbox2[i].addItem(i + "2_",2));hideLabel(checkbox2[i].addItem(i + "3_",3));
//    hideLabel(checkbox2[i].addItem(i + "4_",4));hideLabel(checkbox2[i].addItem(i + "5_",5));hideLabel(checkbox2[i].addItem(i + "6_",6));

    checkbox2[i].addItem(i + "1_",1);
    checkbox2[i].addItem(i + "2_",2);
    checkbox2[i].addItem(i + "3_",3);
    checkbox2[i].addItem(i + "4_",4);
    checkbox2[i].addItem(i + "5_",5);
    checkbox2[i].addItem(i + "6_",6);
    checkbox2[i].hideLabels();

Post Reply