br::ufrgs::ece::AIC::Motor Class Reference
[AIC Hardware Interface]

Collaboration diagram for br::ufrgs::ece::AIC::Motor:

Collaboration graph
[legend]
List of all members.

Detailed Description

Provices access to the motor driver in an Actuator Interface Card.

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


Public Member Functions

 Motor (int baseadd, double voltage, double freq)
 Initializes the motor driver.

 Motor (int baseadd, double voltage)
 Initializes the motor driver using the default PWM frequency (20KHz).

void finalize ()
 Finalizes the motor driver.

void on ()
 Turns the motor driver on.

void off ()
 Turns the motor driver off.

double set (double voltage)
 Sets the voltage to be applied by the motor driver.


Constructor & Destructor Documentation

br::ufrgs::ece::AIC::Motor::Motor int  baseadd,
double  voltage,
double  freq
[inline]
 

Initializes the motor driver.

Parameters:
baseadd Base address for on board devices
voltage Motor Voltage
freq PWM frequency

br::ufrgs::ece::AIC::Motor::Motor int  baseadd,
double  voltage
[inline]
 

Initializes the motor driver using the default PWM frequency (20KHz).

Parameters:
baseadd Base address for on board devices
voltage Motor Voltage


Member Function Documentation

double br::ufrgs::ece::AIC::Motor::set double  voltage  )  [inline]
 

Sets the voltage to be applied by the motor driver.

Parameters:
voltage to be applied by the motor driver
Returns:
the duty-cycle of the associated PWM


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