Skip to main content

tune

Function tune 

Source
pub(crate) fn tune(args: &Args, tr: &Translations) -> Result<(), Failure>
Expand description

tune <machine> [--phase-margin DEG] [--gain-margin DB] [--no-notch]: per motor the largest velocity gain at which the least phase and gain margin over the cycle’s poses meet the targets (35 degrees and 6 dB by default), with Tn and Kv following (tune::velocity_loops). One row per key (motor, key, before, after) with the least margins over the poses before and after, each with its pose; a row of a motor whose targets are not met says FAIL (exit code 1). On stderr: what the tuning did beyond the gain (a notch, a gain lowered by the joint check) and the --set words that make the tuned config. Nothing is written to a file.