Go to Post What I am expecting is the unexpected (what that is I don't know). - mdiradoorian [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2017, 11:43
alexusaywla alexusaywla is online now
Registered User
AKA: Alexus
FRC #6155 (ElektraBots)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: San Antonio, TX
Posts: 16
alexusaywla is an unknown quantity at this point
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2017, 11:55
GavinL GavinL is offline
intensely stares at program
FRC #5726 (RhumBotz)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: San Antonio, Texas
Posts: 46
GavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to behold
Re: LinearValueEstimator

Quote:
Originally Posted by alexusaywla View Post
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?
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2017, 17:11
alexusaywla alexusaywla is online now
Registered User
AKA: Alexus
FRC #6155 (ElektraBots)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: San Antonio, TX
Posts: 16
alexusaywla is an unknown quantity at this point
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2017, 17:26
alexusaywla alexusaywla is online now
Registered User
AKA: Alexus
FRC #6155 (ElektraBots)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: San Antonio, TX
Posts: 16
alexusaywla is an unknown quantity at this point
Re: LinearValueEstimator

Quote:
Originally Posted by GavinL View Post
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!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:22.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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