Commit 5078267f authored by pixhawk's avatar pixhawk

Fixing the timestamps currently, should work now with IMU and UNIX timestamps

parent 8556a2a2
This diff is collapsed.
......@@ -214,6 +214,10 @@ signals:
void loadChanged(UASInterface* uas, double load);
/** @brief Propagate a heartbeat received from the system */
void heartbeat(UASInterface* uas);
protected:
/** @brief Get the UNIX timestamp in microseconds */
quint64 getUnixTime(quint64 time);
};
......
......@@ -53,9 +53,12 @@ class TimeScaleDraw: public QwtScaleDraw
{
public:
virtual QwtText label(double v) const {
virtual QwtText label(double v) const
{
QDateTime time = MG::TIME::msecToQDateTime(static_cast<quint64>(v));
return time.toString("hh:mm:ss"); // was hh:mm:ss:zzz
// Show seconds since system startup
//return QString::number(static_cast<int>(v)/1000000);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment