Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One of the best ways to deal with this is to create a minimum lag for changes in direction which is dependent on the magnitude of change.

AKA, assuming you just bumped v from 10 - 11 based on a change from 100.9cm to 101cm then going back to 100.9cm will not change things for say 1second, going to 99cm changes things in 100ms second, 98cm changes in 100ms.



Hmm, that's interesting. Is there any name for that kind of method? I might look at implementing it.


Hysteresis




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: