Giter Club home page Giter Club logo

lb-gps-linux's Introduction

Prerequisites

gcc g++

make is optional depending on how you want to build it.

Build Instructions Using Make

run make

Build Instructions Using GCC

For the register setting utility: gcc -o lb-gps lb-gps-linux.cpp GPSSettings.cpp -lstdc++

For the status utility: gcc -o lb-gps-status lb-gps-linux-status.cpp -lstdc++

Usage for lb-gps

usage: lb-gps /dev/hidraw?? [--n31] [--n2_ls] [--n2_hs] [--n1_hs] [--nc1_ls] [--nc2_ls] [--bw]
      --gps:        integer within the range of 1 to 5000000
      --n31:        integer within the range 1 to 2^19
      --n2_ls:      even integer within the range 2 to 2^20
      --n2_hs:      from the range [4,5,6,7,8,9,10,11]
      --n1_hs:      from the range [4,5,6,7,8,9,10,11]
      --nc1_ls:     even integer within the range 2 to 2^20
      --nc2_ls:     even integer within the range 2 to 2^20
      --bw:         bandwidth integer within the range 0 to 15
      -- The following parameters can only be changed exclusively --
      --ds:         drive strength (in mA) from the range [8, 16, 24, 32]

Usage for lb-gps-status

usage: lb-gps-status /dev/hidraw??

The command shows current lock status, and returns the following values: For Sat unlocked, return value is 1, for PLL unlocked the value is 2, for both unlocked the value is 3. 0 is returned if both are locked.

Compiling on the Raspberry Pi

The provided hidapi-hidraw library in this repository is not compatible with the ARM architecture of the Raspberry Pi. To be able to compile gpsdo-status on the Pi, you'll need to fetch the correct version and provide a link to it before calling make.

To do so:

sudo apt update
sudo apt install libhidapi-hidraw0 libhidapi-libusb0
ln -s /usr/lib/arm-linux-gnueabihf/libhidapi-hidraw.so.0
make

lb-gps-linux's People

Contributors

csylvain avatar hollie avatar simontheu avatar

Watchers

 avatar  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.