• I see some strange "scrolling" in the emulator with the GPS code that might be related to this.

    • copy & paste the GPS app
    • "upload" it
    • call onGPS

    You can fake the GPS event, just paste the following snippets on the left hand side. And then call it again.
    No GPS lock:

    onGPS({})
    

    And GPS lock:

    onGPS({ "lat": 12.21, "lon": 13.31, "alt": 14.41, "speed": 15.52,
      "course": 6,
      "time": new Date(),
      "satellites": 8, "fix": 1 })
    

    It's really strange, because the code starts with g.clear();. Is this the emulator?


    4 Attachments

    • 2019-12-05 08_36_57-Espruino Web IDE - Vivaldi.png
    • 2019-12-05 08_37_23-Espruino Web IDE - Vivaldi.png
    • 2019-12-05 08_37_35-Espruino Web IDE - Vivaldi.png
    • 2019-12-05 08_37_46-Espruino Web IDE - Vivaldi.png
About

Avatar for AkosLukacs @AkosLukacs started