|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#5
|
||||
|
||||
|
Re: How do you make a PID move a motor in Java?
The PID controller needs an input (use the method returnPIDInput()). This comes from a sensor, such as a gyro or potentiometer. You then use the usePIDOutput() method to move one or multiple motors in order to make the input value reach the setpoint. You need to enable the pid with enable().
This video explains the PID subsystem really well: http://www.youtube.com/watch?v=j2Xz8bRRcF0 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|