Public Member Functions | Public Attributes | Static Public Attributes | List of all members
EthercatHardwareDiagnostics Struct Reference

#include <ethercat_hardware.h>

Public Member Functions

 EthercatHardwareDiagnostics ()
 
void resetMaxTiming ()
 

Public Attributes

struct netif_counters counters_
 
unsigned device_count_
 
bool halt_after_reset_
 True if motor halt soon after motor reset. More...
 
unsigned halt_motors_error_count_
 Number of transitions into halt state due to device error. More...
 
unsigned halt_motors_service_count_
 Number of time halt_motor service call is used. More...
 
bool input_thread_is_stopped_
 
double max_pack_command_
 
double max_publish_
 
double max_txandrx_
 
double max_unpack_state_
 
bool motors_halted_
 True if motors are halted. More...
 
const char * motors_halted_reason_
 reason that motors first halted More...
 
accumulator_set< double, stats< tag::max, tag::mean > > pack_command_acc_
 time taken by all devices packCommand functions More...
 
bool pd_error_
 
accumulator_set< double, stats< tag::max, tag::mean > > publish_acc_
 time taken by any publishing step in main loop More...
 
unsigned reset_motors_service_count_
 Number of times reset_motor service has been used. More...
 
accumulator_set< double, stats< tag::max, tag::mean > > txandrx_acc_
 time taken by to transmit and recieve process data More...
 
int txandrx_errors_
 
accumulator_set< double, stats< tag::max, tag::mean > > unpack_state_acc_
 time taken by all devices updateState functions More...
 

Static Public Attributes

static const bool collect_extra_timing_ = true
 

Detailed Description

Definition at line 73 of file ethercat_hardware.h.

Constructor & Destructor Documentation

◆ EthercatHardwareDiagnostics()

EthercatHardwareDiagnostics::EthercatHardwareDiagnostics ( )

Definition at line 53 of file ethercat_hardware.cpp.

Member Function Documentation

◆ resetMaxTiming()

void EthercatHardwareDiagnostics::resetMaxTiming ( )

Definition at line 68 of file ethercat_hardware.cpp.

Member Data Documentation

◆ collect_extra_timing_

const bool EthercatHardwareDiagnostics::collect_extra_timing_ = true
static

Definition at line 97 of file ethercat_hardware.h.

◆ counters_

struct netif_counters EthercatHardwareDiagnostics::counters_

Definition at line 92 of file ethercat_hardware.h.

◆ device_count_

unsigned EthercatHardwareDiagnostics::device_count_

Definition at line 86 of file ethercat_hardware.h.

◆ halt_after_reset_

bool EthercatHardwareDiagnostics::halt_after_reset_

True if motor halt soon after motor reset.

Definition at line 88 of file ethercat_hardware.h.

◆ halt_motors_error_count_

unsigned EthercatHardwareDiagnostics::halt_motors_error_count_

Number of transitions into halt state due to device error.

Definition at line 91 of file ethercat_hardware.h.

◆ halt_motors_service_count_

unsigned EthercatHardwareDiagnostics::halt_motors_service_count_

Number of time halt_motor service call is used.

Definition at line 90 of file ethercat_hardware.h.

◆ input_thread_is_stopped_

bool EthercatHardwareDiagnostics::input_thread_is_stopped_

Definition at line 93 of file ethercat_hardware.h.

◆ max_pack_command_

double EthercatHardwareDiagnostics::max_pack_command_

Definition at line 81 of file ethercat_hardware.h.

◆ max_publish_

double EthercatHardwareDiagnostics::max_publish_

Definition at line 84 of file ethercat_hardware.h.

◆ max_txandrx_

double EthercatHardwareDiagnostics::max_txandrx_

Definition at line 82 of file ethercat_hardware.h.

◆ max_unpack_state_

double EthercatHardwareDiagnostics::max_unpack_state_

Definition at line 83 of file ethercat_hardware.h.

◆ motors_halted_

bool EthercatHardwareDiagnostics::motors_halted_

True if motors are halted.

Definition at line 94 of file ethercat_hardware.h.

◆ motors_halted_reason_

const char* EthercatHardwareDiagnostics::motors_halted_reason_

reason that motors first halted

Definition at line 95 of file ethercat_hardware.h.

◆ pack_command_acc_

accumulator_set<double, stats<tag::max, tag::mean> > EthercatHardwareDiagnostics::pack_command_acc_

time taken by all devices packCommand functions

Definition at line 77 of file ethercat_hardware.h.

◆ pd_error_

bool EthercatHardwareDiagnostics::pd_error_

Definition at line 87 of file ethercat_hardware.h.

◆ publish_acc_

accumulator_set<double, stats<tag::max, tag::mean> > EthercatHardwareDiagnostics::publish_acc_

time taken by any publishing step in main loop

Definition at line 80 of file ethercat_hardware.h.

◆ reset_motors_service_count_

unsigned EthercatHardwareDiagnostics::reset_motors_service_count_

Number of times reset_motor service has been used.

Definition at line 89 of file ethercat_hardware.h.

◆ txandrx_acc_

accumulator_set<double, stats<tag::max, tag::mean> > EthercatHardwareDiagnostics::txandrx_acc_

time taken by to transmit and recieve process data

Definition at line 78 of file ethercat_hardware.h.

◆ txandrx_errors_

int EthercatHardwareDiagnostics::txandrx_errors_

Definition at line 85 of file ethercat_hardware.h.

◆ unpack_state_acc_

accumulator_set<double, stats<tag::max, tag::mean> > EthercatHardwareDiagnostics::unpack_state_acc_

time taken by all devices updateState functions

Definition at line 79 of file ethercat_hardware.h.


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


ethercat_hardware
Author(s): Rob Wheeler , Derek King
autogenerated on Tue Mar 28 2023 02:10:20