View Single Post
juise-'s Avatar
Posts: 186 | Thanked: 192 times | Joined on Jan 2010 @ Finland
#50
Originally Posted by ndi View Post
My graph is wild. At default trigger I get spots of red, no green. Green appears at 31 trigger in player. Also, my graph looks like a forest, all peaks. I'm quite sure my accelerometer works, I've used it before with success.
Check out you haven't changed the hostname on you N900. The app seems to use hostname to determine whether it is running on real hardware or not, and generates random data if it thinks it's not on the N900.

Edit: Here's the piece of code reponsible for checking the hostname (main.py, line 52 ->)

Code:
    #if not on the N900, a acceleration sensor has to be simulated
    uname=os.uname()
    if(uname[1]=="Nokia-N900"): data.demo=0	#runs on real N900 hardware
    else: data.demo=1	#runs on other hardware/OS
My short fix: add following right after above block:
Code:
    data.demo=0
os.uname()[1] reads 'bulletproof' on my N900.
__________________
Trout have underwater weapons.

Last edited by juise-; 2010-07-01 at 14:05.
 

The Following 2 Users Say Thank You to juise- For This Useful Post: