|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Button motor control...
this is another way of approaching the problem you are having..and as you can see you can change the speed of the motor, to your liking..we needed to slow a motor down, so instead of using 1 and -1, we used .4 and -.4
|
|
#2
|
|||
|
|||
|
just realized... umm, we need to control a total of 2 motors but separte funtctions ex:
motor 1 (move when one of the 2 buttons pushed) 2 way funtion - button 1fwd and button 2reverse motor 2 (move when one of the 2 buttons pushed) 2 way funtion - button 3fwd and button 4reverse but on buttons so if i use this on the robot main config file and put it in the teleop file, how can i do that its not just one motor is two in same project but seperat... so i can save pwm's |
|
#3
|
|||||
|
|||||
|
Re: Button motor control...
If you want to control one motor with two buttons, and another motor with two other buttons, just put another copy of the code next to the first one and change the buttons and refnum name.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|