Giter VIP home page Giter VIP logo

igps's Introduction

GPS MOOS-Driver (iGPS)

This is a simple driver for a serial GPS module. It is provided as an example and a starting point for MOOS-Drivers developers.

Usage:

iGPS config.moos

The configuration file must contain:

ProcessConfig = iGPS
{
   AppTick   	= 4
   CommsTick 	= 4

   PORT  		= /dev/ttyUSB0 // serial port number where the GPS is plugged in
   BAUDRATE 	= 4800 // the baudrate to use
   MAX_RETRIES 	= 5 // max retries before failure
   PUBLISHRAW 	= true // plushing raw data from the GPS

   // Coordinates of the origin required for MOOS-geodesy
   LatOrigin    = 44.095738
   LongOrigin   = 9.865190
}

An example is provided in the src folder.

Installation:

Download the source:

First clone the repository locally:

git clone https://github.com/MOOS-Drivers/iGPS

Compile it:

Then change to the recently created directory:

cd iGPS

And launch the build script:

./build.sh

Install it:

You can now either install it permanently on your system:

sudo make install

Or add the recently generated binary folder to your path:

export PATH=$PATH:$PWD/bin

Test it:

A test script is provided in bin/launch_test_iGPS.sh.

Dependencies

Please make sure that moos-ivp is already compiled and installed.

A cmake is also required.

Structure of the project

├── bin 
│   ├── clean_test_iGPS.sh
│   ├── launch_test_iGPS.sh
│   └── meta_test.moos
├── build.sh 
├── CMakeLists.txt
├── LICENSE
├── README.md
└── src 
    ├── CMakeLists.txt
    ├── GPS.cpp
    ├── GPS.h
    ├── GPS_Info.cpp
    ├── GPS_Info.h
    ├── iGPS.moos
    └── main.cpp

The bin folder contains the tests scripts (and the binaries).

The src folder contains the source of the project.

igps's People

Contributors

msis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

igps's Issues

GPS messages are getting truncated when reading from the serial port

GPS messages are getting truncated when reading from the serial port.

This issue is the read from the serial port is timing out before the entire message is received. This may be due to running on a Raspberry Pi or older CPUs and a slow baud rate (4800bps)

See MOOS-drivers/iGPS/src/GPS.cpp, line 177:

if (!m_Port.GetTelegram(sMessage,0.5))
{
  return false;
}

Increasing this time to a few seconds fixed our issue. However, ideally this timeout value would be something configurable from the MOOS config block.

Unable to install

Attempted to run sudo make install which said make: *** No rule to make target 'install'. Stop.

Attempting to export the path using export PATH=$PATH:$PWD/bin appears to export the path, but I am unable to run the code in the terminal as iGPS. Furthermore, when I attempt to run the test (after modifying the meta_test.moos file), it is unable to find the GPS. What else can I do to get this to run/what has to be fixed? Thank you!

PS: I installed

  • MOOS-IvP (tested and runs)
  • libplib-dev
  • CMake

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.