![]() |
Parking Finder
The Parking Finder system is a smart parking solution designed to help drivers efficiently locate available
|
@breif Reads NMEA GPS sentences from a UART serial port and prints parsed fix data. More...
Go to the source code of this file.
Variables | |
| gps-sensor-data.ser | |
| @breif Open and configure the serial connection to the GPS module. | |
| gps-sensor-data.data = ser.readline().decode().strip() | |
| gps-sensor-data.msg = pynmea2.parse(data) | |
@breif Reads NMEA GPS sentences from a UART serial port and prints parsed fix data.
Opens a serial connection to a GPS module wired to the jetson. Waits for GGA sentences, parses them with pynmea2 and prints timestamp, latitude, longitude, altitude, and satelite count.
Definition in file gps-sensor-data.py.
| gps-sensor-data.data = ser.readline().decode().strip() |
Definition at line 53 of file gps-sensor-data.py.
| gps-sensor-data.msg = pynmea2.parse(data) |
Definition at line 58 of file gps-sensor-data.py.
| gps-sensor-data.ser |
@breif Open and configure the serial connection to the GPS module.
Configure the serial port Replace '/dev/ttyS0' with the correct serial device name for your Pi (e.g., '/dev/ttyUSB0' for a USB-to-serial adapter) Ensure the baudrate matches the device you are communicating with.
Definition at line 35 of file gps-sensor-data.py.