View Single Post
  #1   Spotlight this post!  
Unread 23-03-2016, 16:11
nowireless nowireless is offline
Registered User
AKA: Ryan Sjostrand
FRC #3081 (Robo Eagles)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bloomington, MN
Posts: 4
nowireless is an unknown quantity at this point
Re: PID controller with camera.

It looks like you are using the wrong shared pointer, both Robot and RobotMap they have a shared pointer named visionAlignPID. It looks like the one in Robot does not contain a pointer, while in RobotMap you set the visionAlignPID shared pointer to a PIDController.

I think you should change
Code:
 Robot::visionAlignPID.get()->Enable();
to
Code:
RobotMap::visionAlignPID.get()->Enable();