Go to Post Perfection of a system comes not when you can add nothing more but instead when you can remove nothing. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2009, 16:51
Team1710's Avatar
Team1710 Team1710 is offline
Registered User
FRC #1710
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Kansas City
Posts: 95
Team1710 is an unknown quantity at this point
Function to Call Percent Size?

Is there a function in the WPI Library in a class somewhere that allows me to call the percent size of the target being processed? I need to use it to calculate range.

Thanks!
  #2   Spotlight this post!  
Unread 13-02-2009, 17:28
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
Re: Function to Call Percent Size?

The ParticleAnalysisReport structure has a field called particleToImagePercent. You'd use it the same way you'd look at the x and y coordinates.

double percent = par->particleToImagePercent;
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
  #3   Spotlight this post!  
Unread 13-02-2009, 18:23
Team1710's Avatar
Team1710 Team1710 is offline
Registered User
FRC #1710
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Kansas City
Posts: 95
Team1710 is an unknown quantity at this point
Re: Function to Call Percent Size?

Do you need to initialize or include anything before you call that function?
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
SetDirection Function Call aeasson Programming 2 04-02-2008 09:58
printf, call of function without prototype problems cprogrammer Programming 3 11-05-2006 18:21
"call of function without prototype" railerobotics Programming 7 21-01-2006 19:59
Programmers of FIRST, function call! archiver 2001 0 24-06-2002 03:58
Team 375 about 98 percent done! archiver 2001 7 24-06-2002 01:04


All times are GMT -5. The time now is 02:33.

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