![](/media/cache/profiles/b5c4ec91390a6fbccf8d918d443563ed.jpg.50x50_q85.jpg)
aconno gnss simple example for U-blox gnss dev board.
Fork of gnss by
Diff: gnss.cpp
- Revision:
- 3:2a1cd49ead85
- Parent:
- 2:b10ca4aa2e5e
- Child:
- 4:82308d600690
diff -r b10ca4aa2e5e -r 2a1cd49ead85 gnss.cpp --- a/gnss.cpp Thu Apr 13 14:45:17 2017 +0000 +++ b/gnss.cpp Thu May 04 16:29:39 2017 +0000 @@ -25,13 +25,9 @@ GnssParser::GnssParser(void) { - // Create the power pins but set everything to disabled - _gnssPower = NULL; + // Create the enable pin but set everything to disabled _gnssEnable = NULL; -#if defined GNSSPWR && defined TARGET_UBLOX_C030 /* TODO */ - _gnssPower = new DigitalInOut(GNSSPWR, PIN_OUTPUT, OpenDrain, 0); -#endif #if defined GNSSEN && defined TARGET_UBLOX_C030 /* TODO */ _gnssEnable = new DigitalInOut(GNSSEN, PIN_OUTPUT, PushPullNoPull, 0); #endif @@ -39,12 +35,6 @@ GnssParser::~GnssParser(void) { - // Set the power pins to lowest power state before ending - if (_gnssPower != NULL) { - *_gnssPower = 0; - delete _gnssPower; - } - if (_gnssEnable != NULL) { *_gnssEnable = 0; delete _gnssEnable; @@ -60,11 +50,6 @@ void GnssParser::_powerOn(void) { - // Power up and enable the module - if (_gnssPower != NULL) { - *_gnssPower = 1; - } - wait_ms (1); if (_gnssEnable != NULL) { *_gnssEnable = 1; }