00001 /*************************************************************** 00002 00003 Mini Grand Challenge 2010 00004 Pennsylvania State University - Robotics Club 00005 Learn more at www.psurobotics.org 00006 Protected by the GNU General Public License 00007 00008 This source file is developed and maintained by: 00009 + Jeremy Bridon jgb5034@psu.edu 00010 00011 File: ArduinoInterface.cpp/h 00012 Desc: The arduino base component interface. Recieves commands 00013 and sends out data to/from the arduino (via the ArduinoClient 00014 class). The USB device name can be set via a configuration file 00015 with the string/data pair starting with "DeviceName" 00016 00017 ***************************************************************/ 00018 00019 // Inclusion guard 00020 #ifndef __ARDUINOINTERFACE_H_ 00021 #define __ARDUINOINTERFACE_H_ 00022 00023 // Standard includes 00024 #include "../Shared/Utilities.h" 00025 #include "../Shared/BaseComponent.h" 00026 #include "ArduinoClient.h" 00027 00029 class ArduinoInterface : public BaseComponent 00030 { 00031 public: 00032 00034 ArduinoInterface(); 00035 00037 ~ArduinoInterface(); 00038 00040 int Update(); 00041 00042 private: 00043 00045 ArduinoClient* Client; 00046 }; 00047 00048 // End of inclusion guard 00049 #endif 00050
1.5.5