Detecting if the code runs from the PC or the RoboRIO
I have some code that I want to run only when working from the PC (connected with an Ethernet cable) for debugging purposes.
Is there a way for the code to detect if the code runs from the PC or from the RoboRIO itself?
That way I won't need to disable this code block whenever I download it to the robot.
Thank you!
__________________
2016-2017 - Programming Mentor
► Curie Sub-Division Champions with 694, 379 & 1511
2015 - Team Captain & Head of Programming Crew
► Carson Sub-Division Champions with 1325, 20 & 1711
► First ever Israeli team on Einstein
2014 - Team Captain & Head of Programming Crew
2013 - Head of Programming Crew
2012 - Member of Programming Crew
|