Thread
:
python - ctypes - gps
View Single Post
dhcmega
2010-04-01 , 23:23
Posts: 217 | Thanked: 20 times | Joined on Jan 2010
#
1
Hi all
Can any one explain me in a few words what I am talking about?
I think that I understand that ctypes permit python to use external resources and, i.e. use C code with in the python code.
I have created (mostly copy/paste from examples) a little program that shows time stamp and speed in an endless loop.
The thing is that location.py can query gps reported speed as a max rate of one query per second, so, I sometimes get 10kmh increments and I can not create a detailed graphic, of the speed of my car from 0 to 100kmh (60mph) over time. I want to create an acceleration curve over time. I will also try shifting the gearbox at a different rpms and see how it affects acceleration.
The point is, how can I get speed from gps faster than 1 time per second? I think the answer is going around location.py limitation and that is using ctypes, but I don't know where to begin. I have red a few tutorial but I don't fully understand it yet and I have no idea at all of how to query gps info via ctypes.
Here is my code:
http://talk.maemo.org/showthread.php?t=47473
Any help is welcome
dhcmega
Quote & Reply
|
dhcmega
View Public Profile
Send a private message to dhcmega
Find all posts by dhcmega