- Timestamp:
- Feb 22, 2018, 3:38:55 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/RangeFinderPlot.cpp
r214 r221 35 35 : SendData(position, name, "RangeFinderPlot", 200) { 36 36 this->datas = datas; 37 Warn("RangeFinderPlot::CopyDatas needs to be written\n"); 37 38 38 SetSendSize(datas->GetDataType().GetSize()); 39 39 … … 58 58 59 59 void RangeFinderPlot::CopyDatas(char *buf) const { 60 //datas->CopyDatas(buf);60 datas->CopyDatas(buf); 61 61 } 62 62 -
trunk/lib/FlairSensorActuator/src/SimuUs.cpp
r214 r221 32 32 namespace sensor { 33 33 34 //control part 34 35 SimuUs::SimuUs(string name, uint32_t modelId,uint32_t deviceId, 35 36 uint8_t priority) … … 43 44 } 44 45 46 //simulation part 45 47 SimuUs::SimuUs(const IODevice *parent, string name,uint32_t modelId,uint32_t deviceId) 46 48 : Thread(parent, name, 0), UsRangeFinder(parent,name) { -
trunk/lib/FlairSensorActuator/src/UsRangeFinder.cpp
r214 r221 73 73 Tab *UsRangeFinder::GetPlotTab(void) const { return plot_tab; } 74 74 75 TabWidget *UsRangeFinder::GetTabWidget(void) const { return tab; } 76 75 77 void UsRangeFinder::UseDefaultPlot(void) { 76 78 if (tab == NULL) { -
trunk/lib/FlairSensorActuator/src/UsRangeFinder.h
r214 r221 105 105 */ 106 106 gui::Tab *GetPlotTab(void) const; 107 108 /*! 109 * \brief Tab widget 110 * 111 * \return tab widget 112 */ 113 gui::TabWidget *GetTabWidget(void) const; 107 114 108 115 /*! -
trunk/tools/FlairGCS/CMakeLists.txt
r204 r221 23 23 src/UdtSocket.h 24 24 src/RangeFinderPlot.h 25 src/UsSensorPlot.h 25 26 src/DataPlot2D.h 26 27 src/Picture.h -
trunk/tools/FlairGCS/src/DataPlot2D.cpp
r15 r221 272 272 plot_data(data1, data2, i); 273 273 } else { 274 printf("DataPlot 1D::DrawDatas type non connu\n");274 printf("DataPlot2D::DrawDatas type non connu\n"); 275 275 } 276 276 } -
trunk/tools/FlairGCS/src/Layout.cpp
r88 r221 18 18 #include "DataPlot2D.h" 19 19 #include "RangeFinderPlot.h" 20 #include "UsSensorPlot.h" 20 21 #include "Picture.h" 21 22 #include "Map.h" … … 180 181 } 181 182 } 183 if (type == "UsSensorPlot") { 184 float ymin = dom.attribute("ymin").toFloat(); 185 float ymax = dom.attribute("ymax").toFloat(); 186 QString y_name = dom.attribute("y_name"); 187 int enabled = dom.attribute("enabled").toInt(); 188 int period = dom.attribute("period").toInt(); 189 QString type = dom.attribute("type"); 190 int samples = dom.attribute("samples").toInt(); 191 if (enabled == 1) { 192 widget = new UsSensorPlot(this, row, col, name, y_name, 193 ymin, ymax, samples,type,true, period); 194 } else { 195 widget = new UsSensorPlot(this, row, col, name, y_name, 196 ymin, ymax, samples,type,false, 100); 197 } 198 } 182 199 if (type == "RangeFinderPlot") { 183 200 float xmin = dom.attribute("xmin").toFloat();
Note:
See TracChangeset
for help on using the changeset viewer.