Running the APMsubmarine code on Erle Brain

Advertisements

Week 2 Report – 3rd to 9th June

Received the Erle Brain from my mentors. It is a Linux-based autopilot that consists of a BeagleBone Black and a PixHawk Fire cape put together. Thanks to my mentors for the same 🙂

Got APM Planner running on my Arch Linux system. Instructions for the same can be found in my previous post.

The main ardupilot repository, ie https://github.com/diydrones/ardupilot, has undergone changes and the vehicle code is now in the form of .cpp files, instead of the earlier .pde format, and each vehicle now has its own header file.

Support for building from .pde files might be removed from the build system too, and hence it shall be my goal for the next week to incorporate the changes to the existing work.

I also had some issues SSHing into the Erle Brain. Hope to get it sorted out…

Installing APM Planner on Arch Linux

APM Planner is available for Ubuntu as a .deb file and can be downloaded here.

However, if you are using another linux distro like Arch Linux, you will have to build from source. The following steps will help you to achieve the same –

  • Install the dependencies –

sudo pacman -S git qt5-base qt5-serialport qt5-script qt5-webkit qt5-svg libsndfile sdl sdl2

tar xvjf flite-2.0.0-release.tar.bz2
cd flite-2.0.0-release/
./configure
make
sudo make install

  • Now, to build APM Planner from source –

git clone https://github.com/diydrones/apm_planner
cd apm_planner/
qmake qgroundcontrol.pro
make
sudo make install

You can now run APM Planner by typing apm_planner in a terminal.

Week 1 Report – 27th May to 2nd June

Completed the introductory video this week. You can find it here.

I have started working on the APMSubmarine vehicle part. Most of the .pde files need to be modified for the underwater vehicle and I’m working towards the same. I’m starting with the common ones such as log, sensors etc. Will push changes in the next couple of days…