await_until_stop()
  • 1 Minute to read

await_until_stop()


Article summary

Blocks the application until movement is stopped.

Reference

Arguments

None

Return

None

Exceptions

  • RayaNotMoving

See the complete list of motion exceptions.

Usage Example

...

class RayaApplication(RayaApplicationBase):

    async def setup(self):
        self.motion = await self.enable_controller('motion')
        ....
        
    async def loop(self):
     ....
        await motion.move_linear(distance = 3.0, x_velocity=1.0, wait=False)
        await motion.await_until_stop()
      ...
      
    async def finish(self):
      ...

See the Motion example to check some valid uses.


Was this article helpful?

What's Next