Then you can turn the motors on and off with this:
Code:
output_b(mot1mask|mot2mask); //both motors on
output_b(~mot1mask&~mot2mask); //both motors off
output_b(mot1mask&~mot2mask|mot3mask&~mot4mask); //motors 1&3 on, 2&4 off
_________________ The search for better is endless. Instead simply find very good and get the job done.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum