Changeset 137 in flair-src for trunk/tools/Controller/Mavlink
- Timestamp:
- Feb 14, 2017, 3:06:20 PM (8 years ago)
- Location:
- trunk/tools/Controller/Mavlink/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/Controller/Mavlink/src/Forwarder.cpp
r88 r137 28 28 using namespace flair::core; 29 29 30 Forwarder::Forwarder( const FrameworkManager *parent,string name, string &inputAddress,30 Forwarder::Forwarder(string name, string &inputAddress, 31 31 int inputPort, string &outputAddress, int outputPort): 32 Thread( parent, name, 6), inputAddress(inputAddress),32 Thread(getFrameworkManager(), name, 6), inputAddress(inputAddress), 33 33 inputPort(inputPort), outputAddress(outputAddress), 34 34 outputPort(outputPort) { -
trunk/tools/Controller/Mavlink/src/Forwarder.h
r88 r137 25 25 namespace flair { 26 26 namespace core { 27 class FrameworkManager;28 27 class Socket; 29 28 } … … 33 32 public: 34 33 35 Forwarder( const flair::core::FrameworkManager *parent,std::string name,34 Forwarder(std::string name, 36 35 std::string &inputAddress, int inputPort, 37 36 std::string &outputAddress, int outputPort); -
trunk/tools/Controller/Mavlink/src/GuiFlair.cpp
r88 r137 20 20 #include "GuiInterface.h" 21 21 22 #include <FrameworkManager.h>23 22 #include <Socket.h> 24 23 … … 31 30 using namespace flair::gui; 32 31 33 GuiFlair::GuiFlair( const FrameworkManager *parent,string name):34 GuiInterface( parent,name) {32 GuiFlair::GuiFlair(string name): 33 GuiInterface(name) { 35 34 cout << "MavPlanner GuiFlair constructor" << endl; 36 35 -
trunk/tools/Controller/Mavlink/src/GuiFlair.h
r88 r137 26 26 namespace flair { 27 27 namespace core { 28 class FrameworkManager;29 28 class Socket; 30 29 } … … 34 33 public: 35 34 36 GuiFlair( const flair::core::FrameworkManager *parent,std::string name);35 GuiFlair(std::string name); 37 36 ~GuiFlair(); 38 37 -
trunk/tools/Controller/Mavlink/src/GuiGcs.cpp
r88 r137 21 21 22 22 #include <Socket.h> 23 #include <FrameworkManager.h>24 23 25 24 #include "MavlinkUDP.h" … … 36 35 const std::string delimiter = "|"; 37 36 38 GuiGcs::GuiGcs( const FrameworkManager *parent,string name,37 GuiGcs::GuiGcs(string name, 39 38 std::string &outputAddress, int outputPort): 40 GuiInterface( parent,name) {39 GuiInterface(name) { 41 40 cout << "MavPlanner GuiGcs constructor" << endl; 42 41 //outputSocket = new Socket((Thread *)this, "output socket", outputAddress + ":" + to_string(outputPort)); -
trunk/tools/Controller/Mavlink/src/GuiGcs.h
r88 r137 32 32 namespace flair { 33 33 namespace core { 34 class FrameworkManager;35 34 class Socket; 36 35 } … … 40 39 public: 41 40 42 GuiGcs( const flair::core::FrameworkManager *parent,std::string name,41 GuiGcs(std::string name, 43 42 std::string &outputAddress, int outputPort); 44 43 ~GuiGcs(); -
trunk/tools/Controller/Mavlink/src/GuiInterface.cpp
r88 r137 39 39 using namespace std; 40 40 41 GuiInterface::GuiInterface( const FrameworkManager *parent,string name)42 : Thread( parent, name, 6),43 mainTab(new Tab( parent->GetTabWidget(), name)) {41 GuiInterface::GuiInterface(string name) 42 : Thread(getFrameworkManager(), name, 6), 43 mainTab(new Tab(getFrameworkManager()->GetTabWidget(), name)) { 44 44 45 45 tabWidget = new TabWidget(mainTab->NewRow(), name); -
trunk/tools/Controller/Mavlink/src/GuiInterface.h
r88 r137 24 24 namespace flair { 25 25 namespace core { 26 class FrameworkManager;27 26 class Socket; 28 27 } … … 42 41 public: 43 42 44 GuiInterface( const flair::core::FrameworkManager *parent,std::string name);43 GuiInterface(std::string name); 45 44 ~GuiInterface(); 46 45 -
trunk/tools/Controller/Mavlink/src/main.cpp
r88 r137 56 56 57 57 if(mode == "forward") { 58 Forwarder *guiForwarder = new Forwarder( manager,"Forwarder",58 Forwarder *guiForwarder = new Forwarder("Forwarder", 59 59 inputAddress, inputPort, 60 60 outputAddress, outputPort); … … 66 66 GuiInterface *guiHandler; 67 67 if(mode == "flair") { 68 guiHandler = new GuiFlair( manager,"GuiFlair");68 guiHandler = new GuiFlair("GuiFlair"); 69 69 } else if (mode == "gcs") { 70 guiHandler = new GuiGcs( manager,"GuiGcs", outputAddress, outputPort);70 guiHandler = new GuiGcs("GuiGcs", outputAddress, outputPort); 71 71 } else { 72 72 //ERROR
Note:
See TracChangeset
for help on using the changeset viewer.