void meegorotationsensor::slotDataAvailable(const XYZ& data) { m_reading.setX(data.x()); m_reading.setY(data.y()); m_reading.setZ(data.z()); m_reading.setTimestamp(data.XYZData().timestamp_); newReadingAvailable(); }
void SensorfwGyroscope::slotDataAvailable(const XYZ& data) { m_reading.setX((qreal)(data.x()*MILLI)); m_reading.setY((qreal)(data.y()*MILLI)); m_reading.setZ((qreal)(data.z()*MILLI)); m_reading.setTimestamp(data.XYZData().timestamp_); newReadingAvailable(); }
void meegoaccelerometer::slotDataAvailable(const XYZ& data) { // Convert from milli-Gs to meters per second per second // Using 1 G = 9.80665 m/s^2 m_reading.setX(-data.x() * GRAVITY_EARTH_THOUSANDTH); m_reading.setY(-data.y() * GRAVITY_EARTH_THOUSANDTH); m_reading.setZ(-data.z() * GRAVITY_EARTH_THOUSANDTH); m_reading.setTimestamp(data.XYZData().timestamp_); newReadingAvailable(); }
void SensorfwRotationSensor::slotDataAvailable(const XYZ& data) { m_reading.setFromEuler(data.x(),data.y(),data.z()); m_reading.setTimestamp(data.XYZData().timestamp_); newReadingAvailable(); }