Changeset 455 in flair-src for trunk/tools/FlairGCS/src/Layout.cpp
- Timestamp:
- 10/04/21 10:03:51 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/FlairGCS/src/Layout.cpp
r437 r455 160 160 uint16_t period = dom->attribute("period").toUShort(); 161 161 uint16_t nb_buffering = dom->attribute("nb_buf").toUShort(); 162 if(period==0) period=100; 162 163 if (enabled == 1) { 163 164 widget = new DataPlot1D(this, row, col, name, ymin, ymax, true, period,nb_buffering); 164 165 } else { 165 widget = new DataPlot1D(this, row, col, name, ymin, ymax, false, 100,nb_buffering);166 widget = new DataPlot1D(this, row, col, name, ymin, ymax, false, period,nb_buffering); 166 167 } 167 168 } … … 176 177 uint16_t period = dom->attribute("period").toUShort(); 177 178 uint16_t nb_buffering = dom->attribute("nb_buf").toUShort(); 179 if(period==0) period=100; 178 180 if (enabled == 1) { 179 181 widget = new DataPlot2D(this, row, col, name, x_name, y_name, xmin, xmax, … … 181 183 } else { 182 184 widget = new DataPlot2D(this, row, col, name, x_name, y_name, xmin, xmax, 183 ymin, ymax, false, 100,nb_buffering);185 ymin, ymax, false, period,nb_buffering); 184 186 } 185 187 } … … 192 194 QString type = dom->attribute("type"); 193 195 int samples = dom->attribute("samples").toInt(); 196 if(period==0) period=100; 194 197 if (enabled == 1) { 195 198 widget = new UsSensorPlot(this, row, col, name, y_name, … … 197 200 } else { 198 201 widget = new UsSensorPlot(this, row, col, name, y_name, 199 ymin, ymax, samples,type,false, 100);202 ymin, ymax, samples,type,false, period); 200 203 } 201 204 } … … 220 223 invert_axis_bool = true; 221 224 } 225 if(period==0) period=100; 222 226 if (enabled == 1) { 223 227 widget = … … 229 233 new RangeFinderPlot(this, row, col, name, x_name, y_name, xmin, xmax, 230 234 ymin, ymax, start_angle, end_angle, nb_samples, 231 data_type, invert_axis, false, 100);235 data_type, invert_axis, false, period); 232 236 } 233 237 } … … 237 241 int enabled = dom->attribute("enabled").toInt(); 238 242 uint16_t period = dom->attribute("period").toUShort(); 243 if(period==0) period=100; 239 244 if (enabled == 1) { 240 245 widget = new Picture(this, row, col, name, width, height, true, period); … … 257 262 i++; 258 263 } 259 264 if(period==0) period=100; 260 265 if (enabled == 1) { 261 266 widget = new Map(this, row, col, name, coordinates, true, period);
Note:
See TracChangeset
for help on using the changeset viewer.