Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   PIDSubsystem onTarget setTolerance ? (http://www.chiefdelphi.com/forums/showthread.php?t=126918)

SousVide 20-02-2014 11:39

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,

notmattlythgoe 20-02-2014 11:46

Re: PIDSubsystem onTarget setTolerance ?
 
Have you tried using the subsystems setAbsoluteTolerance() method instead of the controller?

SousVide 20-02-2014 16:22

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