getting gps data is slow
howvin
Posts: 1
I have the parallax gps,·and I am connecting it with a stamp BS2px24.· I taking gps data and passing it with compass data to a computer.· I'm passing long, lat, time, ·attitude, and heading (from the compass). The whole cycle takes about 4 secounds.· I need gps data a least once a secound.· I'm not using debug but serial out.·· Is there anyway to speed up the data collection?
Get_Speed:
SEROUT GPSio, T4800, [noparse][[/noparse]"!GPS", GetSpeed]
SERIN GPSio, T4800, 3000, no_gps, [noparse][[/noparse]speed.HIGHBYTE, speed.LOWBYTE]
'DEBUG CR,"speed:", DEC (speed), CR
RETURN
Get_Speed:
SEROUT GPSio, T4800, [noparse][[/noparse]"!GPS", GetSpeed]
SERIN GPSio, T4800, 3000, no_gps, [noparse][[/noparse]speed.HIGHBYTE, speed.LOWBYTE]
'DEBUG CR,"speed:", DEC (speed), CR
RETURN
Comments
A few other questions until then:
How many GPS variables do you really need to get from the GPS unit and transmit out?
How frequently is the GPS unit set to output? (Once a second, once every 4 seconds, etc?)
Can you increase the baud rate that you input the data and/or serout the data?
Dave