Electric Tiger DAQ  1.0.0
Data Acquisition Software for the Electric Tiger Experiment
Public Member Functions | List of all members
Arduino Class Reference

Object to send and receive commands from an Arduino Uno (R3) More...

#include <arduino.h>

Inheritance diagram for Arduino:
Inheritance graph
[legend]
Collaboration diagram for Arduino:
Collaboration graph
[legend]

Public Member Functions

 Arduino (std::string ip_addr, uint port_number, QObject *parent=0)
 
Arduinooperator= (const Arduino &)=delete
 
double GetCavityLength ()
 Get the current cavity length from the Arduino. More...
 
- Public Member Functions inherited from AbstractSocketCommunicator
 AbstractSocketCommunicator (std::string ip_addr, uint port_number, QObject *parent=0)
 
 AbstractSocketCommunicator (const TCPSocketParam socket_param, QObject *parent=0)
 
AbstractSocketCommunicatoroperator= (const AbstractSocketCommunicator &)=delete
 

Additional Inherited Members

- Protected Attributes inherited from AbstractSocketCommunicator
QSocketCommsocket
 

Detailed Description

Object to send and receive commands from an Arduino Uno (R3)

Arduino is expected to be equipped with an Ethernet Shield and string potentiometer.

Member Function Documentation

double Arduino::GetCavityLength ( )

Get the current cavity length from the Arduino.

This function will poll the Arduino until a non-empty string is returned, guaranteeing that the return value will be valid.

Note that this does not elminate the problem of getting 'doubled' responses, e.g. "7.5\r\n7.5"

Returns
Current length of the cavity, in inches

The documentation for this class was generated from the following files: