A class to control motors from Faulhaber (via RS232 link). More...
#include <motorsControl.h>
A class to control motors from Faulhaber (via RS232 link).
motorsControl.h
Here is a link to the Header File Reference.
motorsControl.cpp
Here is a link to the C++ File Reference.
Definition at line 33 of file motorsControl.h.
Motors::Motors | ( | ) |
Constructor, initialize communication with motors
Definition at line 13 of file motorsControl.cpp.
Motors::~Motors | ( | ) |
Destructor, close communication with motors
Definition at line 33 of file motorsControl.cpp.
void Motors::DisableLeft | ( | ) |
void Motors::DisableRight | ( | ) |
void Motors::EnableLeft | ( | ) |
void Motors::EnableRight | ( | ) |
int Motors::GetLeftAcc | ( | ) |
Get left acceleration (from 0 to 30000 r/sē)
Definition at line 444 of file motorsControl.cpp.
int Motors::GetLeftContCurrentLimit | ( | ) |
Get left continuous current limit (from 0 t 12000 mA)
Definition at line 600 of file motorsControl.cpp.
int Motors::GetLeftDec | ( | ) |
Get left deceleration (from 0 to 30000 r/sē)
Definition at line 496 of file motorsControl.cpp.
int Motors::GetLeftPeakCurrentLimit | ( | ) |
Get left peak current limit (from 0 to 12000 mA)
Definition at line 548 of file motorsControl.cpp.
int Motors::GetLeftPos | ( | ) |
Get left position (from -1.8*10^9 to +1.8*10^9)
Definition at line 392 of file motorsControl.cpp.
int Motors::GetLeftSpeed | ( | ) |
Set left speed (from 0 to 32767 rpm)
Definition at line 339 of file motorsControl.cpp.
int Motors::GetRightAcc | ( | ) |
Get right acceleration (from 0 to 30000 r/sē)
Definition at line 469 of file motorsControl.cpp.
int Motors::GetRightContCurrentLimit | ( | ) |
Get right continuous current limit (from 0 to 12000 mA)
Definition at line 625 of file motorsControl.cpp.
int Motors::GetRightDec | ( | ) |
Get right deceleration (from 0 to 30000 r/sē)
Definition at line 521 of file motorsControl.cpp.
int Motors::GetRightPeakCurrentLimit | ( | ) |
Get right peak current limit (from 0 to 12000 mA)
Definition at line 573 of file motorsControl.cpp.
int Motors::GetRightPos | ( | ) |
Get right position (from -1.8*10^9 to +1.8*10^9)
Definition at line 417 of file motorsControl.cpp.
int Motors::GetRightSpeed | ( | ) |
Set right speed (from 0 to 32767 rpm)
Definition at line 365 of file motorsControl.cpp.
void Motors::ResetLeft | ( | ) |
void Motors::ResetRight | ( | ) |
void Motors::SetLeftAbsolutePos | ( | int | Pos | ) |
Set left absolute position (from -1.8*10^9 to +1.8*10^9)
Pos | Defines the position to use |
Definition at line 197 of file motorsControl.cpp.
void Motors::SetLeftAcc | ( | int | Acc | ) |
Set left acceleration (from 0 to 30000 r/sē)
Acc | Defines the acceleration to use |
Definition at line 251 of file motorsControl.cpp.
void Motors::SetLeftContCurrentLimit | ( | int | Current | ) |
Set left continuous current limit (from 0 to 12000 mA)
Current | Defines the current limit to use |
Definition at line 314 of file motorsControl.cpp.
void Motors::SetLeftDec | ( | int | Dec | ) |
Set left deceleration (from 0 to 30000 r/sē)
Dec | Defines the deceleration to use |
Definition at line 272 of file motorsControl.cpp.
void Motors::SetLeftPeakCurrentLimit | ( | int | Current | ) |
Set left peak current limit (from 0 to 12000 mA)
Current | Defines the current limit to use |
Definition at line 293 of file motorsControl.cpp.
void Motors::SetLeftRelativePos | ( | int | Pos | ) |
Set left relative position (from -2.14*10^9 to +2.14*10^9)
Pos | Defines the position to use |
Definition at line 221 of file motorsControl.cpp.
void Motors::SetLeftSpeed | ( | int | Vit | ) |
Set left speed (from 0 to 32727 rpm)
Vit | Defines the speed to use |
Definition at line 171 of file motorsControl.cpp.
void Motors::SetRightAbsolutePos | ( | int | Pos | ) |
Set right absolute position (from -1.8*10^9 to +1.8*10^9)
Pos | Defines the position to use |
Definition at line 208 of file motorsControl.cpp.
void Motors::SetRightAcc | ( | int | Acc | ) |
Set right acceleration (from 0 to 30000 r/sē)
Acc | Defines the acceleration to use |
Definition at line 261 of file motorsControl.cpp.
void Motors::SetRightContCurrentLimit | ( | int | Current | ) |
Set right continuous current limit (from 0 to 12000 mA)
Current | Defines the current limit to use |
Definition at line 324 of file motorsControl.cpp.
void Motors::SetRightDec | ( | int | Dec | ) |
Set right deceleration (from 0 to 30000 r/sē)
Dec | Defines the deceleration to use |
Definition at line 282 of file motorsControl.cpp.
void Motors::SetRightPeakCurrentLimit | ( | int | Current | ) |
Set right peak current limit (from 0 to 12000 mA)
Current | Defines the current limit to use |
Definition at line 303 of file motorsControl.cpp.
void Motors::SetRightRelativePos | ( | int | Pos | ) |
Set right relative position (from -2.14*10^9 to +2.14*10^9)
Pos | Defines the position to use |
Definition at line 233 of file motorsControl.cpp.
void Motors::SetRightSpeed | ( | int | Vit | ) |
Set right speed (from 0 to 32727 rpm)
Vit | Defines the speed to use |
Definition at line 183 of file motorsControl.cpp.
bool Motors::WaitLeftAnswer | ( | ) |
Wait for left motor answer
Definition at line 113 of file motorsControl.cpp.
bool Motors::WaitRightAnswer | ( | ) |
Wait for right motor answer
Definition at line 152 of file motorsControl.cpp.