chore(ethercat): log cyclic timing on missed deadlines
This commit is contained in:
parent
f667bbde73
commit
59576ff7e9
@ -645,12 +645,17 @@ void EthercatMotorBusRuntime::cyclicLoop_()
|
||||
}
|
||||
|
||||
if (send_at >= next_timing_log && timing.min_send_interval != SteadyClock::duration::max()) {
|
||||
CMVR_LOG(DEBUG) << "[EthercatMotorBusRuntime] cyclic timing: " << id_
|
||||
<< ", period_us=" << period.count()
|
||||
<< ", min_send_interval_us=" << toMicroseconds(timing.min_send_interval)
|
||||
<< ", max_send_interval_us=" << toMicroseconds(timing.max_send_interval)
|
||||
<< ", max_wake_lateness_us=" << toMicroseconds(timing.max_wake_lateness)
|
||||
<< ", missed_deadlines=" << timing.missed_deadlines;
|
||||
if (timing.missed_deadlines > 0) {
|
||||
CMVR_LOG(DEBUG) << "[EthercatMotorBusRuntime] cyclic timing: " << id_
|
||||
<< ", period_us=" << period.count()
|
||||
<< ", min_send_interval_us="
|
||||
<< toMicroseconds(timing.min_send_interval)
|
||||
<< ", max_send_interval_us="
|
||||
<< toMicroseconds(timing.max_send_interval)
|
||||
<< ", max_wake_lateness_us="
|
||||
<< toMicroseconds(timing.max_wake_lateness)
|
||||
<< ", missed_deadlines=" << timing.missed_deadlines;
|
||||
}
|
||||
timing = {};
|
||||
next_timing_log = send_at + timing_log_period;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user