This commit is contained in:
David Buezas 2026-02-01 21:58:18 +01:00
parent 3a642f72c1
commit 35852ef184

View file

@ -54,7 +54,7 @@ public:
+ 0.5f * (sq(initial_speed) + sq(final_speed));
float ratio_limited_speed = SQRT(max_nominal_from_ratio);
// Dont allow it to go below endpoints (otherwise T1/T3 go negative)
const float v_floor = MAX(initial_speed, final_speed);
const float v_floor = _MAX(initial_speed, final_speed);
NOLESS(ratio_limited_speed, v_floor);
NOMORE(nominal_speed, ratio_limited_speed);
}