GPS Message Generator - Working Code

Discussion on projects that are created by users and posted on mikroElektronika website.
Post Reply
Author
Message
wvlegge@gmail.com
Posts: 5
Joined: 22 Jul 2023 09:37

GPS Message Generator - Working Code

#1 Post by wvlegge@gmail.com » 01 May 2024 04:40

Moved house a few years back and no longer receive GPS signals indoors.
I needed a GPS stream to test a parser to extract location and altitude from a GPS Click board.
Working code to generate the $GPGGA stream with:
1. Latitude and Longitude set by 10k, 10 turn pots on RB0 and RB1
2. Time code from the system clock in the correct format
3. Valid check-sum.
4. Output at 9600Bd on UART2 (RF4 and RF5)
A typical message from the GPS Click(UBLOXLEA6S) looks like:
$GPGGA,050000.00,3454.21474,S,11714.51618,E,1,03,12.76,113.8,M,-30.6,M,,*5D
The setup is:
EasyPIC Fusion v7 with PIC32MX795F512L at 80Mhz
Easy TFT
Looping LED on RG0
There is a sketch of the conversion of lat and long to metres East/West and North/South attached. OK and accurate for travel of about 10kms
Most of the effort went into the business of x,y,latitude,longitude,atan2 and all the signs and scaling!
Other GPS modules may have a difference in the location format: for example DDDmm.mmmm instead of DDDmm.mmmmm

Good Luck - Bill Legge in Australia
Just found out that I posted a working version but with two errors - new attachment on 2/5/24. sorry to the one download
with the dodgy code.
WVL_Fusion_GPS_Driver (2).zip
(1.31 MiB) Downloaded 5 times

Post Reply

Return to “User Projects”