Public Member Functions | Private Attributes
DualMC33926 Class Reference

#include <DualMC33926.h>

List of all members.

Public Member Functions

 DualMC33926 ()
 DualMC33926 (unsigned char M1DIR, unsigned char M1PWM, unsigned char M1FB, unsigned char M2DIR, unsigned char M2PWM, unsigned char M2FB, unsigned char nD2, unsigned char nSF)
unsigned char getFault ()
float getM1CurrentMilliamps ()
float getM2CurrentMilliamps ()
unsigned char getTorque ()
void init ()
void restart ()
void setM1Speed (int speed)
void setM2Speed (int speed)
void setSpeeds (int m1Speed, int m2Speed)
void setTorque (bool t)

Private Attributes

unsigned char _M1DIR
unsigned char _M1FB
unsigned char _M1PWM
unsigned char _M2DIR
unsigned char _M2FB
unsigned char _M2PWM
unsigned char _nD2
unsigned char _nSF

Detailed Description

Definition at line 10 of file DualMC33926.h.


Constructor & Destructor Documentation

Definition at line 12 of file DualMC33926.cpp.

DualMC33926::DualMC33926 ( unsigned char  M1DIR,
unsigned char  M1PWM,
unsigned char  M1FB,
unsigned char  M2DIR,
unsigned char  M2PWM,
unsigned char  M2FB,
unsigned char  nD2,
unsigned char  nSF 
)

Definition at line 25 of file DualMC33926.cpp.


Member Function Documentation

unsigned char DualMC33926::getFault ( )

Definition at line 249 of file DualMC33926.cpp.

Definition at line 222 of file DualMC33926.cpp.

Definition at line 236 of file DualMC33926.cpp.

unsigned char DualMC33926::getTorque ( )

Definition at line 153 of file DualMC33926.cpp.

Definition at line 42 of file DualMC33926.cpp.

Definition at line 165 of file DualMC33926.cpp.

void DualMC33926::setM1Speed ( int  speed)

Definition at line 173 of file DualMC33926.cpp.

void DualMC33926::setM2Speed ( int  speed)

Definition at line 194 of file DualMC33926.cpp.

void DualMC33926::setSpeeds ( int  m1Speed,
int  m2Speed 
)

Definition at line 215 of file DualMC33926.cpp.

void DualMC33926::setTorque ( bool  t)

Definition at line 158 of file DualMC33926.cpp.


Member Data Documentation

unsigned char DualMC33926::_M1DIR [private]

Definition at line 33 of file DualMC33926.h.

unsigned char DualMC33926::_M1FB [private]

Definition at line 38 of file DualMC33926.h.

unsigned char DualMC33926::_M1PWM [private]

Definition at line 35 of file DualMC33926.h.

unsigned char DualMC33926::_M2DIR [private]

Definition at line 34 of file DualMC33926.h.

unsigned char DualMC33926::_M2FB [private]

Definition at line 39 of file DualMC33926.h.

unsigned char DualMC33926::_M2PWM [private]

Definition at line 36 of file DualMC33926.h.

unsigned char DualMC33926::_nD2 [private]

Definition at line 32 of file DualMC33926.h.

unsigned char DualMC33926::_nSF [private]

Definition at line 37 of file DualMC33926.h.


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


lizi_arduino
Author(s): RoboTiCan
autogenerated on Wed Aug 26 2015 12:24:23