Thread: nUsageReporting
View Single Post
  #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