Windows 설치 방법

윈도우 툴체인이 있긴하지만, 공식적으로 지원되는 것이 아니라 사용을 추천하지 않습니다. 펌웨어를 컴파일에 드는 시간이 오래 걸리고 Snapdragon Flight 같은 새로운 보드에 대해서 지원하지 않습니다. 많은 개발자가 컴퓨터 비전과 네비게이션 프로토타입으로 사용하는 표준 ROS 패키지를 사용할 수 없습니다. Windows에서 개발하기 전에, Ubuntu로 듀얼부트되는 환경을 고려해 보세요.

툴체인 설치

There are a number of ways you can set up a Windows development toolchain for PX4.

  • The native toolchain allows you to build for NuttX/Pixhawk and jMAVSim simulator targets.
  • The Windows Bash toolchain allows you to build for NuttX/Pixhawk targets (only).

Native 툴체인

Download and install these on your system:

Windows에서 Bash (NEW!)

Windows users can alternatively install a slightly modified Ubuntu Linux PX4 development environment within Bash on Windows, and use it to build firmware for NuttX/Pixhawk targets. We have provided a script below that makes this easy.

This approach does not currently support simulation because Bash on Windows does not enable Linux UI applications.

The script has been updated to install Fast RTPS from (Linux) binaries.

To use the build script:

  1. Install Bash on Windows.
  2. Download the windows_bash_nuttx.sh script.
  3. Open the bash shell and navigate to the directory containing the script.
  4. Run the script using the command below (acknowledging any prompts as required):
    source windows_bash_nuttx.sh
    
  5. Test the script by building the firmware:
    cd $src/Firmware
    make px4_fmu-v2_default
    
    On successful completion you'll find the firmware here: Firmware/build/px4_fmu-v2/px4_fmu-v2_default.px4
  6. You can flash the custom firmware on Windows using QGroundControl or Mission Planner (it is not yet possible to directly flash the firmware from within the bash shell).

Build script details

The windows_bash_nuttx.sh build script modifies the Ubuntu build instructions to remove Ubuntu-specific and UI-dependent components, including the Qt Creator IDE and the simulators.

In addition, it uses a 64 bit arm-none-eabi compiler since BashOnWindows doesn't run 32 bit ELF programs (and the default compiler from https://launchpad.net/gcc-arm-embedded is 32 bit).

To add this compiler to your environment manually:

  1. Download the compiler:
    wget https://github.com/SolinGuo/arm-none-eabi-bash-on-win10-/raw/master/gcc-arm-none-eabi-5_4-2017q2-20170512-linux.tar.bz2
    
  2. Unpack it using this command line in the Bash On Windows console:
    tar -xvf gcc-arm-none-eabi-5_4-2017q2-20170512-linux.tar.bz2
    
    This will unpack the arm gcc cross-compiler to:
    gcc-arm-none-eabi-5_4-2017q2/bin
    
  3. Add the to the environment (add the line to your bash profile to make the change permanent)
    export PATH=$HOME/gcc-arm-none-eabi-5_4-2017q2/bin:\$PATH
    

Ground Control Software

Download and install the QGroundControl Daily Build.

QGroundControl

Editor / IDE

The development team often use:

Next Steps

Once you have finished setting up the environment, continue to the build instructions.

results matching ""

    No results matching ""