Skip to main content

RCbenchmark script generation tools

Project description

pyrcbm

GitHub Workflow Status PyPI PyPI - Python Version

This repository contains command line tools to generate RCbenchmark scripts.

The scripts provided in this package are:

  • ulog2rcbm: convert PWM outputs from a ULog file to an RCbencemark script
  • sin_rcbm: generate an RCbencemark script that outputs a sin wave

Installation

Install with pipx:

pipx install pyrcbm

Install from source:

python setup.py build install

Development

In a virtual environment or conda environment:

python setup.py develop

# uninstall with `python setup.py develop -u`

Scripts

Convert PWM outputs from a ULog file to an RCbencemark script (ulog2rcbm)

usage: ulog2rcbm [-h] [-m MULTI] [-a ACTUATOR] [--avg AVERAGE] file.ulg

Convert ULog to RCbenchmark script

positional arguments:
  file.ulg              ULog input file

optional arguments:
  -h, --help            show this help message and exit
  -m MULTI, --multi MULTI
                        multi_id (which actuator_outputs to use, '0' or '1', default is '0')
  -a ACTUATOR, --actuator ACTUATOR
                        which actuator's output to use ('0' - '15', default is '0')
  --avg AVERAGE         sample average (default is '1')

Generate an RCbencemark script that outputs a sin wave (sin_rcbm)

usage: sin_rcbm [-h] [-o OFFSET] [-a AMPLITUDE] [-f FREQUENCY] [-p PHASE] [-r] [--avg AVERAGE]

Generate a RCbenchmark script that produces sinusoidal wave

optional arguments:
  -h, --help            show this help message and exit
  -o OFFSET, --offset OFFSET
                        offset of the wave ('1000' - '2000', default is '1500')
  -a AMPLITUDE, --amplitude AMPLITUDE
                        amplitude, the peak deviation of the wave from offset ('0' - '500', default is '500')
  -f FREQUENCY, --frequency FREQUENCY
                        angular frequency in radians per second (default is '1')
  -p PHASE, --phase PHASE
                        phase, specifies in radians where in its cycle the oscillation is at t=0 (default is '0')
  -r, --rampup          ramp up from 1000 to initial value (disabled by default)
  --avg AVERAGE         sample average (default is '1')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrcbm-0.2.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

pyrcbm-0.2.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pyrcbm-0.2.0.tar.gz.

File metadata

  • Download URL: pyrcbm-0.2.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for pyrcbm-0.2.0.tar.gz
Algorithm Hash digest
SHA256 33357bba00b1ca386fa6d8d227c516cef03137c8c067be3272a720500cd429bb
MD5 85a55d8da7c522cd792555cdcaadec0b
BLAKE2b-256 5c4443772b602bb05fe6012c330849113929ab0cf89256056127a956d1c41ae0

See more details on using hashes here.

File details

Details for the file pyrcbm-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyrcbm-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for pyrcbm-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ed3623645bbee9fabd5a7051e44438ae3248a2d63b787cce13e641e137b5515
MD5 13c897fd0a01fdb3f21fbd0f0b60c327
BLAKE2b-256 67670646cfb90e34f676f25da652ee797d29a861b00f1c99c2306242e2a4e346

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page