Joint Level Control
Public Member Functions | List of all members
Motor Class Reference

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)
 

Detailed Description

This class abstracts the communication with the motorcontrollers (currently Hacker Herkules 5 BLDC).

Constructor & Destructor Documentation

◆ Motor()

Motor::Motor ( const std::string &  can_name,
uint8_t  can_id 
)

\biref Constructor of the Motor class

Parameters
CAN-IDand Adress of the to be controller BLDC

Member Function Documentation

◆ setCurrent()

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


The documentation for this class was generated from the following files: