Changeset 137 in flair-src for trunk/lib/FlairFilter/src
- Timestamp:
- Feb 14, 2017, 3:06:20 PM (8 years ago)
- Location:
- trunk/lib/FlairFilter/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairFilter/src/Gx3_25_ahrs.cpp
r99 r137 17 17 18 18 #include "Gx3_25_ahrs.h" 19 #include <FrameworkManager.h>20 19 #include <AhrsData.h> 21 20 #include <OneAxisRotation.h> … … 28 27 namespace filter { 29 28 30 Gx3_25_ahrs::Gx3_25_ahrs( const FrameworkManager *parent,string name,29 Gx3_25_ahrs::Gx3_25_ahrs(string name, 31 30 SerialPort *serialport, Gx3_25_imu::Command_t command, 32 31 uint8_t priority) 33 : Ahrs(new Gx3_25_imu( parent,name, serialport, command, priority), name) {}32 : Ahrs(new Gx3_25_imu( name, serialport, command, priority), name) {} 34 33 35 34 Gx3_25_ahrs::~Gx3_25_ahrs() {} -
trunk/lib/FlairFilter/src/Gx3_25_ahrs.h
r15 r137 30 30 * \brief Constructor 31 31 * 32 * Construct an Ahrs for 3dmgx3-25 32 * Construct an Ahrs for 3dmgx3-25. It will be child of the FrameworkManager. 33 33 * 34 * \param parent parent35 34 * \param name name 36 35 * \param serialport Imu SerialPort … … 38 37 * \param priority priority of the Gx3_25_imu Thread 39 38 */ 40 Gx3_25_ahrs( const core::FrameworkManager *parent,std::string name,39 Gx3_25_ahrs(std::string name, 41 40 core::SerialPort *serialport, 42 41 sensor::Gx3_25_imu::Command_t command, uint8_t priority); -
trunk/lib/FlairFilter/src/SimuAhrs.cpp
r15 r137 18 18 #include "SimuAhrs.h" 19 19 #include "SimuImu.h" 20 #include <FrameworkManager.h>21 20 #include <AhrsData.h> 22 21 … … 28 27 namespace filter { 29 28 30 SimuAhrs::SimuAhrs( const FrameworkManager *parent,string name, uint32_t dev_id,29 SimuAhrs::SimuAhrs(string name, uint32_t dev_id, 31 30 uint8_t priority) 32 : Ahrs(new SimuImu( parent,name, dev_id, priority), name) {}31 : Ahrs(new SimuImu(name, dev_id, priority), name) {} 33 32 34 33 SimuAhrs::~SimuAhrs() {} -
trunk/lib/FlairFilter/src/SimuAhrs.h
r15 r137 30 30 * \brief Constructor 31 31 * 32 * Construct a simulation Ahrs. 32 * Construct a simulation Ahrs. It will be child of the FrameworkManager. 33 33 * 34 * \param parent parent35 34 * \param name name 36 35 * \param dev_id number id of the simulated Ahrs 37 36 * \param priority priority of the SimuImu Thread 38 37 */ 39 SimuAhrs( const core::FrameworkManager *parent,std::string name,38 SimuAhrs(std::string name, 40 39 uint32_t dev_id, uint8_t priority); 41 40 -
trunk/lib/FlairFilter/src/UavMultiplex.cpp
r45 r137 39 39 namespace filter { 40 40 41 UavMultiplex::UavMultiplex(const core::FrameworkManager *parent, 42 std::string name) 43 : IODevice(parent, name) { 44 pimpl_ = new UavMultiplex_impl(parent, this, name); 41 UavMultiplex::UavMultiplex(std::string name) 42 : IODevice(getFrameworkManager(), name) { 43 pimpl_ = new UavMultiplex_impl(this, name); 45 44 } 46 45 -
trunk/lib/FlairFilter/src/UavMultiplex.h
r15 r137 19 19 namespace flair { 20 20 namespace core { 21 class FrameworkManager;22 21 class io_data; 23 22 } … … 41 40 * \brief Constructor 42 41 * 43 * Construct a uav multiplexing 44 * 45 * \param parent parent 42 * Construct a uav multiplexing. It will be child of the FrameworkManager. 43 * 46 44 * \param name name 47 45 */ 48 UavMultiplex( const core::FrameworkManager *parent,std::string name);46 UavMultiplex(std::string name); 49 47 50 48 /*! -
trunk/lib/FlairFilter/src/UavMultiplex_impl.cpp
r15 r137 33 33 using namespace flair::filter; 34 34 35 UavMultiplex_impl::UavMultiplex_impl(const FrameworkManager *parent, 36 UavMultiplex *self, std::string name) { 35 UavMultiplex_impl::UavMultiplex_impl(UavMultiplex *self, std::string name) { 37 36 input = new cvmatrix(self, 7, 1, floatType); 38 37 multiplexcombobox = NULL; … … 40 39 41 40 // station sol 42 main_tab = new Tab( parent->GetTabWidget(), name);41 main_tab = new Tab(getFrameworkManager()->GetTabWidget(), name); 43 42 tabwidget = new TabWidget(main_tab->NewRow(), "UavMultiplex"); 44 43 setup_tab = new Tab(tabwidget, "Setup"); -
trunk/lib/FlairFilter/src/X4X8Multiplex.cpp
r15 r137 26 26 namespace filter { 27 27 28 X4X8Multiplex::X4X8Multiplex(const FrameworkManager *parent, std::string name, 29 UavType_t type) 30 : UavMultiplex(parent, name) { 28 X4X8Multiplex::X4X8Multiplex(std::string name,UavType_t type) 29 : UavMultiplex( name) { 31 30 int nb_mot; 32 31 -
trunk/lib/FlairFilter/src/X4X8Multiplex.h
r15 r137 59 59 * \brief Constructor 60 60 * 61 * Construct a X4 and X8 multiplexing 61 * Construct a X4 and X8 multiplexing. It will be child of the FrameworkManager. 62 62 * 63 * \param parent parent64 63 * \param name name 65 64 * \param type type 66 65 */ 67 X4X8Multiplex(const core::FrameworkManager *parent, std::string name, 68 UavType_t type); 66 X4X8Multiplex(std::string name, UavType_t type); 69 67 70 68 /*! -
trunk/lib/FlairFilter/src/unexported/UavMultiplex_impl.h
r15 r137 45 45 * Construct a uav multiplexing 46 46 * 47 * \param parent parent47 * \param self UavMultiplex 48 48 * \param name name 49 49 */ 50 UavMultiplex_impl(const flair::core::FrameworkManager *parent, 51 flair::filter::UavMultiplex *self, std::string name); 50 UavMultiplex_impl(flair::filter::UavMultiplex *self, std::string name); 52 51 53 52 /*!
Note:
See TracChangeset
for help on using the changeset viewer.