AIC_HOST_UDP Class Reference
[AIC Simulator Interface]

#include <aichostudp.h>

Inheritance diagram for AIC_HOST_UDP:

Inheritance graph
[legend]
Collaboration diagram for AIC_HOST_UDP:

Collaboration graph
[legend]
List of all members.

Detailed Description

Provides UDP communication between AIC simulator and host.

Author:
Walter Fetter Lages (w.fetter@ieee.org)
Version:
AIC-1.3.0


Public Member Functions

 AIC_HOST_UDP (const char *controllername, int statusport=STATUS_PORT, int cmdport=CMD_PORT)
 Initializes AIC simulator UDP communication.

 ~AIC_HOST_UDP (void)
 Closes AIC simulator UDP communication.

int command (void)
 Gets the command code received from host.

void send_status (double disp, int index)
 Send AIC simulator motor displacement and sync-switch status to host.


Constructor & Destructor Documentation

AIC_HOST_UDP::AIC_HOST_UDP const char *  controllername,
int  statusport = STATUS_PORT,
int  cmdport = CMD_PORT
 

Initializes AIC simulator UDP communication.

Parameters:
controllername pointer to a string with the name of controller host
statusport UDP port to send status to
cmdport UDP port to bind to receive commands
See also:
aicnet.h


Member Function Documentation

int AIC_HOST_UDP::command void   )  [virtual]
 

Gets the command code received from host.

Returns:
command code
See also:
AIC_COMMAND

Implements AIC_HOST.

void AIC_HOST_UDP::send_status double  disp,
int  index
[virtual]
 

Send AIC simulator motor displacement and sync-switch status to host.

Parameters:
disp motor displacement in radians
index sync-switch index

Implements AIC_HOST.


The documentation for this class was generated from the following file:
Generated on Thu Mar 27 15:33:36 2008 for Actuator Interface Card by doxygen 1.3.6