
Re: Programming the LEGO m Motor with RobotC
The LEGO motors have built-in encoders. So assuming your claw is closed to start with and assuming you want to use the joystick to control it. Here is an example on how to do it. It's not the best code but it's simple.