endpoint C207 radio support
Dependents: mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular
Diff: MBEDUbloxGPS.cpp
- Revision:
- 12:29ff8e9e0cbe
- Parent:
- 8:ad37c7157d3c
- Child:
- 15:10c06c3edfc7
diff -r 9f031bd67811 -r 29ff8e9e0cbe MBEDUbloxGPS.cpp --- a/MBEDUbloxGPS.cpp Wed Apr 02 16:08:40 2014 +0000 +++ b/MBEDUbloxGPS.cpp Wed Apr 02 18:16:03 2014 +0000 @@ -36,11 +36,11 @@ } // default constructor - MBEDUbloxGPS::MBEDUbloxGPS(ErrorHandler *error_handler, void *endpoint) : BaseClass(error_handler,endpoint) { + MBEDUbloxGPS::MBEDUbloxGPS(ErrorHandler *error_handler, void *endpoint,C027 *c027) : BaseClass(error_handler,endpoint) { this->m_gps_poll_thread = NULL; - this->m_c027 = new C027(); - this->m_gps = new I2C(GPSSDA, GPSSCL); - this->m_gps->frequency(UBLOX_GPS_FREQ); + this->m_c027 = c027; + //this->m_gps = new I2C(GPSSDA, GPSSCL); + //this->m_gps->frequency(UBLOX_GPS_FREQ); this->m_latitude = 0; this->m_longitude = 0; _ublox_gps_instance = this;