In graphical RobotC, can someone please explain how to programme two motors (one reversed) which will simultaneously raise and lower an arm.
I assume I must use the command ‘setMultipleMotors’, and then 'stopMultipleMotors? But what command do I use in between? I’ve tried using ‘waitUntil’, but this only allows me to select a value for one of the motors.
Should I use a second gyro sensor and attach it to the side of the robot? Then, I could raise and lower the arm using degrees instead of rotations.
Reset the motor encoder on, say Motor 7, then do Multiple motor start and WaitUntil the motor 7 encoder reaches a desired value, then execute multiple Motor stop. Since both are operating the same shaft/axle sensing one should be good enough for both.
Thanks for the help.
We seem to have hit another problem. Commands 10-13 move the robot forward (If we use the ‘forward’ command on its own, the robot moves forward but the arm raises too).
For commands 18-21 we want to move the robot backwards, but we can’t get it to. (If we use the ‘backward’ command on its own, the robot will go backwards but also lowers the arm).
Can anyone see what’s wrong with commands 18-21? We want to move backwards but we don’t want the arm to move.