|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
||||
|
||||
|
Re: How to Program a Servo
Oh, right. Most of the other functions are -1 to 1, didn't look at the docs.
If you need to scale (-1, 1) to (0, 1) you can use prevVal = joystick(1)->Get(); //-1 to 1 value ScaledVal = (prevVal + 1)/2; //Scaled to 0 to 1 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Program a Servo? | programmr | Programming | 5 | 10-02-2008 13:12 |
| How to conect solenoids to the circuit board. and how to program it...??? | arpitshah | Pneumatics | 6 | 13-01-2008 15:06 |
| Servo Values to Degrees... How? | mogunus | Programming | 16 | 11-04-2007 02:03 |
| How much do the servo cost? | Ken Leung | Motors | 2 | 14-09-2001 15:42 |