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:
Jon Trulson
2016-08-25 13:54:49 -06:00
committed by Noel Eck
parent 46460e20d9
commit a040f51cda
19 changed files with 152 additions and 155 deletions

View File

@ -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)

View File

@ -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))