Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic MegapirateNG code compilation problem (Read 3605 times)
kashif
Newbies
*
Offline


Posts: 2
Joined: Jul 5th, 2014
MegapirateNG code compilation problem
Jul 5th, 2014 at 7:04pm
Print Post  
I am currently using megapirateNg for my HK multiwii pro board...can it compile the megapirateng code....i tried to do it but I was ubnable to do it...plz help me...thanks  Roll Eyes Roll Eyes
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: MegapirateNG code compilation problem
Reply #1 - Jul 5th, 2014 at 7:09pm
Print Post  
I don't know. You can make it work probably but you have to give information about which Arduino Ide it is based on and what changes were made. We do not have time to read the install guide.

Maybe this will help? http://dev.ardupilot.com/wiki/building-ardupilot-apm-with-visual-studio-visual-m...
  
Back to top
IP Logged
 
kashif
Newbies
*
Offline


Posts: 2
Joined: Jul 5th, 2014
Re: MegapirateNG code compilation problem
Reply #2 - Jul 5th, 2014 at 7:51pm
Print Post  
It is based on ArduPilot-Arduino-1.0.3-windows IDE modified versionof arduino for ardupilot.
The changes made are only in one file "pde" file located in lib folder.
The changes made are

  private void createBoardTable()
  {
    this.halBoardsTable = new HashMap();

    this.halBoardsTable.put("none", new APHal(null, "None", null));

    this.halBoardsTable.put("apm1", new APHal("HAL_BOARD_APM1", "ArduPilot Mega 1", "mega2560"));

    this.halBoardsTable.put("apm2", new APHal("HAL_BOARD_APM2", "ArduPilot Mega 2.x", "mega2560"));

    this.halBoardsTable.put("mpng", new APHal("HAL_BOARD_MPNG", "MegaPirateNG", "mega2560"));
  }

apart from apm1 and apm2 they have just added there own mpng type line in class rest all the files are same...thnaks for the reply
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: MegapirateNG code compilation problem
Reply #3 - Jul 5th, 2014 at 8:31pm
Print Post  
You will be able to alter the config so it works with visual micro by the sound of it.

You have not posted any error? Please post
« Last Edit: Jul 5th, 2014 at 8:34pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint