View Single Post
  #1   Spotlight this post!  
Unread 03-03-2013, 23:32
chris.boyle's Avatar
chris.boyle chris.boyle is offline
Programming Mentor
FRC #0068 (Truck Town Thunder)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Truck Town Thunder (Brandon)
Posts: 36
chris.boyle is on a distinguished road
Detecting connection to FMS

Is it possible to determine if we are connected to the FMS or running locally? I am trying to help a team control their off-board compressor.

R80 - Compressed air on the ROBOT must be provided by one and only one compressor. Compressor specifications may not exceed nominal 12VDC, 1.05 cfm flow rate. Off-board compressors must be controlled and powered by the ROBOT.

My thought is that if we can determine if (at startup) we are connected to the FMS, then any code related to the compressor would not be run (Open & Control Loop), thus avoid generating and reference errors during a match. I have searched the WPI palettes and only find the alliance color and position.

They have implemented a manual approach to this problem for now, check for the existence of a file in begin.vi and use that to run the compressor code. This method requires a file to be copied to the cRIO, then reboot it, let it fill the air tanks, then delete it from the cRIO, reboot it again, before placing the robot on the field.

To many possibilities for mistakes and causing errors during a match.
__________________
2014 Chairman's Award--Michigan State Championship
2014 Chairman's Award--Waterford District
2014 Winner--Great Lakes Bay District
2013 Chairman's Award--Kettering District
2012 Championship Division Finalists--Thanks 330 and 639
Reply With Quote