![]() |
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, |
Re: PIDSubsystem onTarget setTolerance ?
Have you tried using the subsystems setAbsoluteTolerance() method instead of the controller?
|
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)); |
| All times are GMT -5. The time now is 22:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi