Skip to main content

motor_config

Function motor_config 

Source
pub fn motor_config(cfg: &Config, id: &str) -> Result<Config, ConfigError>
Expand description

The config one motor sees: each table of PER_MOTOR_TABLES with that motor’s [<table>.<id>] over it, and the motor, gearbox and drive its [parts.<id>] names applied from the catalogue over that. A key there has to be one the shared table has (motor.<id>.rotor_inertia_kgm2 overrides motor.rotor_inertia_kgm2). Without such tables the config as it is. The drives, the machine files’ drive trains and the per-motor verdicts read their motor’s. shortcut: the drives’ cycle times, the noise seed and a shared DC link stay those of the shared [drive]. (The velocity gain of a motor with parts of its own is retuned by retuned_per_motor.)