Chief Delphi

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

nightpool 02-02-2013 11:20

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?

MisterG 16-02-2013 10:48

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?


All times are GMT -5. The time now is 18:25.

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