|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
||||
|
||||
|
Re: SET command duration?
SetXXX is a command instructing WPILIb to alter a default setting.
SetPWM(1,X) // Change PWM 1 from Default "127" to a X SetGyroDeadBand(1 , X) // Change the Default Dead for Gyro 1 to X SetUserDisplay ( X ) ; // Change the Default OI Display from 0 to X Once a Set command is executed, it normally doesn't need to be resent unless you need to modify the parameter. If X changes for any reason you need to recall the set command. Example: // This will run a Victor connected to PWM 1 at full speed (255) forever Autonomous ( ) { SetPWM( 1, 255 ) ; } // This will run a Victor connected to PWM 1 at full speed (255) for 1 second (1000ms) then stop (127). Autonomous ( ) { SetPWM( 1, 255 ); Wait(1000); SetPWM( 1, 127 ); } Last edited by Kingofl337 : 06-02-2008 at 14:14. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| command listfor c??? | jfrank | Programming | 12 | 22-01-2008 20:16 |
| assembly command | tseres | Programming | 3 | 18-01-2008 08:13 |
| Make all command | pmzq | Programming | 3 | 24-01-2006 16:16 |
| Servo command confusion?!?!?!?! | [527]phil | Programming | 9 | 15-07-2005 20:10 |
| Run command... frightening | archiver | 2001 | 1 | 24-06-2002 03:37 |