...
Code Block |
---|
bool SensorUnlinearityCorrection::LoadFromDatabase() { int i; double idealValuetodellinen, measuredValuemitattu; QSqlQueryModel model; model.setQuery("SELECT todellinen, mitattu FROM sensori"); CorrectVal.clear(); ValFromSensor.clear(); for (i = 0; i < model.rowCount(); i++) { idealValuetodellinen = model.record(i).value("todellinenltodellinen").toDouble(); measuredValuemitattu = model.record(i).value("measuredmitattu").toDouble(); CorrectVal.append(idealValuetodellinen); ValFromSensor.append((measuredValuemitattu)); } return true; } ddd |
Code Block |
---|
ddd |
...