Potentiometer Values too high

I’m printing out potentiometer values to my v5 brain using PROS and it’s returning a really big number that goes off-screen and I can’t divide it by any number or else it just doesn’t show up on the screen.

pros::lcd::print(2, "%f", LeftArmPot.get_value());

Am I just stupid or is the potentiometer actually reading values that high?

ADIAnalogIn.get_value() returns an integer, not a floating point number. You need to use something like "%d" instead of "%f".

3 Likes