|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||||
|
|||||
|
Re: Need help with PWM 1-2ms pulse control
The old EDU robot controller has analog inputs with values from 0 to 1023.
The pwm outputs are sent values from 0 to 254. So just scale the input to match the output like so Code:
pwm01 = (long) Get_Analog_Value(rc_ana_in01) * 254 / 1023; Last edited by Mark McLeod : 30-04-2008 at 15:17. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with operator control | d25inferno | Programming | 1 | 18-02-2008 11:36 |
| we need help with PWM problem in autonomous | steve d | Programming | 7 | 03-02-2008 12:46 |
| Help with automatic relay control | DRH2o | Programming | 5 | 23-01-2008 18:13 |
| We need help with joystick control | Team ICE #1611 | Control System | 4 | 24-01-2005 15:57 |
| hey need some help with writing a code please help me here | magical hands | Programming | 9 | 01-01-2004 21:46 |