latency_compensated_humanoid / LatencyCompHumanoid.Py
Junnyfirst34's picture
Create LatencyCompHumanoid.Py
27c6313 verified
class LatencyCompHumanoid:
def compensate(self, command, latency_ms):
factor = max(0.0, 1.0 - latency_ms / 100.0)
return command * factor