Search Archive

Help needed - Conditional switching GPS on/off script

By konick · Jan 24, 2011in Hacks/Mods💬 1 posts👁️ 585 views
Posted Jan 24, 2011 · 23:38 UTC#1

I want to switch unit to another nav program while EZrider is working.

To free the GPS sensor port I used command GPS_STOP.

Here is example of script to start this program

 

<script sc_run_GARMIN>

GPS_STOP

run 'START_APPLICATION "\My Flash Disk\GARMIN\GARMIN.exe" ""'

GPS_START

PREVSTATE

 

< /script>

 

The problem is GPS_START is executed direcly after run 'START_APPLICATION... command and GPS port is busy - Garmin cannot use it.

Maybe someone can help me to find a way to start GPS sensor on exit of Garmin program.

Some kind of condicional command or script.

Of course I can do this manually, but it is not fun :)

Edited Jan 24, 2011 by konick