broken potentiometer 'get' functions

We are using a potentiometer analog channel for the angle of our shooter. However, all ‘get’ functions (i.e. getValue() and getVoltage()) are not working. Code compiles and uploads, but does not print out any value to driver station or smartdashboard, and causes all other code to not run. Any ideas for fixing the get functions or a work-around to read voltage out of the pot without using a get?

The functions themselves aren’t broken; other teams are using them without problem. How are you using them? Show us the code that is misbehaving and we can help you figure out what’s going wrong.

Wow, turns out the solution was to create the object in the main file instead of a header of a lower file. Just had to write a work-around for using the value in the lower files. Works fine now