mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
nmea_gps: renamed vk2828u7 to nmea_gps
This driver will serve as a generic module for grabbing NMEA data from various GPS devices via a serial interface. ublox6 will also be removed in favor of using this driver going forward. Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
@ -274,7 +274,7 @@ add_example (l3gd20)
|
||||
add_example (l3gd20-i2c)
|
||||
add_example (bmx055)
|
||||
add_example (ms5611)
|
||||
add_example (vk2828u7)
|
||||
add_example (nmea_gps)
|
||||
add_example (mma7361)
|
||||
add_example (bh1750)
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include <iostream>
|
||||
#include <signal.h>
|
||||
|
||||
#include "vk2828u7.hpp"
|
||||
#include "nmea_gps.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -46,9 +46,9 @@ int main()
|
||||
|
||||
//! [Interesting]
|
||||
|
||||
// Instantiate a VK2828U7 sensor on uart 0 at 9600 baud with enable
|
||||
// pin on D3
|
||||
upm::VK2828U7 *sensor = new upm::VK2828U7(0, 9600, 3);
|
||||
// Instantiate a NMEA_GPS sensor on uart 0 at 9600 baud with enable
|
||||
// pin on D3. If you do not need an enable pin, you can specify -1.
|
||||
upm::NMEAGPS *sensor = new upm::NMEAGPS(0, 9600, 3);
|
||||
|
||||
// loop, dumping NMEA data out as fast as it comes in
|
||||
while (shouldRun && sensor->dataAvailable(5000))
|
Reference in New Issue
Block a user