Hi All,
I'm writing a little app that involves using the accelerometer and gps hardware on my iPhone (and possibly the gyroscope). Does anybody know what the sample rate is set to within Gideros for these as I can't find any way to set them via the current API?
To the Gideros guys. I think we could get access to this via a plugin but since you guys have already done the hard work would it be easy to add?
AND as a general note GREAT WORK, love Gideros. I'm a converted individual from another LUA based solution which I'm sure your aware of
Thanks for any help
Pete
Comments
Done a little more homework on this and have found a few references stating that iOS (or the underlying hardware, not sure which exactly) locks the GPS sample rate at 1Htz but I'd still like to know what sample rate the accelerometer & gyroscope are set to run at by Gideros please?
Something that might be more of a problem is the lack of access to the underlying GPS speed which will be more a LOT more accurate then basing it on just a positional approach (I believe it is calculated using the GPS doppler data). Could it be exposed Gideros team?
Thanks again
Pete
Accelerometer
------------
On iOS, accelerometer sample rate is set to 1/60 sec ~= 16 miliseconds
On Android, accelerometer sample rate is set as SENSOR_DELAY_GAME (20 milliseconds)
Gyroscope
---------
On iOS, gyroscope rotation rate is read from sensor at every frame (1/60 sec ~= 16 miliseconds)
On Android, gyroscope rotation rate sample rate is set as SENSOR_DELAY_GAME (20 milliseconds)
GPS
---
For GPS you can set the accuracy and threshold by using the functions Geolocation:setAccuracy and Geolocation:setThreshold
http://www.giderosmobile.com/documentation/reference_manual.html#Geolocation:setAccuracy
http://www.giderosmobile.com/documentation/reference_manual.html#Geolocation:setThreshold
And I've added getting GPS speed to the roadmap: http://bugs.giderosmobile.com/issues/105
Likes: avo
Thanks for your excellent answers and thanks for adding the exposure of GPS speed to the roadmap Look forward to seeing that.
Pete