rrtk_proc

Crates.iorrtk_proc
lib.rsrrtk_proc
version
sourcesrc
created_at2024-11-30 21:19:03.657475
updated_at2024-11-30 21:19:03.657475
descriptionExperimental RRTK math! macro
homepage
repositoryhttps://github.com/UxuginPython/rrtk_proc
max_upload_size
id1466993
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(UxuginPython)

documentation

README

RRTK Procedural Macros

[HIGHLY EXPERIMENTAL] Procedural math! macro making the RRTK math streams easier to use. Requires RRTK 0.6 with the alloc feature enabled.

Do this:

let pid = math!(kp * error + ki * int + kd * drv);

instead of this:

let p = make_rc_ref_cell_reference(ProductStream::new([kp, error]);
let i = make_rc_ref_cell_reference(ProductStream::new([ki, int]));
let d = make_rc_ref_cell_reference(ProductStream::new([kd, drv]));
let pid = make_rc_ref_cell_reference(SumStream::new([p, i, d]));

The macro currently only supports Rc<RefCell>-variant References for output, but it can still take any Reference variant for its terms.

License: BSD 3-Clause

This basically means that you can do whatever you want as long as you give me attribution and you don't remove the license notices or use my name to endorse stuff I don't. Read the actual license for details though.

Commit count: 12

cargo fmt