Closed ghost closed 5 years ago
your macros for the drive motor ports (LEFTDRIVE_PORT
) are not going to give you the desired results, motorSet can only take one port value as an integer so your &
will prevent any movement. Separate the motorSet calls for each motor port and pass just the integer value for the port and you should see the motors move.
I have a very simple drive code for my cortex and whenever I try to build the opcontrol file, it reads "make: nothing to be done for 'quick'". When I try to upload the code, the cortex is unresponsive after connecting to the controller. I think it is a problem with the building process but I have attached the code in case there are issues in it. I am using C by the way.
include "main.h"