|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
||||
|
||||
|
Re: Controller Speed programming
The above two examples don't look like they will work... this code should work copied and pasted (assuming you want your Port 1 joystick to control pwm01):
Code:
if(p1_y > 127) {
pwm01 = 150;
}
if(p1_y > 200) {
pwm01 = p1_y;
}
if(p1_y < 127) {
pwm01 = 104;
}
if(p1_y < 54) {
pwm01 = p1_y;
}
Last edited by JohnC : 14-01-2008 at 01:19. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Speed Controller Code | ND4SPDLSC | Programming | 2 | 18-02-2006 21:48 |
| Speed Controller Data | viewtyjoe | National Instruments LabVIEW and Data Acquisition | 4 | 02-02-2006 16:05 |
| speed controller max speed | Team 668 | Programming | 15 | 13-02-2005 14:05 |
| Speed Controller | Megas_xlr | Control System | 3 | 18-01-2005 15:41 |
| Speed Controller | Megas_xlr | Electrical | 3 | 18-01-2005 15:41 |