RCbenchmark script generation tools
Project description
pyrcbm
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 scriptcsv2rcbm
: convert a CSV file to an RCbencemark scriptsin_rcbm
: generate an RCbencemark script that outputs a sin wave
Installation
pipx install pyrcbm
Install from source:
python setup.py build install
Development
In a virtual environment or conda environment:
pip install build
pip install twine
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')
Convert a CSV file to an RCbencemark script (csv2rcbm)
usage: csv2rcbm [-h] [-c COLUMN] [-t TIME] [--avg AVERAGE] file.csv
Convert CSV to RCbenchmark script
positional arguments:
file.csv CSV input file
optional arguments:
-h, --help show this help message and exit
-c COLUMN, --col COLUMN
column name (which column to use)
-t TIME, --time TIME time column name (which column to use as time, default is 'timestamp')
--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.3.2.tar.gz
(6.1 kB
view details)
Built Distribution
File details
Details for the file pyrcbm-0.3.2.tar.gz
.
File metadata
- Download URL: pyrcbm-0.3.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c5f8e54a3453a309d2d2186a4bc80d8dcecee42c2e030a109cc699a7fdf939c |
|
MD5 | c7eec48c052ccbcafa58b9c832de6d9d |
|
BLAKE2b-256 | 25f54154a20c81dae339889aaa01acd56a9b106f75073b46da3fffe09f771b44 |
File details
Details for the file pyrcbm-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: pyrcbm-0.3.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e8b92b0d2676fd4a27e52d07beb50089541957afbf73b97808bdc0b0c2c01aa |
|
MD5 | 01ecd3db97358a537a40318c5f8c669d |
|
BLAKE2b-256 | 539dc43322c6e4ba6b412b180fe8e51b1596c5006ac03a6a4ff607e486f1e3a9 |