|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PIDSubsystem onTarget setTolerance ?
Hi,
I am using the commandbased programming library and have a PIDSubsystem. I am trying to read whether PID is onTarget(), but the code quits complaining that I need to use setTolerance. I've called the PID Controller's setAbsoluteTolerance method, but it continues to quit and complain. How is it that I need to call setTolerance in order to satisfy the requirement for onTarget ? Thanks, |
|
#2
|
|||||
|
|||||
|
Re: PIDSubsystem onTarget setTolerance ?
Have you tried using the subsystems setAbsoluteTolerance() method instead of the controller?
|
|
#3
|
|||
|
|||
|
Re: PIDSubsystem onTarget setTolerance ?
I've tried the following in different instances:
setAbsoluteTolerance(targetTolerance); // this doesn't work setAbsoluteTolerance(new PIDController.AbsoluteTolerance(targetTolerance)); this.getPIDController().setTolerance(new PIDController.AbsoluteTolerance(targetTolerance)); |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|