Skip to content

Adding gpsd support #171

@Gustavvr

Description

@Gustavvr

I am intersted in adding gpsd support to meshing around. I run my meshing around node in my car on a raspi

Is there commuity intrest for this feature and would the maintainers be interested in adding it as a feature.

If so , any tips or suggestions would be appreciated.

The python code is quite simple and if a maintainer would like a gps USB testing module ($14 amazon). I would be happy to provide that rather then learning the code for meshing around my self. LOL.

In either case LMK.

Thanks for any consideration.

Gustav

Below is some sample code for how simple it can be.

`#!/usr/bin/env python3

import gps

session = gps.gps(mode=gps.WATCH_ENABLE)

try:
while 0 == session.read():
if not (gps.MODE_SET & session.valid):
# not useful, probably not a TPV (time, position, velocity message
continue

    print('Mode: %s(%d) Time: ' %
          (("Invalid", "NO_FIX", "2D", "3D")[session.fix.mode],
           session.fix.mode), end="")
    # print time, if we have it
    if gps.TIME_SET & session.valid:
        print(session.fix.time, end="")
    else:
        print('n/a', end="")

    if ((gps.isfinite(session.fix.latitude) and
         gps.isfinite(session.fix.longitude))):
        print(" Lat %.6f Lon %.6f" %

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions