Questions about IP Address Configuration of AR. Drone in windows PC Control

Source: Internet
Author: User

Thanks to guoming0000 for your blog and related resources.

Http://blog.csdn.net/guoming0000/article/details/7075292

For a friend who is new to ARDrone development, I suggest you take a look. I am new to AR, and now I have studied AR in the lab ......

Let's talk about some questions and experiences about running the SDK.

I tested it on the official website.SDK_1.8There are many bugs that are unreasonable. The source files mentioned in the blog referenced at the beginning of this article can be used. After correct configuration, the AR can be normally manipulated.


Required libraries: (reference from Official Development Documentation)

  • Microsoft Windows SDK (click to download), Windows header file and standard library.
  • SDL Library (click to download) for video image display.
  • Microsoft DirectX SDK (click to download), AR keyboard control, especially the game handle.

1. AboutProject solution. (sln)For file problems, open your_SDK \ Examples \ Win32 \ VCProjects \ ARDrone directly in the official English guide. sln is required for the Visual Studio version. If it is not enabled, you can use the following method.

Use .txt to open ARDrone. sln, change the second line of code to the local # Visual Studio version, save it in double-click to open, Visual will prompt you whether to update, and then you will get a project suitable for the local Visual version.

2. after performing the above steps, you may go back and try to punch in the project. cpp file or. h file, but the system will prompt that the file cannot be opened. This is because the file cannot be found according to the default path. You need to change the default path configuration in the environment, for the configuration method, see the connection blog at the beginning of this article. Then you can open each file.

3. Macro options in the vp_ OS _signal_dep.h file of ARDroneLib, there are the following two macro definitions for selecting Compilation

# Define USE_WINDOWS_CONDITION_VARIABLESUse the windows SDK to synchronize threads, that is, if your system is above Vista.

# DefineUSE_PTHREAD_FOR_WIN32It is applicable to XP or a later version ...... (Unlikely)

Only one macro exists, that is, only one related macro can be compiled. Therefore, comment out the second basic information (WIN7 and Vista.

The above steps, coupled with the connection steps in the beginning of the blog are all correct, can generate an executable file.

4. But for the control end, PC, and AR. You must note the following.

The IP address of AR is 192.168.1.1 by default. In special cases, for example, multiple AR instances share one Wi-Fi network segment (with a low probability), AR instances generate different IP addresses. The win32_custom.h file in the environment involves the IP addresses of AR and PC. If you connect to the laptop, set your IP address 192.168.1.2 (to be connectedWin32_custom.hIn the corresponding IP), open AR (until the four corners of the LED color), connect to ardrone_XXXXX, ping in the console
192.168.1.1if normal pingcommunication is enabled, it indicates that the connection to ARNS is successful, and the generated. EXE file is subsequently delivered, which is controlled according to console prompts and control instructions.

FAQs:

Q: the. exe file is running, but the actual "Connection timeout"

A: The connection speed is slow. If you still cannot connect, ping it. If not, restart the application.

Q: You cannot open any source files. cpp or. h.

A: Make sure that your ARDroneLibDir and Win32ClientDir macros have been set in property manager.

Q: "windows. h: no such file or directory" appears during compilation"

A: Make sure that your Windows SDK is correctly installed,

Q: "Cannot open input file 'dxguid. lib'" appears during compilation '"

A: Make sure that your DirectX SDK is correctly installed.

Q: The system prompts "Error spawning mt.exe" during compilation"

A: Windows SDK installation error. reinstall it.

Q: # include <XXX. h> errors during compilation, resulting in many Program-related errors.

A: The simplest way to correctly associate external dependencies is to <XXX. h> directly add it to the lib folder of VS, but for <XXXX. c>, add it to the source folder of.

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.