|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
||||||
|
||||||
|
Re: How does this program look?
That will set the motor to run at 100%. Set Output takes a value from -1 (full speed reverse) to 1 (full speed forward). Since 50 is larger then 1, it will be full speed.
One good practice is to make your programs flow from right to left. I would put your Set Output to the right of your case statement, so that it is easier to read. Last edited by Joe Ross : 20-01-2012 at 17:00. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|