Quote:
|
Originally Posted by BorisTheBlade
... I tried just going into the default routine and just setting the motor to full forward like this:
could really use some help on this one. thanks
|
I was unable to get of my own code to work until I changed one particular section. This is in the "user_routines.c" near line 193.
In the following code, you define who controls the PWM, the USER or the MASTER PIC. You will have to write the code for generating PWMs if you want the USER to to control them. ( For seriously custom code )
Code:
/* SEVENTH: Choose which processor will control which PWM outputs. */
//Setup_Who_Controls_Pwms(MASTER,MASTER,MASTER,MASTER,MASTER,MASTER,MASTER,MASTER);
Setup_Who_Controls_Pwms(USER,USER,USER,USER,USER,USER,USER,USER);
If you have not changed this, the USER will be controlling the PWMs and your code will not. Change these lines according to what you want to control and your code should work.
