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.
After working for about 4 hours with the Swift Pro and the Python library, it all of a sudden stops responding to
set_positionwhen thexandyare set, but if only thezis set, it's fine.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:
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.