Go to Post So, please, can't we all just live and let live? - Alexa Stott [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 02-02-2013, 11:20
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
nUsageReporting

So, we're having problems with our drive code. The first time we call it, it takes around 2 seconds to return. It consists of a single call to RobotDrive::TankDrive(). In TankDrive, there's a one-time call to nUsageReporting::report()

Code:
static bool reported = false;
if (!reported)
{
	nUsageReporting::report(nUsageReporting::kResourceType_RobotDrive, GetNumMotors(), nUsageReporting::kRobotDrive_MecanumCartesian);
	reported = true;
}
What does this call do? Is there something we could be doing that would cause it to take a long time to return?
__________________
Proud alum of CORE 2062.
www.core2062.com
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2013, 10:48
MisterG's Avatar
MisterG MisterG is offline
Think twice post once.
AKA: Alan Gilgenbach
FRC #2062 (C.O.R.E. - Community of Robotics Engineers)
Team Role: Team Spirit / Cheering
 
Join Date: Mar 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 120
MisterG is a name known to allMisterG is a name known to allMisterG is a name known to allMisterG is a name known to allMisterG is a name known to allMisterG is a name known to all
Re: nUsageReporting

Bump.

We are still experiencing this problem intermittently.

When it happens, its immediately after we enable. It will hang for some period (~20 seconds) and then returns.

Our proposed workaround is to override all of the RobotDrive motion methods and remove the nUsageReporting::report() call.

At this point we are living with the problem but we will need to take action before competition.

Is anyone else experiencing anything like this?
__________________
Alan Gilgenbach
C.O.R.E 2062
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 14:03.

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