|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
What is the Limit_Mix function
Can someone describe this function to me?
Im trying to reduce the speed of the motors; how would I edit this: pwm13 = pwm14 = Limit_Mix(2000 + p1_y + p1_x - 127); pwm15 = pwm16 = Limit_Mix(2000 + p1_y - p1_x + 127); |
|
#2
|
||||
|
||||
|
Re: What is the Limit_Mix function
The limit mix function is a bit of software that takes the two axes from one joystick, and calculates the corresponding PWM outputs. In order to adjust a PWM value by a constant factor, try something like this:
Code:
pwm01 = (pwm01-127)*0.75+127 Last edited by jgannon : 08-01-2007 at 21:43. |
|
#3
|
|||
|
|||
|
Re: What is the Limit_Mix function
Thats perfect; THank you so much!
Also one problem; when I try to edit the MPLab code and build it it says no source files in teh project. How do I get around this? |
|
#4
|
||||
|
||||
|
Re: What is the Limit_Mix function
I believe that means you set up MPLab wrong when you were installing it. However, I'm not sure exactly what the problem is. Did you install the compiler first and then MPLab or the other way around?
|
|
#5
|
|||
|
|||
|
Re: What is the Limit_Mix function
the other way around. I set up MP lab then the compiler
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Visual Basic. Using a loop to solve the cosine function. | sanddrag | Programming | 2 | 10-03-2006 11:45 |
| Arcade Function | gabrielse | Programming | 1 | 08-02-2006 00:49 |
| Limit_Mix() Function | EricWilliams | Programming | 2 | 27-07-2005 23:19 |
| Autocalibrate function | Validius | Programming | 2 | 29-03-2005 21:59 |
| FreeLibrary() Function | Raven_Writer | Programming | 0 | 09-08-2003 15:39 |