facebook

Accessing iPhone Accelerometer/GPS (Working Code Ex.)

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #337120 Reply

    mreade
    Member

    Wayne,

    It is a previous post on page one of this topic. Wildwex posted two examples, 1 for accelerometer and 1 for gps

    mreade

    #337994 Reply

    PaulLeBlanc
    Participant

    Thanks Wildwex. I have the gps example working fine on the Ipad. One problem, the data is only updates each 8-9 seconds and the speed never reads more than 29 mph. Other programs on the Ipad recieve gps data faster than that. Does anyone know of how to change the refresh rate gps data and change the 29 mph limit on speed?
    Paul

    #337995 Reply

    PaulLeBlanc
    Participant

    Belay the 29 mph speed limitation. It seems the output is meters/sec, so i’ll do some more checking tomorrow to confirm this! But it still only refreshes each 8-9 sec.

    #337996 Reply

    PaulLeBlanc
    Participant

    OK, i’ve found in the Phone Gap documention that this statement in needed to change rhe refresh time:

    Optional parameters to customize the retrieval of the geolocation.

    { maximumAge: 3000, timeout: 5000, enableHighAccuracy: true };

    Without this statement the maximumAge/refresh is 10000ms, BUT where do I put this statement? Help! Please show the exact syntax.

Viewing 4 posts - 16 through 19 (of 19 total)
Reply To: Accessing iPhone Accelerometer/GPS (Working Code Ex.)

You must be logged in to post in the forum log in