![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Example of reading the GPS data: http://www.basic4ppc.com/files/GPSExample.zip
Once you've got the coordinates, depending on your map you could convert them to UTM format using the GPS library. Now you need to calculate the location on the map (the image) and draw it. |
|
|||
|
Erel,
![]() I wrote an application which sends the coordinate and speed via sms when the speed reaches certain value. However, I don't need a continuous monitoring. All I want is the GPS check the speed every 15 minutes and if the speed exceeds the limit, it will send the sms. How to turn of the GPS during the idle time before the next 15 minute time elapses? I find my PPC battery drains out very quickly when my application runs. I guess the cause is from the GPS being turned on and receiving satellite signals continuosly. Please enlighten! |
|
|||
|
Erel,
Good question to me. For this purpose, I keep the device on while turning the backlight OFF (from Settings). I know this only saves the battery from using it power for the backlight. Still it consumes power because the device is not OFF. Could you suggest how to turn off the device while maintaining the application runs in the background? The device shall also be able to be turned ON again after a predefined time. Homework.... ![]() |
|
|||
|
Erel,
Please have a look at my program. I activate the "Hardware1.RunAppAtTime" based on Timer1_Tick. Soon after I run the program, I switch off the device (Not to power off ya..) Then I wait, but the Hardware1.RunAppAtTime(AppPath & "\TurnOtherAppON.exe", x) never turns on the TurnOtherAppON.exe. What is the best sub to put the Hardware1.RunAppAtTime? Should it be at the APP_START? Please enlighten! ![]() Sub Globals End Sub Sub App_Start AddForm("Form1","Form1") Form1.Show Hardware.New1 AddTimer("Timer1") Timer1.Enabled = True Timer1.Interval = 60000 AddTimer("Timer2") Timer2.Enabled = True Timer2.Interval = 1000 End Sub Sub Timer1_Tick x = TimeParse("17:10") x = DateAdd(t,0,0,0) Hardware1.RunAppAtTime(AppPath & "\TurnOtherAppON.exe", x) End Sub Sub Timer2_Tick Sound("tick.wav") End Sub |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| D-Pad Navigation Sample (?) | Dave Mitchell | Questions & Help Needed | 1 | 05-14-2008 05:29 AM |
| D-Pad Navigation | Dave Mitchell | Questions & Help Needed | 4 | 05-02-2008 10:46 PM |
| Forum Navigation | dennishea | Questions & Help Needed | 1 | 02-15-2008 06:52 PM |
| Desktop IDE: Sub tree navigation minimal bug | Woinowski | Bug Reports | 0 | 01-16-2008 07:20 AM |