GPS display values
RoboTuna
Posts: 25
I have been struggling with other parts of the program that I didn't think of testing this part of it. I am able to receive the GPS data from the remote unit and display it in the PST off the base unit. But i can not show the Base GPS location for some reason I am calling it out just like I do in the demo program but it is not showing anything. I am using the VPN1513 and the Prop BOE with Xbee Pro S1 to communicate. This is the code on the base unit that I am running.
I just dont understand what is wrong. I can run the full GPS demo that shows all the data on the GPS.
Just_Auto - Archive [Date 2013.03.10 Time 21.22].zip
OBJ XB : "XBee_Object" PST : "FullDuplexSerialPlus" GPS : "GPS_SmartMode" FS : "FloatString" VAR Long BLon, BLat, ULat, ULon, DataIn CON _clkmode = xtal1 + pll16x _xinfreq = 5_000_000 XB_Rx = 3 XB_Tx = 2 Baud = 9600 PUB Go | A PST.start(31, 30, 0, Baud) XB.start (XB_Rx, XB_TX, 0, Baud) GPS.start(GPS#EASTERN_TIME, TRUE) repeat A := XB.Rx IF A == 11 Location Display PRI Location DataIn := XB.RxTime(100) If DataIn == "!" ULat := XB.RxDecTime(3000) ULon := XB.RxDecTime(3000) BLat := GPS.GetLatitude BLon := GPS.GetLongitude PRI Display PST.tx(1) PST.Str(String("User Location: ")) PST.Str(FS.FloatToString(ULat)) PST.Str(string(",")) PST.Str(FS.FloatToString(ULon)) PST.tx(13) PST.Str(String("Bot Location: ")) PST.str(FS.FloatToString(BLat)) PST.Str(string(",")) PST.str(FS.FloatToString(BLon))
I just dont understand what is wrong. I can run the full GPS demo that shows all the data on the GPS.
Just_Auto - Archive [Date 2013.03.10 Time 21.22].zip