mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-08-20 22:14:34 +08:00
remove deprecated loop_count variable
This commit is contained in:
@@ -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_;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user