Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...