|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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 | 02-10-2008 01:12 PM |
| How to conect solenoids to the circuit board. and how to program it...??? | arpitshah | Pneumatics | 6 | 01-13-2008 03:06 PM |
| Servo Values to Degrees... How? | mogunus | Programming | 16 | 04-11-2007 02:03 AM |
| How much do the servo cost? | Ken Leung | Motors | 2 | 09-14-2001 03:42 PM |