Go to Post It is probable that you will find mroe than a few spotlight worthy phrases or sentences in the following. ;) - sanddrag [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Spotlight this post!  
Unread 30-12-2014, 10:11
KPSch KPSch is offline
Registered User
AKA: Ken Schenke
FRC #1987 (Broncobots)
Team Role: Mentor
 
Join Date: Mar 2013
Rookie Year: 2013
Location: Lee's Summit, MO USA
Posts: 38
KPSch is a name known to allKPSch is a name known to allKPSch is a name known to allKPSch is a name known to allKPSch is a name known to allKPSch is a name known to all
Re: Command Based Auto - Windriver C++ Having trouble to add sequential auto commands

Doug,

The constructors for DriveAuto are called while the robot code is initializing, which happens while the cRIO is booting up. It's possible your console isn't connected at the time this happens. It's tricky to get the console connected at just the right time while it's booting up.

Do you see the printfs that happen in DriveAuto::Initialize()?

If you suspect that somehow the compiler is generating only one object with the same values would be to add the DriveAuto instance to your printfs - like this:

printf("me=%p", this);

This will print out the member address of the current DriveAuto instance. You can also do this for the member variables, i.e.

printf("my X=%p", &speed_side);

This would tell you if there's a possibility that you have different DriveAuto command instances that are somehow sharing a common set of member variables. I don't see anything in the code that could accidentally allow this.
Reply With Quote
 


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 12:09.

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