Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   LinearValueEstimator (http://www.chiefdelphi.com/forums/showthread.php?t=154578)

alexusaywla 01-02-2017 11:43

LinearValueEstimator
 
Trying to debug the code but keep running into an error with "right_1.Set(rightPolarity*LinearValueEstimator(dr iverX_1, DEADZONE));" and other lines involving Set and LinearValueEstimator.

Is there a problem with how this is written? Any ideas as to what I can use in place of it?

GavinL 01-02-2017 11:55

Re: LinearValueEstimator
 
Quote:

Originally Posted by alexusaywla (Post 1639033)
Trying to debug the code but keep running into an error with "right_1.Set(rightPolarity*LinearValueEstimator(dr iverX_1, DEADZONE));" and other lines involving Set and LinearValueEstimator.

Is there a problem with how this is written? Any ideas as to what I can use in place of it?

What else does the error say?
What data type is LinearValueEstimator? What data type is DEADZONE?
and what is driverX_1? A joystick axis?

alexusaywla 01-02-2017 17:11

Re: LinearValueEstimator
 
The Set error says Invalid arguments 'Candidates are: void Set(double)' and the LinearValueEstimator says 'Function 'LinearValueEstimator' could not be resolved'. LinearValueEstimator should be a double floating point and DEADZONE is defined as .3. DriverX_1 is a joystick axis.

alexusaywla 01-02-2017 17:26

Re: LinearValueEstimator
 
Quote:

Originally Posted by GavinL (Post 1639037)
What else does the error say?
What data type is LinearValueEstimator? What data type is DEADZONE?
and what is driverX_1? A joystick axis?

Totally just realized my error, thank you!


All times are GMT -5. The time now is 09:57.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi