Changeset 15 in flair-src for trunk/lib/FlairFilter/src/Ahrs.cpp
- Timestamp:
- 04/08/16 15:40:57 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairFilter/src/Ahrs.cpp
r10 r15 27 27 using namespace flair::sensor; 28 28 29 namespace flair { namespace filter { 29 namespace flair { 30 namespace filter { 30 31 31 Ahrs::Ahrs(const Imu * parent,string name) : IODevice(parent,name) {32 pimpl_=new Ahrs_impl(this);33 32 Ahrs::Ahrs(const Imu *parent, string name) : IODevice(parent, name) { 33 pimpl_ = new Ahrs_impl(this); 34 AddDataToLog(pimpl_->ahrsData); 34 35 } 35 36 36 Ahrs::~Ahrs() { 37 delete pimpl_; 38 } 37 Ahrs::~Ahrs() { delete pimpl_; } 39 38 40 const Imu *Ahrs::GetImu(void) const { 41 return (Imu*)Parent(); 42 } 39 const Imu *Ahrs::GetImu(void) const { return (Imu *)Parent(); } 43 40 44 const AhrsData *Ahrs::GetDatas(void) const { 45 return pimpl_->ahrsData; 46 } 41 const AhrsData *Ahrs::GetDatas(void) const { return pimpl_->ahrsData; } 47 42 48 43 void Ahrs::GetDatas(core::AhrsData **ahrsData) const { 49 *ahrsData=pimpl_->ahrsData;44 *ahrsData = pimpl_->ahrsData; 50 45 } 51 46 52 47 void Ahrs::LockUserInterface(void) const { 53 48 //((Imu*)Parent())->LockUserInterface(); 54 49 } 55 50 56 51 void Ahrs::UnlockUserInterface(void) const { 57 52 //((Imu*)Parent())->UnlockUserInterface(); 58 53 } 59 54 60 55 void Ahrs::UseDefaultPlot(void) { 61 62 ((Imu*)Parent())->UseDefaultPlot();56 pimpl_->UseDefaultPlot(); 57 ((Imu *)Parent())->UseDefaultPlot(); 63 58 } 64 59 65 void Ahrs::AddPlot(const AhrsData *ahrsData, DataPlot::Color_t color) {66 pimpl_->AddPlot(ahrsData,color);60 void Ahrs::AddPlot(const AhrsData *ahrsData, DataPlot::Color_t color) { 61 pimpl_->AddPlot(ahrsData, color); 67 62 } 68 63 69 DataPlot1D *Ahrs::RollPlot(void) const { 70 return pimpl_->rollPlot; 71 } 64 DataPlot1D *Ahrs::RollPlot(void) const { return pimpl_->rollPlot; } 72 65 73 DataPlot1D *Ahrs::PitchPlot(void) const { 74 return pimpl_->pitchPlot; 75 } 66 DataPlot1D *Ahrs::PitchPlot(void) const { return pimpl_->pitchPlot; } 76 67 77 DataPlot1D *Ahrs::YawPlot(void) const { 78 return pimpl_->yawPlot; 79 } 68 DataPlot1D *Ahrs::YawPlot(void) const { return pimpl_->yawPlot; } 80 69 81 DataPlot1D *Ahrs::WXPlot(void) const { 82 return pimpl_->wXPlot; 83 } 70 DataPlot1D *Ahrs::WXPlot(void) const { return pimpl_->wXPlot; } 84 71 85 DataPlot1D *Ahrs::WYPlot(void) const { 86 return pimpl_->wYPlot; 87 } 72 DataPlot1D *Ahrs::WYPlot(void) const { return pimpl_->wYPlot; } 88 73 89 DataPlot1D *Ahrs::WZPlot(void) const { 90 return pimpl_->wZPlot; 91 } 74 DataPlot1D *Ahrs::WZPlot(void) const { return pimpl_->wZPlot; } 92 75 93 76 } // end namespace filter
Note:
See TracChangeset
for help on using the changeset viewer.