Closed ottopasuuna closed 6 years ago
For the two sections for raising and lowering the drill, use the SetDutyCycle command, value between -1e5
and 1e5
:
await ArmDevice.publish('armWristRot', {'SetDutyCycle':int(1e5*ArmDevice.storage.speeds[5])})
But replace references to arm stuff with whatever drill stuff.
For the spinning part of the drill, use the same thing as the drive process,
await DrillDevice.publish('DrillSpin', {'SetRPM': int(speed*MAX_SPIN_SPEED)})
and keep MAX_SPIN_SPEED
at around 2000.
It would be good to be able to controll the science drill manually with joysticks. Roveberrypy has one that should work, should be easy to port over.