remove deprecated loop_count variable

This commit is contained in:
Samuel Sadok
2021-01-04 17:06:00 +01:00
parent f5c6e092f8
commit ee66ae8dfa
3 changed files with 1 additions and 3 deletions
-1
View File
@@ -187,7 +187,6 @@ public:
AxisState requested_state_ = AXIS_STATE_STARTUP_SEQUENCE;
std::array<AxisState, 10> task_chain_ = { AXIS_STATE_UNDEFINED };
AxisState& current_state_ = task_chain_.front();
uint32_t loop_counter_ = 0;
Homing_t homing_;
CAN_t can_;
-1
View File
@@ -407,7 +407,6 @@ interfaces:
last_drv_fault: readonly uint32
current_state: readonly AxisState
requested_state: AxisState
loop_counter: readonly uint32
is_homed: {type: bool, c_name: homing_.is_homed}
config:
c_is_class: False
+1 -1
View File
@@ -324,7 +324,7 @@ def rate_test(device):
numFrames = 10000
vals = []
for _ in range(numFrames):
vals.append(device.axis0.loop_counter)
vals.append(device.n_evt_control_loop)
loopsPerFrame = (vals[-1] - vals[0])/numFrames
loopsPerSec = (168000000/(6*3500))