So there may be a very simple answer, but I have seen the C++ files that make the .deb on the Github link, but I do not know how to compile everything together to create the .deb file from the files on Github. I am looking to experiment with the code, so if anyone can help or point me to some set of instructions, please let me know.
I guess I do not really know the difference. I want to edit the APM and put it on the pi. When you download the APM the site gives you, it gives a .deb file, so I assumed that I needed to create a new file of the same type, but with my edited code files used to make it.
If you have a linux pc around, try to follow the crosscompile instructions in the docs.
They work and crosscompilung is much faster.
If you try to compile on a Rpi2, you will have to install a new version of gcc. It is desccribed in this thead:
On Wheezy I have successfully compiled apm, you do need to upgrade gcc as suggested by @schuermannsebastian. On Jessy, it will compile fine, no gcc upgrade required, but you will need to apply the RT patch yourself and disable FIQ. Wheezy will be easier for now until a proper Jessy image is provided.
In either case, you will need to read up a bit more on Linux compilation, etc, which most answers can be found via google.
I’m sorry but I wasn’t quite sure what some of this meant. I updated gcc but the latter part of the provided thread (discussing the change in the “…tools.mk” file) I was unable to do because I could not find the /mk directory.
The following part is also something that I am not yet familiar with
but you will need to apply the RT patch yourself and disable FIQ.
I actually did do the cross-compile on Linux, sent it to my Pi, and when I try to run the APM with the sudo ArduCopter-quad -A udp:… line, it says ArduCopter-quad is not a found command. I even tried it without the “-quad” since the .elf is named without the “-quad”, and neither command can be found.
Restarting it didn’t help… Just got the same result.
Ok so I tried to build the code directly on the Pi, and then someone gave me instructions on how to use gcc on the Pi. And then part of the instructions weren’t possible for me to do since there was a file missing. I was told to use a different github, which seemed to me like it wouldn’t match up. Then I just decided to build on linux because that was what was suggested. And now it can’t connect to the GCS for various failures. Has anyone else specifically build the code themselves to tell me that it really has been working with any of the updates that may have happened more recently?
The ONLY THING that I can think that may be different: I am unable to navigate to the navio branch of the github until I cd into the ArduCopter folder, then it works, but this is different than the order of operations listed in the instructions.