Menu

#15 SwingDemo crashes on Serial16

open
Parallax (1)
9
2009-11-05
2009-11-05
No

Running Serial16ServoController class with USB controller (may or may not be relevant) causes an exception:

java.lang.IllegalArgumentException: Invalid position ($position) - outside of 250...1250 range
at net.sf.servomaster.device.impl.serial.parallax.PacketBuilder.setAbsolutePosition(PacketBuilder.java:80)
at net.sf.servomaster.device.impl.serial.parallax.ParallaxSerialServoController$ParallaxServo.sendPosition(ParallaxSerialServoController.java:176)
at net.sf.servomaster.device.impl.serial.AbstractSerialServoController$SerialServo.setActualPosition(AbstractSerialServoController.java:266)
at net.sf.servomaster.device.model.AbstractServo.setPosition(AbstractServo.java:154)
at net.sf.servomaster.view.Console$clock.execute(Console.java:707)
at net.sf.servomaster.view.Console$exec.run(Console.java:506)
at java.lang.Thread.run(Thread.java:619)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB