#include <motor_model.h>
Definition at line 20 of file motor_model.h.
MotorModel::MotorModel |
( |
unsigned |
trace_size | ) |
|
void MotorModel::checkPublish |
( |
| ) |
|
Publishes motor trace if delay time is up.
Definition at line 87 of file motor_model.cpp.
Collects and publishes device diagnostics.
Definition at line 143 of file motor_model.cpp.
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.
bool MotorModel::initialize |
( |
const ethercat_hardware::ActuatorInfo & |
actuator_info, |
|
|
const ethercat_hardware::BoardInfo & |
board_info |
|
) |
| |
void MotorModel::reset |
( |
| ) |
|
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.
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.
Filter MotorModel::abs_board_voltage_ |
|
protected |
Filter MotorModel::abs_current_error_ |
|
protected |
Filter MotorModel::abs_measured_current_ |
|
protected |
Filter MotorModel::abs_measured_voltage_error_ |
|
protected |
Filter MotorModel::abs_motor_voltage_error_ |
|
protected |
Filter MotorModel::abs_position_delta_ |
|
protected |
Filter MotorModel::abs_velocity_ |
|
protected |
ethercat_hardware::ActuatorInfo MotorModel::actuator_info_ |
|
protected |
double MotorModel::backemf_constant_ |
|
protected |
ethercat_hardware::BoardInfo MotorModel::board_info_ |
|
protected |
Filter MotorModel::current_error_ |
|
protected |
double MotorModel::current_error_limit_ |
|
protected |
int MotorModel::diagnostics_level_ |
|
protected |
boost::mutex MotorModel::diagnostics_mutex_ |
|
protected |
std::string MotorModel::diagnostics_reason_ |
|
protected |
Filter MotorModel::measured_voltage_error_ |
|
protected |
Filter MotorModel::motor_voltage_error_ |
|
protected |
bool MotorModel::previous_pwm_saturated_ |
|
protected |
int MotorModel::publish_delay_ |
|
protected |
int MotorModel::publish_level_ |
|
protected |
std::string MotorModel::publish_reason_ |
|
protected |
unsigned MotorModel::published_traces_ |
|
protected |
std::vector<ethercat_hardware::MotorTraceSample> MotorModel::trace_buffer_ |
|
protected |
unsigned MotorModel::trace_index_ |
|
protected |
unsigned MotorModel::trace_size_ |
|
protected |
The documentation for this class was generated from the following files: