qtmobility/plugins/sensors/maemo6/maemo6accelerometer.cpp
changeset 11 06b8e2af4411
parent 8 71781823f776
child 14 6fbed849b4f4
equal deleted inserted replaced
8:71781823f776 11:06b8e2af4411
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the Qt Mobility Components.
     7 ** This file is part of the Qt Mobility Components.
     8 **
     8 **
    83     qreal az = -data.z() * GRAVITY_EARTH_THOUSANDTH;
    83     qreal az = -data.z() * GRAVITY_EARTH_THOUSANDTH;
    84 
    84 
    85     m_reading.setX(ax);
    85     m_reading.setX(ax);
    86     m_reading.setY(ay);
    86     m_reading.setY(ay);
    87     m_reading.setZ(az);
    87     m_reading.setZ(az);
    88     //m_reading.setTimestamp(data.timestamp());
    88     m_reading.setTimestamp(data.XYZData().timestamp_);
    89     m_reading.setTimestamp(createTimestamp()); //TODO: use correct timestamp
       
    90     newReadingAvailable();
    89     newReadingAvailable();
    91 }
    90 }