Coder Social home page Coder Social 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

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.