Changeset 432 in flair-src for trunk/lib/FlairMeta/src/MetaVrpnObject.h


Ignore:
Timestamp:
07/12/21 11:19:21 (6 months ago)
Author:
Sanahuja Guillaume
Message:

add AltitudeSensor class
failsafe altitude sensor in changeable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairMeta/src/MetaVrpnObject.h

    r420 r432  
    2929                class LowPassFilter;
    3030        }
     31  namespace sensor {
     32    class AltitudeSensor;
     33  }
    3134}
    3235
     
    5154  void GetSpeed(core::Vector3Df &speed) const;
    5255  filter::EulerDerivative* GetEulerDerivative(void) const;
     56  //get the associated AltitudeSensor
     57  //MetaVrpnObject do not derivate from AltitudeSensor because frames are differents
     58  //and this could be confusing
     59  //MetaVrpnObject is in vrpn frame (earth)
     60  //AltitudeSensor is in uav frame
     61  sensor::AltitudeSensor *GetAltitudeSensor(void) const;
    5362
    5463private:
     
    5968  gui::DataPlot1D *vx_opti_plot, *vy_opti_plot, *vz_opti_plot;
    6069  gui::Tab *plot_tab;
     70  sensor::AltitudeSensor *altitudeSensor;
    6171};
    6272} // end namespace meta
Note: See TracChangeset for help on using the changeset viewer.