Need help Uploading ArduCopter alpha Code

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

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

Join diydrones

Email me when people reply –

Replies

  • 3D Robotics
    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.
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…