Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   User Button (http://www.chiefdelphi.com/forums/showthread.php?t=132729)

alopex_rex 01-12-2015 09:53 PM

User Button
 
Does anyone know if it's possible to read the user button on the RoboRio from WPILib on C++? I've looked around a bit and can't find anything, although apparently it is possible to read it in Labview (and, RobotPy!).

We don't have an actual reason for doing this, our programming team is just fascinated with buttons.

cgmv123 01-12-2015 09:56 PM

Re: User Button
 
In Java, the method to read it is in the Utility class. I think it's supposed to be the same in C++.

alopex_rex 01-12-2015 10:05 PM

Re: User Button
 
Found it! The Utility.h file doesn't have any documention, on account of that it doesn't define any data structures. So I had to look in the .h file to see what the function was (GetUserButton(), for the curious).

Thanks! Now I just have to come up with a convincing reason to use it in our program. (Our programming team really likes buttons.)

Joe Ross 01-13-2015 07:30 PM

Re: User Button
 
Quote:

Originally Posted by alopex_rex (Post 1427109)
Found it! The Utility.h file doesn't have any documention, on account of that it doesn't define any data structures. So I had to look in the .h file to see what the function was (GetUserButton(), for the curious).

The utility file documentation will be included in the next release of wpilib.


All times are GMT -5. The time now is 09:50 AM.

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