View Single Post
  #1   Spotlight this post!  
Unread 29-07-2015, 11:00
GuyM142's Avatar
GuyM142 GuyM142 is offline
Registered User
AKA: Guy
FRC #3339 (BumbleBee)
Team Role: Mentor
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Israel
Posts: 157
GuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really nice
Smile 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
Reply With Quote