This is an example F´ driver for NEMA compatible GPS modules built in the F´ GPS Tutorial. The tutorial specifically targets the raspberry pi but this application should work on any linux system.
- Run
git clone --recurse-submodules
to checkout this repository and its submodules. - If you're cross compiling, change the default toolchain in
GpsApp/settings.ini
to the correct target (ex.raspberrypi
). - In the
GpsApp
directory, runfprime-util generate
, thenfprime-util build
to build the app.
The GpsApp
binary will be in the bin
directory and after copying to the target can be run
directly. It defaults to listening to a GPS on the /dev/ttyUSB0
serial port, but the -d
argument
can be used to manually set the GPS serial port. The -a
sets the location of the GDS to connect
to.
# On target
$ ./GpsApp -a <GDS IP> -d /dev/ttyUSB0
# On host computer
$ fprime-gds -n --dictionary GpsApp/Top/GpsAppTopologyAppDictionary.xml