#include <YouBotJointParameterReadOnly.hpp>
Public Member Functions | |
ErrorAndStatus () | |
void | getParameter (unsigned int ¶meter) const |
void | toString (std::string &value) |
virtual | ~ErrorAndStatus () |
Private Member Functions | |
std::string | getName () const |
ParameterType | getType () const |
void | getYouBotMailboxMsg (YouBotSlaveMailboxMsg &message, TMCLCommandNumber msgType, const YouBotJointStorage &storage) const |
void | parseYouBotErrorFlags () const |
void | setYouBotMailboxMsg (const YouBotSlaveMailboxMsg &message, const YouBotJointStorage &storage) |
Private Attributes | |
std::string | name |
ParameterType | parameterType |
unsigned int | value |
Friends | |
class | YouBotJoint |
Error and Status flags of the joint. Bit 0: Overcurrent flag. This flag is set if overcurrent limit is exceeded.
Bit 1: Undervoltage flag. This flag is set if supply voltage to low for motor operation.
Bit 2: Overvoltage flag. This flag is set if the motor becomes switched off due to overvoltage.
Bit 3: Overtemperature flag. This flag is set if overtemperature limit is exceeded.
Bit 4: Motor halted flag. This flag is set if motor has been switched off.
Bit 5: Hall error flag. This flag is set upon a hall error.
Bit 6: Encoder error flag. This flag is set upon an encoder error.
Bit 7: Winding error flag. [currently not used]
Bit 8: Cycle time violation. [currently not used]
Bit 9: Initialization error of sine commutation. This flag is set if initialization is failed.
Bit 10: Position mode flag. This flag is set when the module is in positioning mode.
Bit 11: Position end flag. This flag becomes set if the motor has been stopped at the end position.
Definition at line 153 of file YouBotJointParameterReadOnly.hpp.
Definition at line 120 of file YouBotJointParameterReadOnly.cpp.
youbot::ErrorAndStatus::~ErrorAndStatus | ( | ) | [virtual] |
Definition at line 128 of file YouBotJointParameterReadOnly.cpp.
std::string youbot::ErrorAndStatus::getName | ( | ) | const [inline, private, virtual] |
Implements youbot::YouBotJointParameterReadOnly.
Definition at line 171 of file YouBotJointParameterReadOnly.hpp.
void youbot::ErrorAndStatus::getParameter | ( | unsigned int & | parameter | ) | const |
Definition at line 134 of file YouBotJointParameterReadOnly.cpp.
ParameterType youbot::ErrorAndStatus::getType | ( | ) | const [inline, private, virtual] |
Implements youbot::YouBotJointParameterReadOnly.
Definition at line 177 of file YouBotJointParameterReadOnly.hpp.
void youbot::ErrorAndStatus::getYouBotMailboxMsg | ( | YouBotSlaveMailboxMsg & | message, |
TMCLCommandNumber | msgType, | ||
const YouBotJointStorage & | storage | ||
) | const [private, virtual] |
Implements youbot::YouBotJointParameterReadOnly.
Definition at line 151 of file YouBotJointParameterReadOnly.cpp.
void youbot::ErrorAndStatus::parseYouBotErrorFlags | ( | ) | const [private] |
Definition at line 173 of file YouBotJointParameterReadOnly.cpp.
void youbot::ErrorAndStatus::setYouBotMailboxMsg | ( | const YouBotSlaveMailboxMsg & | message, |
const YouBotJointStorage & | storage | ||
) | [private, virtual] |
Implements youbot::YouBotJointParameterReadOnly.
Definition at line 163 of file YouBotJointParameterReadOnly.cpp.
void youbot::ErrorAndStatus::toString | ( | std::string & | value | ) | [virtual] |
Implements youbot::YouBotJointParameterReadOnly.
Definition at line 142 of file YouBotJointParameterReadOnly.cpp.
friend class YouBotJoint [friend] |
Reimplemented from youbot::YouBotJointParameterReadOnly.
Definition at line 155 of file YouBotJointParameterReadOnly.hpp.
std::string youbot::ErrorAndStatus::name [private] |
Reimplemented from youbot::YouBotJointParameterReadOnly.
Definition at line 187 of file YouBotJointParameterReadOnly.hpp.
Reimplemented from youbot::YouBotJointParameterReadOnly.
Definition at line 189 of file YouBotJointParameterReadOnly.hpp.
unsigned int youbot::ErrorAndStatus::value [private] |
Definition at line 185 of file YouBotJointParameterReadOnly.hpp.