UofSSpaceTeam / rover-processes

Miscellaneous software for the rover.
0 stars 2 forks source link

Manual drill controll #45

Closed ottopasuuna closed 6 years ago

ottopasuuna commented 6 years ago

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.

ottopasuuna commented 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.