Giter Site home page Giter Site logo

More NMEA data about avnav HOT 3 CLOSED

wellenvogel avatar wellenvogel commented on August 30, 2024
More NMEA data

from avnav.

Comments (3)

free-x avatar free-x commented on August 30, 2024

Hi Andreas,

i'm using sometimes for personal purposing pynmea2 library (https://github.com/Knio/pynmea2)

For example:

#!/usr/bin/env python

import sys
import pynmea2

if len(sys.argv) < 2:
   f=sys.stdin
else:
   f = open(sys.argv[1])

for line in f:
  if line.startswith("!"):
    continue
  elif line.startswith("$"):
    msg = pynmea2.parse(line)
    if type(msg) is pynmea2.types.talker.RMC:
      print "RMC %s%s %s%s sog=%s cog=%s" % ( msg.lat,msg.lat_dir, msg.lon, msg.lon_dir, msg.spd_over_grnd, msg.true_course)
    elif type(msg) is pynmea2.types.talker.GGA:
      print "GPSFix at %s%s %s%s. Sat %s in use %d quality" % ( msg.lat,msg.lat_dir, msg.lon, msg.lon_dir, msg.num_sats, msg.gps_qual)
    elif type(msg) is pynmea2.types.talker.GLL:
      print "ValidStatusFix %s%s %s%s" % ( msg.lat,msg.lat_dir, msg.lon, msg.lon_dir)
    elif type(msg) is pynmea2.types.talker.VTG:
      print "SOG %f" % msg.spd_over_grnd_kts
    elif type(msg) is pynmea2.types.talker.DBT:
      print "Depth: %s" % msg.depth_meters
    elif type(msg) is pynmea2.types.talker.MWV:
      print "Wind: %s %s %s%s" % ( msg.reference, msg.wind_angle, msg.wind_speed, msg.wind_speed_units)

Would that way be helpful?

from avnav.

wellenvogel avatar wellenvogel commented on August 30, 2024

Looks promising. Thanks, I will try it out. Would like to go away from gpsd anyway...

from avnav.

wellenvogel avatar wellenvogel commented on August 30, 2024

With 20191223 the infrastrcuture is there. The plugin interface provides the functions. Documentation is still ongoing.

from avnav.

Related Issues (20)

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.