Every time I try to upload the code to the APM Board I keep getting the following error that occurs on line 294:

Arducopter_alpha_RC1.cpp:102:21: error: APM_ADC.h: No such file or directory
Arducopter_alpha_RC1.cpp:103:20: error: APM_RC.h: No such file or directory
Arducopter_alpha_RC1.cpp:104:23: error: DataFlash.h: No such file or directory
Arducopter_alpha_RC1.cpp:105:25: error: APM_Compass.h: No such file or directory
Arducopter_alpha_RC1.cpp: In function 'void setup()':
Arducopter_alpha_RC1:293: error: 'APM_RC' was not declared in this scope
Arducopter_alpha_RC1:312: error: 'APM_ADC' was not declared in this scope
Arducopter_alpha_RC1:313: error: 'DataFlash' was not declared in this scope
Arducopter_alpha_RC1:323: error: 'APM_Compass' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void loop()':
Arducopter_alpha_RC1:484: error: 'APM_RC' was not declared in this scope
Arducopter_alpha_RC1:608: error: 'APM_RC' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void Read_adc_raw()':
DCM:29: error: 'APM_ADC' was not declared in this scope
DCM:32: error: 'APM_ADC' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void RadioCalibration()':
Functions:74: error: 'APM_RC' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void Log_Write_Sensor(int, int, int, int, int, int, int)':
Log:17: error: 'DataFlash' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void Log_Write_Attitude(int, int, int)':
Log:33: error: 'DataFlash' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void Log_Write_PID(byte, int, int, int, int)':
Log:45: error: 'DataFlash' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void Log_Write_GPS(long int, long int, long int, long int, long int, long int, byte, byte)':
Log:60: error: 'DataFlash' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void Log_Write_Radio(int, int, int, int, int, int)':
Log:77: error: 'DataFlash' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void Log_Read_Sensor()':
Log:95: error: 'DataFlash' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void Log_Read_Attitude()':
Log:118: error: 'DataFlash' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void Log_Read_PID()':
Log:134: error: 'DataFlash' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void Log_Read_GPS()':
Log:158: error: 'DataFlash' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void Log_Read_Radio()':
Log:191: error: 'DataFlash' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void Log_Read(int, int)':
Log:212: error: 'DataFlash' was not declared in this scope
Arducopter_alpha_RC1.cpp: In function 'void sendSerialTelemetry()':
SerialCom:145: error: 'APM_RC' was not declared in this scope

Nothing is declared in this scope or no such file in directory. I am pretty sure I have followed the manual correctly or at least to the best of my ability.

Any assistance anyone could offer would be greatly appreciated. 

Thanks

Views: 73

Reply to This

Replies to This Discussion

You didn't put the libraries in the right folder. Please re-read that part of the manual and move them to the correct default Sketchfile folder.
A little confusing but I got it.

Thanks
I am having the same problem and have read and re-read the manual many times. It also says that it needs to be in a folder named "Arducopter_alpha_RC1" which isnt in the manual. I tried this and still get the same errors. Am I reading the correct manual? The one on the wiki page?

Smitty

I am having simular troubles with building the Rover package. In my case the DataFlash.h file is the first one not found.

Did you figure this out? What was the solution?

I have read the manual, have tried everything I can think of and still this error remains.

I am also suffering here. I have the libs in the sketchbook folder, in the libraries directory, I can build some of the example programs even. But when I try to build the ArduRover, I get missing headers, fist for me is DataFlash.h

Did you figure this out?

David: There is no connection between the ArduCopter and ArduRover code. You're posting in the wrong thread. 

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

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service