Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Oct 2010

    Requesting accelerometer help

    Good evening,

    I have searched the internet for a very simple example of QT accelerometer practices using the 5530, however I can only find examples using graphics and physics, and it is difficult to see exactly what is needed.

    I am simply wanting 3 lineEdits displaying live X, Y & Z data.

    Is anybody able to point me to a "accelerometers for dummies" version or piece together a simple example?

    Many thanks for any help on this.

  2. #2

  3. #3
    Registered User
    Join Date
    Oct 2010

    Re: Requesting accelerometer help

    Thats brilliant, thanks.

    So how would you get the XY&Z out of there and into variables so I can work with them on slightly more familiar ground?

    Basically I'm just wanting to compare each reading against the next, and if its different (within a certain threshold), put a message on the screen.

    Thanks, as you can probably tell I'm rather new to this, but loving it all the same!

    class AccelerometerFilter : public QAccelerometerFilter
    bool filter(QAccelerometerReading *reading)
    qDebug() << "acceleration: "
    << QString().sprintf("%0.2f %0.2f %0.2f",
    return false; // don't store the reading in the sensor

  4. #4
    Registered User
    Join Date
    Jul 2010

    Re: Requesting accelerometer help

  5. #5
    Super Contributor
    Join Date
    Oct 2009

    Re: Requesting accelerometer help

Similar Threads

  1. AT Command For Requesting Call
    By mohanad_khodeir in forum General Development Questions
    Replies: 5
    Last Post: 2008-09-25, 19:50
  2. requesting TCB capability
    By sgonzaliz in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2007-01-30, 13:35
  3. requesting UID for font
    By serg3d in forum Symbian
    Replies: 0
    Last Post: 2004-06-11, 21:02
  4. Serial Requesting Problem
    By daniel1st in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-10-16, 11:42
  5. component requesting error
    By romstemp in forum General Messaging
    Replies: 1
    Last Post: 2003-02-24, 06:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts