From 527e4396858bc084ede75cfa30fed4e5f93e985a Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Tue, 19 May 2015 21:17:38 +1000 Subject: Update telelogger.ino --- telelogger/telelogger.ino | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/telelogger/telelogger.ino b/telelogger/telelogger.ino index e2bf1b9..479d840 100644 --- a/telelogger/telelogger.ino +++ b/telelogger/telelogger.ino @@ -1,9 +1,16 @@ -/************************************************************************* -* Arduino GPS/OBD-II/G-Force Data Logger +/****************************************************************************** +* Vehicle Telematics Data Transmitter Sketch (SIM900/GPRS) +* Developed by Stanley Huang * Distributed under GPL v2.0 -* Copyright (c) 2013 Stanley Huang -* All rights reserved. -*************************************************************************/ +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +* THE SOFTWARE. +******************************************************************************/ #include #include @@ -520,14 +527,6 @@ private: } bool logGPSData() { -#if 0 - char *p; - write("ATGPS\r"); - if (receive(gpsline) == 0 || !(p = strstr(gpsline, "$GPS"))) - return false; - //SerialRF.println(buf); - return true; -#endif if (getGPSData(&gd) && gd.lat && gd.lon && gd.time != lastGPSTime) { logData(PID_GPS_TIME, gd.time); logData(PID_GPS_ALTITUDE, gd.lat); @@ -567,12 +566,10 @@ private: static COBDLogger logger; - void setup() { logger.begin(); logger.initSender(); - logger.setup(); } -- cgit v1.2.3