Giter Site home page Giter Site logo

sbg-log-repairer's Introduction

sbg-log-repairer

Script / module for repairing issues in SBG Ellipse-E NMEA log


Docstring from repair_sbg_log.py module:

This script repairs the line feed issue in the SBG Ellipse-E NMEA log

SBG Ellipse-E supports 6 types of NMEA messages:
$GPGGA, $GPRMC, $GPZDA, $GPHDT, $GPGST, $PRDID

$PRDID message contains two issues. There is no checksum and there is
no line feed character. Checksum issue can't be repaired.

This script adds line feed to this message and saves the log to a new
file. This script can be usead as a module by calling repair() function
with one argument (log file) from another script/module.

Original NMEA log:
$GPGGA,114604.66,4913.707791,N,01634.297317,E,4,15,0.0,302.440,M,44.831,M,,*69
$GPRMC,114604.66,A,4913.707791,N,01634.297317,E,0.012,129.62,230217,4.25,E,R,S*5D
$GPZDA,114604.66,23,02,2017,,*67
$GPHDT,189.80,T*0D
$GPGST,114604.66,0.000,0.000,0.000,86.42,0.03,0.03,0.03*6A
$PRDID,-000.16,-000.47,185280$GPGGA,114606.90,4913.707794,N,01634.297321,E,4,15,0.0,302.449,M,44.831,M,,*6B
                             ^
                     line feed missing

Repaired NMEA log:
$GPGGA,114604.66,4913.707791,N,01634.297317,E,4,15,0.0,302.440,M,44.831,M,,*69
$GPRMC,114604.66,A,4913.707791,N,01634.297317,E,0.012,129.62,230217,4.25,E,R,S*5D
$GPZDA,114604.66,23,02,2017,,*67
$GPHDT,189.80,T*0D
$GPGST,114604.66,0.000,0.000,0.000,86.42,0.03,0.03,0.03*6A
$PRDID,-000.16,-000.47,185280
$GPGGA,114606.90,4913.707794,N,01634.297321,E,4,15,0.0,302.449,M,44.831,M,,*6B

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.