![]() |
2012-11-18
, 18:21
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#2
|
The Following User Says Thank You to qwazix For This Useful Post: | ||
My code is like this. I just initialize an instance of this class from another, (pAccelerometer *a = new pAccelerometer(); ) but the filter method never runs.
I can't use a signal to be notified when data changes as I am using the data runtime, and timing is important. In the documentation it says that filters are the way to go.
I also tried just creating a QAccelerometer instance and then get the readings in an "infinite" loop but it always returns 0.
Thanks
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jolla –– contactlaunch –– timenow
Nemo UX blog: Grog
My website: qwazix.com
My job: oob
Last edited by qwazix; 2012-11-18 at 17:28.