BasicMicroUK - Forums

www.basicmicro.co.uk
It is currently Thu Apr 26, 2018 2:47 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: NANO WITH GPS
PostPosted: Fri Feb 20, 2015 9:15 pm 
Offline
Citizen

Joined: Thu Feb 06, 2014 7:37 pm
Posts: 19
HELLO: Today i am working with a UBLOX PAM-7Q gps module,and for testing i am using a nano 8.
I am using the $GPRMC, NMEA sentence.I can get and display,(using the studio terminal) things like date and time, but latitude and longitude not so easy....My question is how to serin the latitude and longitude and then send to terminal,I seem to get stuck at the decimal point??? ANY HELP MUCH THANKS...


PAUSE 1000
GPS_LAT VAR WORD'---LATITUDE---
GPS_LON VAR LONG'---LONGITUDE---

GPS_LAT = 0
GPS_LON = 0

MAIN:
SERIN P1,I9600,[WAIT ("$GPRMC,"),SKIP 9,STR GPS_LAT\8]
SEROUT S_OUT,I9600,[DEC4 GPS_LAT\4,13]'---ONLY LEFT OF DECIMAL---
GOTO MAIN


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO