#include "FGSensor.h"
#include "input_output/FGXMLElement.h"
-#include "models/FGPropagate.h"
-#include "models/FGMassBalance.h"
-#include "models/FGInertial.h"
#include "math/FGColumnVector3.h"
#include "math/FGMatrix33.h"
#include "FGSensorOrientation.h"
DEFINITIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-#define ID_ACCELEROMETER "$Id$"
+#define ID_ACCELEROMETER "$Id: FGAccelerometer.h,v 1.6 2012/01/08 12:39:14 bcoconni Exp $"
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FORWARD DECLARATIONS
namespace JSBSim {
class FGFCS;
+class FGPropagate;
+class FGAccelerations;
+class FGInertial;
+class FGMassBalance;
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CLASS DOCUMENTATION
@code
<accelerometer name="name">
- <input> property </input>
+ <location unit="{IN | M}">
+ <x> number </x>
+ <y> number </y>
+ <z> number </z>
+ </location>
+ <orientation unit="{RAD | DEG}">
+ <pitch> {number} </pitch>
+ <roll> {number} </roll>
+ <yaw> {number} </yaw>
+ </orientation>
+ <axis> {X | Y | Z} </axis>
<lag> number </lag>
<noise variation="PERCENT|ABSOLUTE"> number </noise>
<quantization name="name">
<max> number </max>
</quantization>
<drift_rate> number </drift_rate>
+ <gain> number </gain>
<bias> number </bias>
</accelerometer>
@endcode
Example:
@code
-<accelerometer name="aero/accelerometer/qbar">
- <input> aero/qbar </input>
+<accelerometer name="aero/accelerometer/right_tip_wing">
+ <location unit="IN">
+ <x> 43.2 </x>
+ <y> 214. </y>
+ <z> 59.4 </z>
+ </location>
+ <axis> Z </axis>
<lag> 0.5 </lag>
<noise variation="PERCENT"> 2 </noise>
- <quantization name="aero/accelerometer/quantized/qbar">
+ <quantization name="aero/accelerometer/quantized/right_tip_wing">
<bits> 12 </bits>
<min> 0 </min>
<max> 400 </max>
time.
@author Jon S. Berndt
-@version $Revision$
+@version $Revision: 1.6 $
*/
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
private:
FGPropagate* Propagate;
+ FGAccelerations* Accelerations;
FGMassBalance* MassBalance;
FGInertial* Inertial;
FGColumnVector3 vLocation;