I am still having problems compiling the ArduRover code, can someone please help

Views: 609

Reply to This

Replies to This Discussion

Can you show us the Arduino log?

Hold Shift down when you compile... and paste that here, or attach text file.

Thanks Eraser attached the text file,

 

My Arduino is located on C:\arduino-0022

The Ardurover code is located on C:\arduino-0022\libraries\Rover

 I extracted the entire arktools-ardupilotone-1.0.0-apo-49-g4edeab3.zip to C:\arduino-0022\libraries\Rover

and pointed my preferences to C:\arduino-0022\libraries\Rover

Attachments:

A couple of days now and it seems nobody can help?

Are you using relax patch v22?

I am traveling still, hard to look at things over cell phone.

You can't use the normal arduino 0.22, you need the "arduino 0.22 relaxpatch" version. Unfortunately that version is no longer available in the downloads, I've opened an issue for this : http://code.google.com/p/ardupilot-mega/issues/detail?id=496

It's still possible to find it here (in the history) : http://wiki.ardupilot-mega.googlecode.com/git-history/2f5085e61fee3...

It then compiles without any error or warning, hope it helps.

Delete all of your libraries and copy and paste this into your code in place of the deleted items:

// Libraries
#include <FastSerial.h>
#include <SPI.h>
#include <Wire.h>
#include <AP_Common.h>
#include <APM_RC.h>
#include <AP_RangeFinder.h>
#include <GCS_MAVLink.h>
#include <AP_ADC.h>
#include <AP_DCM.h>
#include <AP_Compass.h>
#include <Wire.h>
#include <AP_GPS.h>
#include <AP_IMU.h>
#include <APM_BMP085.h>
#include <ModeFilter.h>
#include <APO.h>
#include <AP_AnalogSource.h>
#include <AP_InertialSensor.h>
#include <AP_PeriodicProcess.h>
#include <Arduino_Mega_ISR_Registry.h>

Hi Petrus,

I'm compiling it on a Mac with Arduino 023 with the relaxpatch, and I ran into the same error. I have set the board type to 2560. The fix for this error is easy: just add "#include <DataFlash.h>" to the ArduRover sketch file. But, there are other problems that follow.

I had to make these changes:

#include <DataFlash.h>

#include <SPI.h>

//#include <APM_BMP085.h>

#include <AP_Baro.h>

#include <AP_Math.h>

#include <I2C.h>

The BMP085 sensor library was moved into AP_Baro, but several of the source files in libraries/APO/*.cpp still refer to the old APM_BMP085_Class name. It looks like there's some stale code that needs updating.

More to follow.

Edit: OK, as a sanity check I compiled the latest ArduCopter code and it built fine without problems. I think the APO library that ArduRover uses is out of date because after making the source changes to correct the BMP085 class name, it wouldn't compile due to different constructor arguments. So, this code (APO) needs some work.

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service