#include <motor_model.h>
Definition at line 20 of file motor_model.h.
◆ MotorModel()
MotorModel::MotorModel |
( |
unsigned |
trace_size | ) |
|
◆ checkPublish()
void MotorModel::checkPublish |
( |
| ) |
|
Publishes motor trace if delay time is up.
Definition at line 87 of file motor_model.cpp.
◆ diagnostics()
Collects and publishes device diagnostics.
Definition at line 143 of file motor_model.cpp.
◆ flagPublish()
void MotorModel::flagPublish |
( |
const std::string & |
reason, |
|
|
int |
level, |
|
|
int |
delay |
|
) |
| |
flags delayed publish of motor trace.
New publish will only take precedence of previous publish iff level is higher than previous level
Definition at line 125 of file motor_model.cpp.
◆ initialize()
bool MotorModel::initialize |
( |
const ethercat_hardware::ActuatorInfo & |
actuator_info, |
|
|
const ethercat_hardware::BoardInfo & |
board_info |
|
) |
| |
◆ reset()
void MotorModel::reset |
( |
| ) |
|
◆ sample()
void MotorModel::sample |
( |
const ethercat_hardware::MotorTraceSample & |
s | ) |
|
Call for each update.
Adds sample to motor model. Also, adds sample to motor trace.
Definition at line 198 of file motor_model.cpp.
◆ verify()
bool MotorModel::verify |
( |
| ) |
|
Check for errors between sample data and motor model.
- Parameters
-
reason | string is filled in when error or warning occurs |
level | filled in with 2 (ERROR) or 1 (WARN). |
- Returns
- returns false if motor should halt
Definition at line 313 of file motor_model.cpp.
◆ abs_board_voltage_
Filter MotorModel::abs_board_voltage_ |
|
protected |
◆ abs_current_error_
Filter MotorModel::abs_current_error_ |
|
protected |
◆ abs_measured_current_
Filter MotorModel::abs_measured_current_ |
|
protected |
◆ abs_measured_voltage_error_
Filter MotorModel::abs_measured_voltage_error_ |
|
protected |
◆ abs_motor_voltage_error_
Filter MotorModel::abs_motor_voltage_error_ |
|
protected |
◆ abs_position_delta_
Filter MotorModel::abs_position_delta_ |
|
protected |
◆ abs_velocity_
Filter MotorModel::abs_velocity_ |
|
protected |
◆ actuator_info_
ethercat_hardware::ActuatorInfo MotorModel::actuator_info_ |
|
protected |
◆ backemf_constant_
double MotorModel::backemf_constant_ |
|
protected |
◆ board_info_
ethercat_hardware::BoardInfo MotorModel::board_info_ |
|
protected |
◆ current_error_
Filter MotorModel::current_error_ |
|
protected |
◆ current_error_limit_
double MotorModel::current_error_limit_ |
|
protected |
◆ diagnostics_level_
int MotorModel::diagnostics_level_ |
|
protected |
◆ diagnostics_mutex_
boost::mutex MotorModel::diagnostics_mutex_ |
|
protected |
◆ diagnostics_reason_
std::string MotorModel::diagnostics_reason_ |
|
protected |
◆ measured_voltage_error_
Filter MotorModel::measured_voltage_error_ |
|
protected |
◆ motor_resistance_
◆ motor_voltage_error_
Filter MotorModel::motor_voltage_error_ |
|
protected |
◆ previous_pwm_saturated_
bool MotorModel::previous_pwm_saturated_ |
|
protected |
◆ publish_delay_
int MotorModel::publish_delay_ |
|
protected |
◆ publish_level_
int MotorModel::publish_level_ |
|
protected |
◆ publish_reason_
std::string MotorModel::publish_reason_ |
|
protected |
◆ published_traces_
unsigned MotorModel::published_traces_ |
|
protected |
◆ publisher_
◆ trace_buffer_
std::vector<ethercat_hardware::MotorTraceSample> MotorModel::trace_buffer_ |
|
protected |
◆ trace_index_
unsigned MotorModel::trace_index_ |
|
protected |
◆ trace_size_
unsigned MotorModel::trace_size_ |
|
protected |
The documentation for this class was generated from the following files: