rrtk_proc 0.1.0-alpha.0

Experimental RRTK math! macro
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 10.03 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 247.31 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • UxuginPython/rrtk_proc
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • UxuginPython

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.