Changeset 15 in flair-src for trunk/lib/FlairFilter/src/NestedSat.cpp
- Timestamp:
- Apr 8, 2016, 3:40:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairFilter/src/NestedSat.cpp
r10 r15 27 27 using namespace flair::gui; 28 28 29 namespace flair 30 { 31 namespace filter 32 { 29 namespace flair { 30 namespace filter { 33 31 34 NestedSat::NestedSat(const LayoutPosition * position,string name) : ControlLaw(position->getLayout(),name)35 {36 pimpl_=new NestedSat_impl(this,position,name);32 NestedSat::NestedSat(const LayoutPosition *position, string name) 33 : ControlLaw(position->getLayout(), name) { 34 pimpl_ = new NestedSat_impl(this, position, name); 37 35 } 38 36 39 NestedSat::~NestedSat(void) 40 { 41 delete pimpl_; 37 NestedSat::~NestedSat(void) { delete pimpl_; } 38 39 void NestedSat::UpdateFrom(const io_data *data) { 40 pimpl_->UpdateFrom(data); 41 ProcessUpdate(output); 42 42 } 43 43 44 void NestedSat:: UpdateFrom(const io_data *data)45 { 46 pimpl_->UpdateFrom(data);47 ProcessUpdate(output);44 void NestedSat::SetValues(float p_ref, float p, float d) { 45 input->SetValue(0, 0, p_ref); 46 input->SetValue(1, 0, p); 47 input->SetValue(2, 0, d); 48 48 } 49 50 void NestedSat::SetValues(float p_ref,float p,float d) 51 { 52 input->SetValue(0,0,p_ref); 53 input->SetValue(1,0,p); 54 input->SetValue(2,0,d); 55 } 56 //TODO: add a combobox to choose between rad and deg 57 void NestedSat::ConvertSatFromDegToRad(void) 58 { 59 pimpl_->k=Euler::ToRadian(1); 60 } 49 // TODO: add a combobox to choose between rad and deg 50 void NestedSat::ConvertSatFromDegToRad(void) { pimpl_->k = Euler::ToRadian(1); } 61 51 62 52 } // end namespace filter
Note:
See TracChangeset
for help on using the changeset viewer.