Skip to content

set_position suddenly stops working with x & y parameters #14

@nick-jonas

Description

@nick-jonas

After working for about 4 hours with the Swift Pro and the Python library, it all of a sudden stops responding to set_position when the x and y are set, but if only the z is set, it's fine.

if __name__ == '__main__':
  print("setting up Swift...")
  sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
  swift = SwiftAPI()
  sleep(2)
  response = swift.set_position(x=0, y=0, z=45, relative=False, wait=False, speed=5, timeout=10)
  print(response)

Note response is always True, but the arm doesn't move.

If I do the following, without the x and y, the arm moves up just fine:

 response = swift.set_position(z=45, relative=False, wait=False, speed=5, timeout=10)

I've tried turning it on and off, replugging it in, recalibrating, but it still doesn't work.

Does anyone know why this might happen? Again, this has been working all day but suddenly stopped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions