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 ( )

Definition at line 53 of file ethercat_hardware.cpp.

Member Function Documentation

void EthercatHardwareDiagnostics::resetMaxTiming ( )

Definition at line 68 of file ethercat_hardware.cpp.

Member Data Documentation

const bool EthercatHardwareDiagnostics::collect_extra_timing_ = true
static

Definition at line 97 of file ethercat_hardware.h.

struct netif_counters EthercatHardwareDiagnostics::counters_

Definition at line 92 of file ethercat_hardware.h.

unsigned EthercatHardwareDiagnostics::device_count_

Definition at line 86 of file ethercat_hardware.h.

bool EthercatHardwareDiagnostics::halt_after_reset_

True if motor halt soon after motor reset.

Definition at line 88 of file ethercat_hardware.h.

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.

unsigned EthercatHardwareDiagnostics::halt_motors_service_count_

Number of time halt_motor service call is used.

Definition at line 90 of file ethercat_hardware.h.

bool EthercatHardwareDiagnostics::input_thread_is_stopped_

Definition at line 93 of file ethercat_hardware.h.

double EthercatHardwareDiagnostics::max_pack_command_

Definition at line 81 of file ethercat_hardware.h.

double EthercatHardwareDiagnostics::max_publish_

Definition at line 84 of file ethercat_hardware.h.

double EthercatHardwareDiagnostics::max_txandrx_

Definition at line 82 of file ethercat_hardware.h.

double EthercatHardwareDiagnostics::max_unpack_state_

Definition at line 83 of file ethercat_hardware.h.

bool EthercatHardwareDiagnostics::motors_halted_

True if motors are halted.

Definition at line 94 of file ethercat_hardware.h.

const char* EthercatHardwareDiagnostics::motors_halted_reason_

reason that motors first halted

Definition at line 95 of file ethercat_hardware.h.

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.

bool EthercatHardwareDiagnostics::pd_error_

Definition at line 87 of file ethercat_hardware.h.

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.

unsigned EthercatHardwareDiagnostics::reset_motors_service_count_

Number of times reset_motor service has been used.

Definition at line 89 of file ethercat_hardware.h.

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.

int EthercatHardwareDiagnostics::txandrx_errors_

Definition at line 85 of file ethercat_hardware.h.

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 Thu Mar 4 2021 03:10:21