Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   broken potentiometer 'get' functions (http://www.chiefdelphi.com/forums/showthread.php?t=113682)

CFrank13 16-02-2013 15:36

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?

Alan Anderson 17-02-2013 01:20

Re: broken potentiometer 'get' functions
 
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.

CFrank13 17-02-2013 06:21

Re: broken potentiometer 'get' functions
 
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


All times are GMT -5. The time now is 13:06.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi