Conditional gear shifting in E2
💻 Expression 2•Updated 2 days ago•0 views
Use chained if statements such as if (speed>30 & speed<60) with predefined vars, or better, compute the gear with a single math equation and floor() the value t…
How can I do conditional gear shifting in E2 when switch statements can't take range conditions like 'speed over A but less than B'?
Use chained if statements such as if (speed>30 & speed<60) with predefined vars, or better, compute the gear with a single math equation and floor() the value to get the corresponding gear - graphing tools like Desmos help design the equation. Also avoid variables cycling continuously; one optimized gearbox chip went from ~200 to ~80 ops that way.