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.