|
Re: Potentiometer values not changing
If I'm reading the C++ standard correctly, the variable pot will be initialized once when the loop begins. It doesn't get reinitialized every iteration of the loop. You can test this by disabling the robot and seeing if the value printed changes when you reenable the robot.
If that happens as I think it will, you should add a line pot = DartPot->Get(); to the loop somewhere before you use the value of pot.
|