cuad4eso / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

AHRS_Test.pde should include <AP_Semaphore.h> #841

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
compiling AHRS_Test.pde 

What is the expected output? What do you see instead?
From libraries\AHRS_Test.pde:24:
In file included from libraries\DataFlash/DataFlash.h:94,
libraries\DataFlash/DataFlash_APM1.h:27: error: ISO C++ forbids declaration of 
'AP_Semaphore' with no type

What version of the product are you using? On what operating system?
ArduCopter V2.8.1 under Arduino 1.0.3 using Windows Vista

Please provide any additional information below.
Problem is solved by adding the following line to AHRS_Test.pde:
#include <AP_Semaphore.h> // Required by DataFlash library

Just before line 24 of AHRS_Test.pde:
#include <DataFlash.h>

Original issue reported on code.google.com by t.m.ass...@gmail.com on 28 Dec 2012 at 3:51