Electric Tiger DAQ  1.0.0
Data Acquisition Software for the Electric Tiger Experiment
test_arduino.h
1 #ifndef TEST_ARDUINO_H
2 #define TEST_ARDUINO_H
3 
4 //C System-Headers
5 //
6 //C++ System headers
7 #include <memory>
8 //Boost Headers
9 //
10 //Qt Headers
11 //
12 //Project specific headers
13 #include "arduino.h"
14 #include "../../Generics/generics.h"
15 
16 void TestArduino() {
17 
18  std::cout << "Testing Arduino" << std::endl;
19 
20  const TCPSocketParam arduino_info = TCPSocketParam( "Arduino", "10.95.100.173", 23 );
21  std::shared_ptr<Arduino> arduino = std::shared_ptr<Arduino>( new Arduino( arduino_info.ip_addr,\
22  arduino_info.port_addr ) );
23 
24  double current_cavity_length = arduino->GetCavityLength();
25 
26  std::cout << "Current cavity length: " << current_cavity_length << std::endl;
27 }
28 
29 #endif // TEST_ARDUINO_H
Object to send and receive commands from an Arduino Uno (R3)
Definition: arduino.h:21
Definition: configprocessor.h:38