| Reply | « Previous Thread | Next Thread » |
|
i have a python program which uses sensor module but its not present in python 1.9.4 so how to access accelerometer in python for 5800
|
| apacheking |
| View Public Profile |
| Find all posts by apacheking |
|
Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
It is present in PyS60 1.9.4. import sensor works just fine. The documentation has a table of devices and available sensors and the 5800 is there. There's also an example. Check section 3.9 of the documentation.
|
|
Hi,do anyone have a clear idea in handling shake in 5800 with the help of accelerometer sensor?i am developing the application on Symbian.i went through some discussion threads.but what i got is not working properly.if anyone can help me,please do respond.
thanks in advance. |
|
Join Date: Oct 2006
Posts: 2,541
Location: Helsinki, Finland
Offline
Forum Nokia Champion
|
|
|
Quote:
![]() Maybe you should narrow your search for Symbian Forums or wait for somebody to answer your queries that you already posted in the Symbian section. Good Luck! - Neil R.Bhasme - |
|
bogdan bro i donno what u mean as documentation can u link me bro
![]() |
| apacheking |
| View Public Profile |
| Find all posts by apacheking |
|
sensors = sensor.sensors()
this dont works ![]() |
| apacheking |
| View Public Profile |
| Find all posts by apacheking |
|
Quote:
Go to Start->Program files->Python for S60->PyS60 Documentation. |
|
Also I had recommend this literature as reference for using the sensor module.
http://croozeus.googlepages.com/Sensor_Sample_20.pdf |
|
pankaj bro still sensors = sensor.sensors()is giving error
|
| apacheking |
| View Public Profile |
| Find all posts by apacheking |
|
Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
What does the error say?
|
|
there is no module object called sensor
![]() |
| apacheking |
| View Public Profile |
| Find all posts by apacheking |
|
Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
I tried to import sensor on a 5800 and it worked. So you're saying that
Code:
import sensor sensors = sensor.sensors() |
|
bro the error i got after ur example was attribute error:"module object has no attribute sensors
|
| apacheking |
| View Public Profile |
| Find all posts by apacheking |
|
Quote:
Use the dir(sensor) command to get a list of all available functions/attributes. FYI, the sensor module compatibility in the 1.9.x releases and 2.0 release is not guaranteed. |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
You can download the Sensor Module Specifications documentation provided by the PyS60 team. It explains how to use each sensor available in the 5800 XM.
Hope it helps, Rafael.
Last edited by Rafael T. : 2009-05-04 at 18:24.
Reason: corrected link
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Control Nokia 5800 image display using voice activation | jtullis | Python | 0 | 2009-03-03 23:51 |
| Capturing and Streaming Video / Audio on 5800 in S60 Application | MBFonz | Symbian Media (Graphics & Sounds) | 6 | 2009-02-24 17:11 |
| Capturing and Streaming Video / Audio on 5800 for S60 | MBFonz | Streaming and Video | 1 | 2009-02-13 01:10 |
| Capturing Video / Audio on 5800 in S60 Application | MBFonz | General Discussion | 1 | 2009-02-13 01:08 |