25 #ifndef _mtsLoPoMoCo_h
26 #define _mtsLoPoMoCo_h
39 class osaLoPoMoCoBoardIO;
50 std::vector<osaLoPoMoCoBoardIO *> Board;
53 std::vector<int> StartAxis;
56 std::vector<int> EndAxis;
59 std::vector<unsigned int> MaxAxis;
62 std::vector<int> BaseAddress;
116 inline int MapAxisToBoard(
unsigned short axisIndex) {
120 void ConfigureOneBoard(
const std::string & filename,
const int boardIndex);
121 void parseInputArgument(
const std::string &inputArgument, std::string &relativeFilePath, std::string &fileName);
129 mtsLoPoMoCo(
const std::string& deviceName,
unsigned int numberOfBoards);
138 virtual void Configure(
const std::string &filename);
147 void LatchEncoders(
void);
153 void StartMotorCurrentConv(
void);
158 void StartPotFeedbackConv(
void);
159 void StartPotFeedbackConvFast(
void);
163 void EnableAll(
void);
166 void DisableAll(
void);
175 void GetPositions(
mtsLongVec & Positions)
const;
182 void GetVelocities(
mtsShortVec & Velocities)
const;
188 void GetMotorCurrents(
mtsShortVec & MotorCurrents)
const;
194 void GetPotFeedbacks(
mtsShortVec & PotFeedbacks)
const;
204 void SetMotorVoltages(
const mtsShortVec & MotorVoltages);
211 void SetCurrentLimits(
const mtsShortVec & CurrentLimits);
217 void SetPositions(
const mtsLongVec & Positions);
222 void LoadMotorVoltages(
void);
228 void LoadCurrentLimits(
void);
233 void LoadMotorVoltagesCurrentLimits(
void);
262 void Enable(
const mtsShort & axisIndex);
266 void Disable(
const mtsShort & axisIndex);
270 void ResetEncoders(
const mtsShort & axisIndex);
273 void SetDigitalOutput(
const mtsIntVec & DigitalOutput);
276 void GetDigitalInput(
mtsIntVec & DigitalInput)
const;
280 void GetLatchedIndex(
mtsShortVec & latchedIndex)
const;
285 #endif // _mtsLoPoMoCo_h
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Definition: mtsLoPoMoCo.h:44
Declaration of mtsComponent.
Definition: mtsComponent.h:150
CMN_DECLARE_SERVICES_INSTANTIATION(mtsLoPoMoCo)
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
Definition: mtsGenericObjectProxy.h:45
const int CMN_NO_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:328
virtual void Configure(const std::string &filename="")
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76