View Single Post
  #2   Spotlight this post!  
Unread 01-11-2005, 10:23
billbo911's Avatar
billbo911 billbo911 is online now
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: programming motors with programming kit

Quote:
Originally Posted by BorisTheBlade
... I tried just going into the default routine and just setting the motor to full forward like this:
Code:
pwm01 = 255;
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.

Last edited by billbo911 : 01-11-2005 at 11:23.
Reply With Quote