Skip to content

Python Library for the InPhase Phase-Based Ranging System

License

Notifications You must be signed in to change notification settings

ibr-cm/python-inphase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InPhase Python Module

This python module contains all helper functions and classes that are helpful to run experiments with the InPhase system.

Installation

This copies the module to /usr/... so you can use it system-wide in Python 3 via import inphase:

  • Clone this repository
  • Change directory into the cloned repository
  • sudo python3 setup.py install

Installation for development

If you want to develop this module you can instruct the setup not to copy the module to /usr/... but just link it there. Any changes inside this repository are then available system-wide instantly:

  • sudo python3 setup.py develop (instead of install)

Check test coverage

  1. Run nosetests --with-coverage to run unit tests and generate a coverage report
  2. Run coverage report -m to display test coverage of the inphase module

Examples

Two example usages are provided in the examples folder.

live_distance.py connects via a serial interface to a sensor node and receives raw measurement data. It then computes the distance and prints it to the terminal.

testbed_example.py is a more complex example. It shows how to record measurement data for later use.

About

Python Library for the InPhase Phase-Based Ranging System

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages