Px4/pixhawk---High speed become a developer (Windows)

Source: Internet
Author: User

1 High speed become a novice developer Tutorial (translator)---official1.1 Compilation Environment version number control system(1) InstallationMsysgitafter the installation is complete, configure Git.
    • Installation Note
The installation process uses the default installation in addition to the next step.

    
    • Git Chinese garbled
the last line of the Git-completion.bash file in D:\Program files (x86) \git\etc Plus:alias ls= ' ls--show-control-chars--color=auto '
    • You can increase the output format of git by typing the following command in the Git terminal
< Span style= "FONT-FAMILY:SIMSUN; Background-color:inherit "> git config--global color.branch auto git config--global color.diff auto git config --global color.interactive Auto git config--global color.status auto  
 
   
  
  • Configure username and mailboxes (git username and mailboxes)
    "Your Name"    git config--global user.email you@example.com
(2) Installation TortoisegitAfter the installation is complete. The Tortoisegit option is available in the right-click menu on the desktop.

Right-click on the "Git Init ..." button menu. Ability to create a new warehouse and right-click. The menu has changed. Become for example the following:

    1.2 tool chain installation and configuration (only need to install tool chain is enough, source code what can be downloaded to https://github.com/PX4/Firmware. No need to use Git)(1) The tool chain version number for this use is Px4_toolchain_installer_v14_win.exe(2) after installation. The path is D:\px4 (default is C:\px4), and the accompanying PX4 driver is installed (Win8 needs to be configured separately);(3) Download PX4 source code via PX4 toolchain: Start Menu---> Application--->px4 toolchain--->px4 software Download. Or go directly to the github.com site to download, if you need to guide the warehouse address, so you can save this step and next.

(4) The source code of the download includes the path and directory:
    • < Span style= "FONT-FAMILY:SIMSUN; Background-color:inherit ">px4
      • < Span style= "FONT-FAMILY:SIMSUN; Background-color:inherit ">FIRMWARE–PX4 firmware (all modules), including Mavlink
        • NUTTX–NUTTX Real-time operating system (RTOS)
      • < Span style= "FONT-FAMILY:SIMSUN; Background-color:inherit ">libopencm3– Optional: Open source Cortex Mx library for booting (bootloaders)
      • bootloader– Optional: bootloaders, usually do not need to operate, change.
after this download, for example to see. The libopencm3 directory is missing. In the new version number, the libopencm3 has been placed in the bootloader directory.

        you can download libopencm3 to the current folder in Msysgit with the following command. git clone git://github.com/mossmann/libopencm3.git (5) Configuring EclipseJava is installed, note that not Jre,java (JDK) is the Java Program execution Environment, the JRE is the development kit.
  • Note: When the Windows operating system is 64-bit, the Java installation location is in C:\Program Files (x86) \java\jre_xxx. Instead of the usual C:\Program files\java\jre_xxx, the Eclipse.ini file must be found in the Eclipse directory to join the-VM c:\Program files (x86) \java\jre_xxx\ Javaw.exe ". or configure the Java environment variables to be able to.
  • JAVA (JRE not JDK) environment variable configuration Success flag:
  • After installing PX4 toolchain, you have integrated eclipse, and of course we are able to download eclipse separately, just to configure environment variables and toolchain. Open eclipse: Start Menu---> All Programs--->px4 toolchain--->px4 Eclipse. For the first boot, select the workspace and tick the Use this as the default and ....

  • Build the project file.

    File--->new--->makefile Project ....

    Then click Browse ..., go to D:\px4\Firmware, and select Cross GCC. Click Finish.

  • The ability to "make target" in the right panel, select the root directory, to create a new make target (green round button).
  • Each make target description
    • all –builds the autopilot software (depends on archives)
    • Archives–builds the NUTTX OS (compile real-time system Nuttx OS for very long time)
    • Distclean–cleans Everything, including the NUTTX build
    • Clean –cleans only the application (autopilot) part. does not clear archives
    • Pixfmu-v2_default---FMU firmware
    • Px4io-v2_default---IO firmware
    • upload px4fmu-v1_default –uploads to PX4FMU v1.x boards
    • upload px4fmu-v2_default –uploads to PX4FMU v2.x boards
1.3 Compiling and flashing firmwaretwo different ways:Way one, through eclipse. After the fifth step is configured. You can double-click "distclean" and then "Archives". And then the "all". Finally, double-click "upload Px4fmu-v1_default". Upload their compiled files to the PX4FMU v1.x board.

or double-click "upload px4fmu-v2_default" to upload its compiled file to the PX4FMU v2.x board.

Upload to the board on the premise that all kinds of connections have been configured, such as the driver, serial port and so on.

mode two, through the console. Start Menu---> Application--->px4 toolchain--->px4 console.
    CD firmware/
    Distclean # needed after changes on header files, nuttx or a fresh GIT checkout/update
    Archives  # This command is only used when "make Distclean" is used to compile the NUTTX system.
    Make Px4fmu-v2_default #编译固件, version number is FMU-V2
    Upload Px4fmu-v2_default
    Mode three. Use the ground station to brush the firmware, such as Qgroundcontrol (QGC) or mission Plan, to be able to brush the official stable version of the firmware or their own compiled firmware.
   After compiling the firmware with the console of the toolchain:
Note: Since October 6, 2015, the compilation system has changed, the compilation process has changed, please see the article: http://blog.csdn.net/freeape/article/details/49024053

Px4/pixhawk---High speed become a developer (Windows)

Related Article

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.