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