Skip to content

torque

cmd_torque(id, enable, ctx) #

Enable or disable torque for a specific servo.

Source code in cogip/tools/scservo_async/torque.py
29
30
31
32
33
34
35
36
37
def cmd_torque(
    id: Annotated[int, typer.Argument(help="Servo ID")],
    enable: Annotated[bool, typer.Argument(help="Enable (True/1/on) or Disable (False/0/off) torque")],
    ctx: typer.Context,
):
    """
    Enable or disable torque for a specific servo.
    """
    asyncio.run(torque(ctx, id, enable))