Compiling APMrover 2.16a

Hey Folks,

Firstly, this my first post in a forum I've had great benefit from over my undergrad, and on many personal projects. I believe the Ardupilot series is great example of community, and I am very grateful to those who take the time (in particular to those in the source code's author list). I am sure there are a lot of quiet observers out there who have benefited just as much. Maybe it's time to come in from the fringes a little...

I fly am MQ9 with APM2 installed, and have no problems compiling from source. An aerospace association I work with is holding a UGV day for local high-schools, so I set about building a Rover (don't want a rogue plane flying into the Town Hall...). Compiling the ArduRover code from the git repo has proven a little more challenging (or, I'm just not doing it right!).

I am using Arduino 1.0.1 on Ubuntu 11.10. The config.mk file is correct (BOARD=mega2560). The stack trace is more cryptic than I'm used to when compiling APMrover2.pde:

APMrover2:88: error: expected unqualified-id before ‘)’ token
APMrover2.cpp: In function ‘bool verify_nav_wp()’:
commands_logic:300: error: expected primary-expression before ‘)’ token
APMrover2.cpp: At global scope:
navigation:128: error: expected unqualified-id before ‘)’ token
APMrover2.cpp: In function ‘void init_ardupilot()’:
system:234: error: expected primary-expression before ‘;’ token
Experimental:  JNI_OnLoad called.

(the error stack from 'make' is much longer, but has the same initial state)

I suspect it is a #define clashing with a class call - but I really have no idea where to start this debug. Google has been a friend, but I'm not a computer scientist.

Any pointers are much appreciated,

Cheers!

Jon

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

Join diydrones

Email me when people reply –

Replies

  • Quick update:

    V2.20a compiles without any issues on Arduino 1.0.1.

    A note for anyone Googling the hex location from Make, it is in /tmp/APMrover2.build/APMrover2.hex.

    The system runs well, even getting air-time over a path in the route, and correcting quickly on landing. Probably adjust the boost speeds back to 1, and 2-3m/s in 'cruise' for the prac.

This reply was deleted.

Activity