|
AMK_motor_drive_software 1.0.0
|
Class to represent a potentiometer, providing methods to read and calculate RPM and torque values. More...
#include <Potentiometer.hpp>
Public Member Functions | |
| Potentiometer () | |
| Constructor for the Potentiometer class. | |
| void | update () |
| Updates the potentiometer reading and calculates RPM, positive torque, and negative torque. | |
| int16_t | getRpm () const |
| Gets the calculated RPM value. | |
| int16_t | getTorquePos () const |
| Gets the positive torque value. | |
| int16_t | getTorqueNeg () const |
| Gets the negative torque value. | |
| int | getRawValue () const |
| Gets the raw analog value from the potentiometer. | |
Class to represent a potentiometer, providing methods to read and calculate RPM and torque values.
| Potentiometer::Potentiometer | ( | ) |
Constructor for the Potentiometer class.
| int Potentiometer::getRawValue | ( | ) | const |
Gets the raw analog value from the potentiometer.
| int16_t Potentiometer::getRpm | ( | ) | const |
Gets the calculated RPM value.
| int16_t Potentiometer::getTorqueNeg | ( | ) | const |
Gets the negative torque value.
| int16_t Potentiometer::getTorquePos | ( | ) | const |
Gets the positive torque value.
| void Potentiometer::update | ( | ) |
Updates the potentiometer reading and calculates RPM, positive torque, and negative torque.