Changeset 340 in flair-src for trunk/lib/FlairSensorActuator/src/PressureSensor.cpp
- Timestamp:
- 11/28/19 17:08:04 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/PressureSensor.cpp
r318 r340 48 48 } 49 49 50 PressureSensor::PressureSensor(const IODevice *parent, std::string name)51 : IODevice(parent, name) {52 plot_tab = NULL;53 main_tab = NULL;54 tab = NULL;55 sensor_tab = NULL;56 setup_groupbox = NULL;57 58 output = NULL;59 }60 61 50 PressureSensor::~PressureSensor() { 62 if (main_tab != NULL) 63 delete main_tab; 51 delete main_tab; 64 52 } 65 53 … … 73 61 74 62 void PressureSensor::UseDefaultPlot(void) { 75 if (tab == NULL) {76 Err("not applicable for simulation part.\n");77 return;78 }79 80 63 plot_tab = new Tab(tab, "Mesures"); 81 64 plot = new DataPlot1D(plot_tab->NewRow(), ObjectName(), 101000, 101500);
Note:
See TracChangeset
for help on using the changeset viewer.