APM Coding and Compile Issues

Hey Everybody I'm completely new at the ArduPilot/APM thing so please forgive my stupidity.  I've downloaded and printed out the entire APM 1.02 source code so i can analyze and fully understand how it works before I just blindly set it in an aircraft and hope it works.  But obviously I'm doing something wrong because I can't get it to compile.  I've uncommented the appropriate GPS and GCS definitions but I still get the cryptic "expected constructor, destructor, or type conversion before the '(' token".  And this error seems to float around to different locations depending on what definitions I'm using.  I've tried the following settings:

 

With and without MTK GPS in standard and 1.6 firmware (the GPS I have)

with and without Standard GCS, and X-plane GCS

with and without and airspeed indicator

my IDE is Arduino 0022 and 0018 on Microsoft XP pro and Linux Ubuntu 10.10 (Both IDE's on Both Platforms)

 

Also, while looking thru the source I noticed that the AP_GPS module is really just a bunch of test routines for the different types.  So am I missing the parsing code?  Do I need to fill in the blanks with code from the ArduPilot project?

 

And the fastloop() looks like it is a majority of preprocessor arguments (#if, ,#elseif #endif) and nothing happening if the arguments are all false.  Am I reading this correctly or did I totally miss the boat?

 

I really love this project, but I haven't coded in a quite a few years (and never for the Arduino) so this is stumping me.  I'm not looking for anyone to simply fix my problem for me (unless it is a simple knuckle head mistake) but to point me in the right direction so I can actually learn and eventually give back to the community..

Thanks in advance..

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Ok Chris, I'm an idiot.  I went back to the begining of the manual and walked thru it one step at a time to see where I screwed up..  And I found it..  I had the board set for the Mega 2560 instead of the 1280....  I knew it had to be something simple I was overlooking...

     

    Thanks a million..

  • 3D Robotics
    If you follow the manual to the letter, you won't have trouble. You probably have not put the code in the right folder.

    You don't need to add any code. Simply removing the "//" in front of the GPS definition is all you need to do to get it to compile.

    The GPS parsing code is all in the libraries.

    You need to use Arduino 22.
This reply was deleted.

Activity