|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: need help with our default code
Or you can switch the leads on the speed controller of the motor which is going in reverse direction.
|
|
#2
|
||||
|
||||
|
Re: need help with our default code
where do i put those code in my set of code?
|
|
#3
|
|||||
|
|||||
|
Re: need help with our default code
Towards the bottom of what you posted...
Code:
void Default_Routine(void)
{
/*---------- Analog Inputs (Joysticks) to PWM Outputs-----------------------
*--------------------------------------------------------------------------
* This maps the joystick axes to specific PWM outputs.
*/
pwm01 = p1_y;
pwm02 = 255-p2_y;
pwm03 = p3_y;
pwm04 = p4_y;
pwm05 = p1_x;
pwm06 = p2_x;
pwm07 = p3_x;
pwm08 = p4_x;
pwm09 = p1_wheel;
pwm10 = p2_wheel;
pwm11 = p3_wheel;
pwm12 = p4_wheel;
Bharat's suggestion is also an easy way to do it. Last edited by Mark McLeod : 16-02-2007 at 11:32. Reason: Left in original pwm02=p2_y |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with our deadspace. | sacr3denigma | Programming | 2 | 26-01-2006 18:09 |
| Need help programming our swerve with feedback? | activemx | Programming | 25 | 13-04-2004 07:29 |
| Need help with my code | jaywion | Programming | 9 | 20-03-2004 11:32 |
| hey need some help with writing a code please help me here | magical hands | Programming | 9 | 01-01-2004 21:46 |
| We need help with our website | LBK Rules | Website Design/Showcase | 18 | 19-01-2003 17:46 |