View Single Post
  #5   Spotlight this post!  
Unread 18-01-2016, 00:33
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Shared pointers? Unique pointers?

Quote:
Originally Posted by rod@3711 View Post
The problem arose when we were attempting to get the value of the joystick.

Code:
void Chassis::SixDrive(std::shared_ptr<Joystick>& stickPosition){  
	tankdrive->ArcadeDrive(stickPosition->GetX(), stickPosition->GetZ());
}
Get rid of the &. I think everything else should work.
Reply With Quote