|
Joint Level Control
|
This class abstracts the communication with the motorcontrollers (currently Hacker Herkules 5 BLDC). More...
#include <motor.h>
Public Member Functions | |
| Motor (const std::string &can_name, uint8_t can_id) | |
| void | setCurrent (double current) |
| int | writeCAN (can_frame *frame) |
This class abstracts the communication with the motorcontrollers (currently Hacker Herkules 5 BLDC).
| Motor::Motor | ( | const std::string & | can_name, |
| uint8_t | can_id | ||
| ) |
\biref Constructor of the Motor class
| CAN-ID | and Adress of the to be controller BLDC |
| void Motor::setCurrent | ( | double | current | ) |
Sets the current of this class instance. Contrary to the Can function it accepts a double, meaning its sets the true current