Skip to main content

ratio_sweep

Function ratio_sweep 

Source
pub fn ratio_sweep(
    entry: &MachineEntry,
    config: &Config,
    s: &SearchInputs,
) -> Result<TransmissionSweep, Message>
Expand description

The ratio sweep of the search tab, as sim-cli transmission runs it: SearchInputs::sweep_key from sweep_from to sweep_to (half and twice the config’s where 0) in sweep_count values, and with sweep_snap the gearboxes of that series that fit the config’s motor around the best ratio.