Mission Planner Compilation

Source: Internet
Author: User
Tags apm mavlink

Software Download:

This article uses VS2013 to compile and modify mission Planner, and other versions have not been tried. First download Mission planner source code.

Https://github.com/diydrones/MissionPlanner

At the same time, this article is a translation of the APM official forum article, and the results of the attempt. Also because it is open source project itself is more active, the version is many, there is no guarantee that the compilation will be successful. English Original address:

http://dev.ardupilot.com/wiki/buildin-mission-planner/

Be sure to download the latest mission planner to the C drive before compiling, because the official documentation says that some DLL libraries are not in the project file, it is recommended to install the. msi suffix of the installation board software.

http://ardupilot.com/downloads/?did=82

Click the orange download Download button. This is the March 2016 version, for your reference. Mission Planner has a very complex library containment relationship, and does not recommend conceptual blurring to adapt the code. Here's a list of the basic skills you need:

C # programming skills and related experience (at least C + + related experience)

Experience with Microsoft vs development environment. MP is not an introductory app for learning vs.

An API (Application interface) with Windows that includes knowledge of data flow, processes, threads, and so on.

Relative support for VS, C # Programming-related and Windows API-related technologies may not be available from the DIY drones community. You need to get help and support from other resources.

Build Environment:

The first step installs Visual Studio 2013 and is guaranteed to work correctly in Windows systems.

Download and install Ms Visual Studio 2013

Restart your computer

Run visual Studio from the Start button

Once the installation is complete, try using a simple "Hello world" example before attempting to change mission planner to see if the software you installed is working properly.

Complete the installation of DirectX by downloading and running the DirectX End-User runtime Web Installer.

Get source code from GitHub

Mission Planner Source code is stored on the GitHub website. You can follow the introduction of how to get Ardupilot flight codes before

Https://github.com/diydrones/MissionPlanner

Get Mission Planner Source code in the code base. Open the project, find the Ardupilot.sln in Mission planner with VS Open the project:

Figure 1.1

If you compile directly, the following problems may occur:

Figure 1.2

To modify the next configuration, if it is so smooth, there is no justice ..... Then the steps are as follows:

Project Settings:

Run Visual Studio

Click File >> Open >> Engineering/Solutions

Navigate to the Mission Planner folder and select the Ardupilot.sln file to open.

Visual Studio should open the package containing mission planner and some other related references (such as "3DR Radio", "Updater", etc.) related solutions (solution), which can be seen in the Solution Explorer panel (yellow highlighted area)

Set "solution Configuration" to "Debug" or "Release" (can find related commands under the Tools menu)

Set "solution Platforms" to "X86″

In the Solution Manager panel, right-click the Mission Planner key to select Properties, uncheck "Sign the ClickOnce manifests" (Signed for ClickOnce manifest) in the signing (signature) selector card, and do not tick.

Figure 1.2 Canceling the manifest signature!

Mission Planner has the following project components, which you can see by opening the "Mission Planner" and "Libs" folders in the solution panel.

Missionplanner (main code)

Avifile
BaseClasses
BSE. Windows.Forms
Core
Geoutility
GMap.Net.Core
GMap.Net.WindowsForms
Kmlib
MAVLink
Metadataextractor
Missionplanner.comms
Missionplanner.controls
Missionplanner.utils
Px4uploader
Sharpkml
Zedgraph

Batch compiling Mission Planner project files:

A batch build is found inside the build.

Choose Build >> Batch Build ... (Build >> Batch build), "Select All" (select All), then click "Rebuild" (regenerate). There may be some errors when trying to compile mission planner for the first time, so try a few more times. This is a possibility that the compilation will succeed.

Figure 1.3 Batch Generation

About the resolution of the error:

If some errors persist, try using these methods:

For missing DLLs-related errors:

Solution Panel, on the Missionplanner project, right-click the Select Property, reference Path: In the File Selection window, select the Mission Planner file directory that is already installed, which may be: C:\Program files (x86) \mission Planner or C:\Program files\mission Planner, depending on the installation path of your MP

Click the Add Folder button, and then enter the installed mission planner file directory into the reference directory box.

Click (select) to compile the event. Removes all pre-compiled pre-build and post build options.

Click (select) Compile.

For missing index-related errors, you can view the project name corresponding to each listed error. Then select the properties of the corresponding project and add the installed version of the Mission Planner installation directory as before. This should reduce this type of error. If you encounter a similar "." in the engineering BSE.Windows.Forms. Could not locate the Code analysis tool at ". You can resolve this by unchecking the Code Analysis selection in the BSE.Windows.Forms property options.
Some useful help in resolving compilation errors:
In VS, when you compile or precompile a solution, selecting the menu item [BUILD] [Configuration Manager] will show you which project will be compiled each time.
Choose to compile those items that are not selected: (e.g. 3DRRadio, Updater, WiX)
Select [Build], [Clean solution] and [build], [Rebuild solution].
All projects should be compiled correctly.
When no errors occur in the compilation, you are ready to start browsing and editing the source code.

Figure 1.3 This is the way the compilation succeeds

Presumably compiled mission planner, want to modify the MP frame, or add new features. But the MP framework is quite complex and has a certain development experience for C #. The MP routine below provides a simpleexample simple routine that we can first compile this routine to get started with the MP ground station development.

Figure 1.4 Simpleexample Run

The "simpleexample" scheme is used as a miniature application to illustrate how a C # program connects to a carrier and controls its unlocking and locking. This simple example has fewer dependencies than the complete mission planner, so the compilation is fairly easy to understand.

First, open the solution panel from the File >> open >> project/solution in Visual Studio. Then select Extlibs/simpleexample.sln in the Missionplanner code directory

Select the Build >> Build solution option to ensure that the program is successfully compiled.

After completing the above work, the first step is to check the normal connection to your flight control board, and use the installed mission Planner software to unlock normally, then disconnect the regular mission Planner and click the "Start" button to run the program using debug mode. When the panel "Florm1" pops up, select the correct COM port and baud rate (typically 115200) and click on the "Connect" button. If the connection is successful, click the "Arm/disarm" button to try to unlock your APM dashboard.

Click on the connection, there will be some parameters to print out, is to resolve the Mavlink protocol to the software display, the framework of this routine is relatively simple, if the direct changes in the MP content, not easy to start. This side of the control Panel is the firmware of the APM cruiser that is downloaded, regardless of the board unlock problem, because APM's cruiser's firmware can be unlocked indoors, so after the connection, the console will have data updates.

We can study Mavlink's agreement first, compile the article into a paragraph, follow-up we will be more Mavlink agreement to complete a simple ground station.

For more information, please refer to: http://www.amovauto.com Itsuki Community

QQ Group:526221258

Mission Planner Compilation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.