From 5c595c3cec1115ffb47885378b1d84e4eea34954 Mon Sep 17 00:00:00 2001 From: James Goppert <jgoppert@w7.hsl.dynalias.com> Date: Sun, 5 Dec 2010 09:01:23 -0500 Subject: [PATCH] Added some new states to state space. --- configure.in | 4 +-- src/math/FGStateSpace.h | 56 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index c602804..f0d87d9 100644 --- a/configure.in +++ b/configure.in @@ -1,10 +1,10 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(JSBSim.cpp, 1.0.rc3-advtrim-2, jon@jsbsim.org) +AC_INIT(JSBSim.cpp, 1.0.rc3-advtrim-4, jon@jsbsim.org) dnl set the $host variable based on local machine/os AC_CANONICAL_TARGET -AM_INIT_AUTOMAKE(jsbsim, 1.0.rc3-advtrim-2) +AM_INIT_AUTOMAKE(jsbsim, 1.0.rc3-advtrim-4) AC_CONFIG_MACRO_DIR([m4]) # Before making a release, the LT_VERSION string should be modified. diff --git a/src/math/FGStateSpace.h b/src/math/FGStateSpace.h index ea30f8f..ce57c45 100644 --- a/src/math/FGStateSpace.h +++ b/src/math/FGStateSpace.h @@ -256,6 +256,62 @@ public: }; + class VGround : public Component + { + public: + VGround() : Component("VGround","ft/s") {}; + double get() const + { + return m_fdm->GetAuxiliary()->GetVground(); + } + void set(double val) + { + m_fdm->GetIC()->SetVgroundFpsIC(val); + } + }; + + class AccelX : public Component + { + public: + AccelX() : Component("AccelX","ft/s^2") {}; + double get() const + { + return m_fdm->GetAuxiliary()->GetPilotAccel(1); + } + void set(double val) + { + // XXX: not possible to implement currently + } + }; + + class AccelY : public Component + { + public: + AccelY() : Component("AccelY","ft/s^2") {}; + double get() const + { + return m_fdm->GetAuxiliary()->GetPilotAccel(2); + } + void set(double val) + { + // XXX: not possible to implement currently + } + }; + + class AccelZ : public Component + { + public: + AccelZ() : Component("AccelZ","ft/s^2") {}; + double get() const + { + return m_fdm->GetAuxiliary()->GetPilotAccel(3); + } + void set(double val) + { + // XXX: not possible to implement currently + } + }; + class Alpha : public Component { public: -- GitLab