AIC_HOST Class Reference
[AIC Simulator Interface]

#include <aichost.h>

Inheritance diagram for AIC_HOST:

Inheritance graph
[legend]
List of all members.

Detailed Description

Encapsulates functions used to provide communication between AIC simulator and host.

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


Public Types

enum  STATUS { MOTOR_ON = 1, BRAKE_APPLIED = 2 }
 AIC simulator status. More...


Public Member Functions

 AIC_HOST (void)
 Initializes AIC simulator communication.

virtual ~AIC_HOST (void)
 Closes AIC simulator communication.

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

int getstatus (void) const
 Gets the status from AIC simulator.

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

double voltage (void) const
 Gets the voltage to be applied to motor received with the last command.

double reference (void) const
 Gets the reference for Controller associtated to motor received with the last command.


Protected Attributes

double u
 Motor voltage.

double ref
 Controller reference.

int status
 Current Status.


Member Enumeration Documentation

enum AIC_HOST::STATUS
 

AIC simulator status.

Enumeration values:
MOTOR_ON  Motor is on.
BRAKE_APPLIED  Brake is applied.


Member Function Documentation

virtual int AIC_HOST::command void   )  [pure virtual]
 

Gets the command code received from host.

Returns:
command code
See also:
AIC_COMMAND

Implemented in AIC_HOST_CAN, and AIC_HOST_UDP.

int AIC_HOST::getstatus void   )  const
 

Gets the status from AIC simulator.

Returns:
status code
See also:
STATUS

double AIC_HOST::reference void   )  const
 

Gets the reference for Controller associtated to motor received with the last command.

Returns:
reference
Since:
AIC-1.6.0

virtual void AIC_HOST::send_status double  disp,
int  index
[pure virtual]
 

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

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

Implemented in AIC_HOST_CAN, and AIC_HOST_UDP.

double AIC_HOST::voltage void   )  const
 

Gets the voltage to be applied to motor received with the last command.

Returns:
voltage


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