Skip to content

Commit

Permalink
fix time scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Faconti committed Feb 18, 2019
1 parent f14dc6b commit d5ffcb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file added datasamples/sample.ulg.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion plugins/DataLoadULog/dataload_ulog.cpp
Expand Up @@ -52,7 +52,8 @@ PlotDataMapRef DataLoadULog::readDataFromFile(const QString &file_name, bool)

for( size_t i=0; i < data.size(); i++ )
{
PlotData::Point point( static_cast<double>(timeseries.timestamps[i]), data[i] );
double msg_time = static_cast<double>(timeseries.timestamps[i]) * 0.000001;
PlotData::Point point( msg_time, data[i] );
series->second.pushBack( point );
}
}
Expand Down

0 comments on commit d5ffcb3

Please sign in to comment.