# erlebrain2_px4 **Repository Path**: mocibb/erlebrain2_px4 ## Basic Information - **Project Name**: erlebrain2_px4 - **Description**: px4 frameware for erlebrain2 - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-07-15 - **Last Updated**: 2024-10-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## PX4 Pro Port for Erle-Brain2 ## This repository holds the [PX4 Pro](http://px4.io) port for [Erle-Brain2](http://erlerobotics.com/blog/home-creative/). ### Use ### 1. because Erle-Brain2 is ARM archicture, to build px4 for it need download cross-compiler git clone https://github.com/pixhawk/rpi_toolchain.git cd rpi_toolchain ./install_cross.sh 2. make firmware make posix-erlebrain2-release 3. upload firmware though ssh export AUTOPILOT_HOST=[ip] export AUTOPILOT_USER=erle make posix-erlebrain2-release upload 4. before PX4 got run, it need create working directory. mkdir -p /home/erle/px4/eeprom mkdir -p /home/erle/px4/fs 5. run there are two startup scripts in posix-configs/rpi2 folder. erlebrain2.config for connect with UDP, it usually for test, and erlebrain2-link.config for connect with telemetry. sudo ./mainapp erlebrain2.config 6. setup startup service echo "#!/usr/bin/bash" > ~/px4.sh echo "sudo ./mainapp -d erlebrain2-link.config" >> ~/px4.sh make sure use the "-d" to startup px4 in deamon mode. and setup service to start px4.sh script. It better to remove default apm.service when you do real flight. Enjoy!