How to code DR4B Lift?

What is the best code for the DR4B? I would like to have example code please. What we want to do is have the lift, lift until it hits a certain amount of rotations then it stops and holds it in place. Please help and thank you.

Well, what do you want he example code programmed to? I have the general idea of it below though

if(Motor rotations >= Whatever number of rotations you want){

Stop the motor
Only allow arm control downward

}

else{

Full up and down arm control

}

I don’t know how to code this part.

Never mind i was too dumb to understand, but now I understand.

thankful thank you thanks

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.