os.sleep(1) works fine on computers and robots though. It's just on drones (and probably microcontrollers) that it crashes.
I suspect that microcontrollers are missing a lot of the base functionality in computers, since none of the os.* functions seem to work. This makes sense for the most part, though there ought to be some analogue to "sleep", even if it's just manually running a loop that does nothing for a while.
For my specific use case, I might be able to loop until getVelocity() equals 0, which I did forget to check, but there's probably a more general way to do it that I'm simply