Changeset 15 in flair-src for trunk/lib/FlairFilter/src/UavMultiplex.cpp
- Timestamp:
- Apr 8, 2016, 3:40:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairFilter/src/UavMultiplex.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 UavMultiplex::UavMultiplex(const core::FrameworkManager* parent,std::string name) : IODevice(parent,name) 35 { 36 pimpl_=new UavMultiplex_impl(parent,this,name); 32 UavMultiplex::UavMultiplex(const core::FrameworkManager *parent, 33 std::string name) 34 : IODevice(parent, name) { 35 pimpl_ = new UavMultiplex_impl(parent, this, name); 37 36 } 38 37 39 UavMultiplex::~UavMultiplex(void) 40 { 41 delete pimpl_; 38 UavMultiplex::~UavMultiplex(void) { delete pimpl_; } 39 40 void UavMultiplex::Update(core::Time time) { 41 pimpl_->input->SetDataTime(time); 42 UpdateFrom(pimpl_->input); 42 43 } 43 44 44 void UavMultiplex::Update(core::Time time) 45 { 46 pimpl_->input->SetDataTime(time); 47 UpdateFrom(pimpl_->input); 45 void UavMultiplex::SetMultiplexComboBox(string name, int index) { 46 pimpl_->SetMultiplexComboBox(name, index); 48 47 } 49 48 50 void UavMultiplex::SetMultiplexComboBox(string name,int index) 51 { 52 pimpl_->SetMultiplexComboBox(name,index); 49 int UavMultiplex::MultiplexValue(int index) const { 50 return pimpl_->MultiplexValue(index); 53 51 } 54 52 55 int UavMultiplex::MultiplexValue(int index) const 56 { 57 return pimpl_->MultiplexValue(index); 53 TabWidget *UavMultiplex::GetTabWidget(void) const { return pimpl_->tabwidget; } 54 55 Layout *UavMultiplex::GetLayout(void) const { return pimpl_->setup_tab; } 56 57 void UavMultiplex::LockUserInterface(void) const { 58 pimpl_->setup_tab->setEnabled(false); 58 59 } 59 60 60 TabWidget* UavMultiplex::GetTabWidget(void) const 61 { 62 return pimpl_->tabwidget; 61 void UavMultiplex::UnlockUserInterface(void) const { 62 pimpl_->setup_tab->setEnabled(true); 63 63 } 64 64 65 Layout* UavMultiplex::GetLayout(void) const 66 { 67 return pimpl_->setup_tab; 65 void UavMultiplex::SetRoll(float value) { 66 pimpl_->input->SetValue(0, 0, value); 68 67 } 69 68 70 void UavMultiplex::LockUserInterface(void) const 71 { 72 pimpl_->setup_tab->setEnabled(false); 69 void UavMultiplex::SetPitch(float value) { 70 pimpl_->input->SetValue(1, 0, value); 73 71 } 74 72 75 void UavMultiplex::UnlockUserInterface(void) const 76 { 77 pimpl_->setup_tab->setEnabled(true); 73 void UavMultiplex::SetYaw(float value) { pimpl_->input->SetValue(2, 0, value); } 74 75 void UavMultiplex::SetThrust(float value) { 76 pimpl_->input->SetValue(3, 0, value); 78 77 } 79 78 80 void UavMultiplex::SetRoll(float value) 81 { 82 pimpl_->input->SetValue(0,0,value); 79 void UavMultiplex::SetRollTrim(float value) { 80 pimpl_->input->SetValue(4, 0, value); 83 81 } 84 82 85 void UavMultiplex::SetPitch(float value) 86 { 87 pimpl_->input->SetValue(1,0,value); 83 void UavMultiplex::SetPitchTrim(float value) { 84 pimpl_->input->SetValue(5, 0, value); 88 85 } 89 86 90 void UavMultiplex::SetYaw(float value) 91 { 92 pimpl_->input->SetValue(2,0,value); 93 } 94 95 void UavMultiplex::SetThrust(float value) 96 { 97 pimpl_->input->SetValue(3,0,value); 98 } 99 100 void UavMultiplex::SetRollTrim(float value) 101 { 102 pimpl_->input->SetValue(4,0,value); 103 } 104 105 void UavMultiplex::SetPitchTrim(float value) 106 { 107 pimpl_->input->SetValue(5,0,value); 108 } 109 110 void UavMultiplex::SetYawTrim(float value) 111 { 112 pimpl_->input->SetValue(6,0,value); 87 void UavMultiplex::SetYawTrim(float value) { 88 pimpl_->input->SetValue(6, 0, value); 113 89 } 114 90
Note:
See TracChangeset
for help on using the changeset viewer.