MyoSyn
A C++ library control synthetic muscles in tendon-driven robots
|
Go to the source code of this file.
Macros | |
#define | _USE_MATH_DEFINES |
Functions | |
unsigned | myosynNumMuscles () |
Returns the number of muscles configured by the library. | |
DAQarrangement | myosynGetConfiguration () |
void | myosynSetConfiguration (DAQarrangement DAQconfiguration) |
Set the muscle configuration/arrangement type of the library. List of possibilities in the DAQarrangement enum. | |
double | myosynSamplingRate (double newSamplingRate) |
Sets the sampling rate of the data acquisition and controller of all the muscle channels. The default rate is 1000Hz. | |
void | myosynStart () |
This routine starts the data acquisition on all muscle channels that haven't already been started so long as at least one channel has been configured. | |
void | myosynStop () |
This function sops the data acquisition of all muscle channels that were started (ie. active). | |
int | myosynGetLeaderChannel () |
Returns the leader muscle channel which governs/triggers data acquisition on all other muscles. | |
void | myosynSetLeaderChannel (int newLeader) |
Sets the leader/master muscle channel which governs/triggers data acquisition on all other muscles. | |
void | myosynReadInputs () |
Global function to read all DAQ inputs in a synchronized manner. The results are put into the class objects of each muscle channel. | |
void | myosynWriteOutputs () |
Global function to write all DAQ outputs in a synchronized manner. The results are put into the class objects of each muscle channel. | |
void | myosynWaitForClock () |
This blocking function waits for the clock period to finish between two function calls. So, if the sampling period is 1ms, the second call of this function will block until 1ms has passed betwen two function calls. | |
Variables | |
unsigned | muscle_mtr_val [16][2] |
unsigned | muscle_mtr_en [16][2] |
unsigned | muscle_enc_ring [8][2] |
unsigned | muscle_enc_kleo [8][2] |
unsigned | muscle_enc_mtr [12][2] |
unsigned | muscle_enc_spl [12][2] |
unsigned | muscle_ld_cell [8][2] |
double | loadcell_calib [8][2] |
unsigned | channel_limits [3][2] |
DAQarrangement | myosynConfiguration = RING_OF_FIRE |
unsigned | numConfiguredMuscles = 0 |
int | myosynLeader = -1 |
double | myosyn_samplingRate_global = 1000.0 |
#define _USE_MATH_DEFINES |
Definition at line 7 of file myosyn.cpp.
DAQarrangement myosynGetConfiguration | ( | ) |
Definition at line 122 of file myosyn.cpp.
int myosynGetLeaderChannel | ( | ) |
Returns the leader muscle channel which governs/triggers data acquisition on all other muscles.
Definition at line 181 of file myosyn.cpp.
unsigned myosynNumMuscles | ( | ) |
Returns the number of muscles configured by the library.
Definition at line 117 of file myosyn.cpp.
void myosynReadInputs | ( | ) |
Global function to read all DAQ inputs in a synchronized manner. The results are put into the class objects of each muscle channel.
Definition at line 191 of file myosyn.cpp.
double myosynSamplingRate | ( | double | newSamplingRate = myosyn_samplingRate_global | ) |
Sets the sampling rate of the data acquisition and controller of all the muscle channels. The default rate is 1000Hz.
newSamplingRate | The global sampling rate of the DAQ subsystem. Cannot be overriden. |
Definition at line 136 of file myosyn.cpp.
void myosynSetConfiguration | ( | DAQarrangement | DAQconfiguration | ) |
Set the muscle configuration/arrangement type of the library. List of possibilities in the DAQarrangement enum.
DAQconfiguration | The muscle configuration type (from the DAQarrangement enum) to which the library muscle be set. |
Definition at line 126 of file myosyn.cpp.
void myosynSetLeaderChannel | ( | int | newLeader | ) |
Sets the leader/master muscle channel which governs/triggers data acquisition on all other muscles.
newLeader | The muscle channel which needs to be set as a leader. |
Definition at line 186 of file myosyn.cpp.
void myosynStart | ( | ) |
This routine starts the data acquisition on all muscle channels that haven't already been started so long as at least one channel has been configured.
Definition at line 146 of file myosyn.cpp.
void myosynStop | ( | ) |
This function sops the data acquisition of all muscle channels that were started (ie. active).
Definition at line 168 of file myosyn.cpp.
void myosynWaitForClock | ( | ) |
This blocking function waits for the clock period to finish between two function calls. So, if the sampling period is 1ms, the second call of this function will block until 1ms has passed betwen two function calls.
Definition at line 208 of file myosyn.cpp.
void myosynWriteOutputs | ( | ) |
Global function to write all DAQ outputs in a synchronized manner. The results are put into the class objects of each muscle channel.
Definition at line 203 of file myosyn.cpp.
unsigned channel_limits[3][2] |
Definition at line 106 of file myosyn.cpp.
double loadcell_calib[8][2] |
Definition at line 97 of file myosyn.cpp.
unsigned muscle_enc_kleo[8][2] |
Definition at line 53 of file myosyn.cpp.
unsigned muscle_enc_mtr[12][2] |
Definition at line 62 of file myosyn.cpp.
unsigned muscle_enc_ring[8][2] |
Definition at line 44 of file myosyn.cpp.
unsigned muscle_enc_spl[12][2] |
Definition at line 75 of file myosyn.cpp.
unsigned muscle_ld_cell[8][2] |
Definition at line 88 of file myosyn.cpp.
unsigned muscle_mtr_en[16][2] |
Definition at line 27 of file myosyn.cpp.
unsigned muscle_mtr_val[16][2] |
Definition at line 10 of file myosyn.cpp.
double myosyn_samplingRate_global = 1000.0 |
Definition at line 114 of file myosyn.cpp.
DAQarrangement myosynConfiguration = RING_OF_FIRE |
Definition at line 111 of file myosyn.cpp.
int myosynLeader = -1 |
Definition at line 113 of file myosyn.cpp.
unsigned numConfiguredMuscles = 0 |
Definition at line 112 of file myosyn.cpp.