Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A portable C library implementing GNSS related functions and algorithms.

License

NotificationsYou must be signed in to change notification settings

swift-nav/libswiftnav

Repository files navigation

CIQuality Gate Status

libswiftnav

Libswiftnav (LSN) is a platform independent library that implements GNSS utility functions for use by software-defined GNSS receivers or software requiring GNSS functionality. It is intended to be as portable as possible and is written in standards compliant C with no dependancies

LSN does not provide any functionality for communicating with Swift Navigation receivers. Seelibsbp to communicate with receivers using Swift Binary Protocol (SBP).

To checkout the library run the following commands in an appropriate directory

git clone git@github.com:swift-nav/libswiftnav.git

Which should checkout the source code

Build

To build the library, run the following commands from the LSN root directory - LSN depends on the latest xcode for MacOSX and cmake

mkdir ./buildcd ./buildcmake ../make -j4

Build on Docker

Thelibswiftnav docker image is using a ECR-hosted base imageswift-build that contains most swift build tools.

Getswift-build base image from ECR

To be able to pull this base image from ECR, you need to log into AWS (select the SSO-Build-User role) and then intoECR:

aws-google-auth -S 115297745755 -I C02x4yyeb -p default -a -u <username>@swift-nav.com$(aws ecr get-login --no-include-email --region us-west-2 --registry-ids 571934480752)

Build theswift-build base image yourself (without ECR)

Alternatively to the AWS/ECR pull, you can build the base image yourself from the Dockerfile.base:(replace <tag> with the one used by Dockerfile's FROM statement, e.g. 2018-12-20)

docker build -t 571934480752.dkr.ecr.us-west-2.amazonaws.com/swift-build:<tag> modules/docker-recipes/swift-build

Build thelibswiftnav image and run container

Now you can build and run the libswiftnav image with

docker-compose build libswiftnavdocker-compose run libswiftnav

Run a shell in docker

make docker
  • Starts a shell in a container, with the workspace mounted as /mnt/workspace.

Run build in docker

make docker-build

Run clang-format

make docker-lint

About

A portable C library implementing GNSS related functions and algorithms.

Resources

License

Stars

Watchers

Forks

Contributors51


[8]ページ先頭

©2009-2025 Movatter.jp