View Single Post
  #4   Spotlight this post!  
Unread 07-02-2015, 20:31
Herbie_3633 Herbie_3633 is offline
Registered User
FRC #3633
 
Join Date: Jan 2013
Location: Albert lea
Posts: 26
Herbie_3633 is infamous around these partsHerbie_3633 is infamous around these parts
Re: Potentiometer values not changing

Code:
Potentiometer*  DartPot;

public:
	Robot() {
		DartPot = new AnalogPotentiometer(2,360,30);
	} 

double pot = DartPot->Get(); 

else if (stick->GetRawButton(11) == 1){
	std::cout<<("Pot Value: ");
	std::cout<<(pot)<<std::endl;
}
The else if is connected to an if statement in the rest of the code.