Quote:
Originally Posted by LFRobotics
That's not what I changed it to today but that code threw the same error - the ports for the double solenoid are 0 and 1
|
Ok I think the problem is when you call the retract command you create a new solenoid on ports 0 and 1. Don't do this. If you call the retract command more than once (or call the extend command once) then you can't call it again because it tries to create a new solenoid. Create the solenoid somewhere and pass it to the command.