Intel RTF auto flying using dronecore SDK
1. Installation
(1) Install the dependencies(2) Clone the DronecodeSDK repository
(3) Checkout the release/branch
(4) Update the submodules:
(5) Build the (debug) C++ library
make clean #REQUIRED!
make default
sudo make default install # sudo required to install files to system directories!
# First installation only
sudo ldconfig # update linker cache
Reference: https://sdk.dronecode.org/en/contributing/build.html
2. Building the Examples
(1) cd /home/DronecodeSDK
Ex:
cd /home/shomin/Firmware
make posix_sitl_default jmavsim
(5) Build && Run
Reference: https://sdk.dronecode.org/en/examples/, offboard mode, Offboard Control from linux
(2) Create file: qgc.conf and fill in PC IP address
(5) Build && Run (Take out all cables while testing)
Reference: https://github.com/intel-aero/meta-intel-aero/wiki/90-(References)-OS-user-Installation
cd example/takeoff_and_land/
mkdir build && cd build
cmake ..
make
3. Build project in Nsight for simulation
(1) Setting head files and library path
(2) Copy source code of example:takeoff_and_land offboard_velocity to Main.cpp
(3) Revise communication part: connection_url = "udp://:14540";
(4) Setting up a simulator
Ex: jMAVSim (pre-installation is needed: jMAVSim/Gazebo Simulation)
(2) Copy source code of example:
(3) Revise communication part: connection_url = "udp://:14540";
(4) Setting up a simulator
Ex: jMAVSim (pre-installation is needed: jMAVSim/Gazebo Simulation)
cd /home/shomin/Firmware
make posix_sitl_default jmavsim
(5) Build && Run
Reference: https://sdk.dronecode.org/en/examples/, offboard mode, Offboard Control from linux
4. Execute on the Intel RTF
(1) Power on Intel RTF ( Ubuntu 4.4.76-aero-1.2 ) and connect the same Wifi source with PC(2) Create file: qgc.conf and fill in PC IP address
- sudo mkdir /etc/mavlink-router/config.d
- sudo gedit /etc/mavlink-router/config.d/qgc.conf
- sudo systemctl restart mavlink-router
- connection_url = "192.168.8.1"; (drone's ip address)
- connection_result = dc.add_tcp_connection(connection_url,5760);
*For communicating with drone using UART interface
Reference: https://github.com/mavlink/c_uart_interface_example, https://mavlink.io/en/examples/c_uart.html, telemetry pin definition
Reference: https://github.com/intel-aero/meta-intel-aero/wiki/90-(References)-OS-user-Installation
留言
張貼留言