Giter Club home page Giter Club logo

troykagps's Introduction

GPS/GLONASS (Troyka-модуль)

Библиотека для Arduino, позволяющая считывать данные с GPS/GLONASS модулей:

Установка библиотеки

В Arduino IDE выберите пункт меню «Скетч» → «Импортировать библиотеку» → «Добавить библиотеку…». В появившемся окне выберите скачаный архив с библиотекой. Установка завершена.

Подробности и примеры работы — в статье на Амперка / Вики

troykagps's People

Contributors

igor605ds avatar per1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

altishchenko

troykagps's Issues

Compile error (dtostrf)

Hello!

Device: Arduino Nano 33 BLE

Trying to compile an example TroykaGPS/HardwareSerial/HardwareSerialGpsTest.ino

TroykaGPS.cpp: In member function 'int GPS::readParsing()':
TroykaGPS.cpp:188:5: error: 'dtostrf' was not declared in this scope
     dtostrf(lalitudeSec, 6, 4, latitudeSecStr);
     ^~~~~~~
TroykaGPS.cpp:188:5: note: suggested alternative: 'strstr'
     dtostrf(lalitudeSec, 6, 4, latitudeSecStr);
     ^~~~~~~
     strstr
Compilation error: Error: 2 UNKNOWN: exit status 1

readParsing() hangs forever

I have bought Troyka GPS shield and used example SoftwareSerial with Arduino UNO. I used wiring from the article
http://wiki.amperka.ru/products:troyka-gps-glonass-v2
But i have only connected +5v, Gnd and TRX pins. The example hangs at readParsing()... I have no idea what to do =(
I have imported TroykaGPS library to be able local modifications and saw that "char c = uartDeviceReadSerial();" always returns zero.

image

Deprecated coversion warning

With Arduino IDE 1.8.5:

C:\Users\tischenkoav\Documents\Arduino\libraries\TroykaGPS\src\TroykaGPS.cpp: In member function 'int GPS::readParsing()':

C:\Users\tischenkoav\Documents\Arduino\libraries\TroykaGPS\src\TroykaGPS.cpp:92:52: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         setHeaderState(c, &_findGNGGA, "$GNGGA");

                                                ^

C:\Users\tischenkoav\Documents\Arduino\libraries\TroykaGPS\src\TroykaGPS.cpp:93:52: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         setHeaderState(c, &_findGNRMC, "$GNRMC");

                                                ^

UTC correction

В функции getHour() и getTime()/getDate() внести поправку на часовой пояс. А именно написать алгоритм, по которому, при задаваемом пользователем смещении по часовому поясу, функции корректно отображали время и дату. В данный момент функции getTime()/getDate() работают только по Гринвичу, а getHour() со смещением на 3 часа вперед (т.е. от 03:00 до 27:00 (предположительно)).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.