mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-01 14:16:48 +08:00
3 lines
50 B
Python
3 lines
50 B
Python
def clip(x, lo, hi):
|
|
return max(lo, min(hi, x))
|