juanmf / StepperMotors

Python stepper motor library with customizable acceleration strategies and responsive, interruptible motor operations.
https://github.com/juanmf/StepperMotors
MIT License
19 stars 0 forks source link

Benchmark broken after cumulative changes since previous releases. #15

Closed juanmf closed 7 months ago

juanmf commented 7 months ago

Step 3:

[20:22:37.329256] 3) Starting from minPPS will try to jump to greatest next PPS that you observe not to fail with.
[20:22:37.329261]             'y': Notify the system about successful Speed Boost
[20:22:37.329267]             'n': Notify the system about failed Speed Boost
[20:22:37.329273]             'r': Repeat Speed Boost

Accepting (speed bump) 'y' and rejecting 'n' has chaotic behavior now:

[20:23:22.173311] Enter pressed, setting picked True!!!
[20:23:22:685233] Max Speed: 520 <<===
@end thread dump MainThread =========================================
===================================================================================
Thread prints Dump Complete =======================================================
INFO:root:
@start thread dump MainProcess => MainThread ========================================
==========================================================================
[20:23:22.686475] 
[20:23:22.686515] FINDING SPEED BOOSTS FOR MOTOR.
[20:23:22.686532] 
[20:23:23.186991] stepperMotor: <stepper_motors_juanmf1.StepperMotor.PG35S_D48_HHC2 object at 0x7fb81a38d0>, steppingModeMultiple 1
[20:23:23.187153] 
[20:23:23.187196] speedBoosts: [(150, 5)]
[20:23:23.187217] 
@end thread dump MainThread =========================================
===================================================================================
Thread prints Dump Complete =======================================================
INFO:root:
@start thread dump MainProcess => MainThread ========================================
==========================================================================
[20:23:27.388531] PASSED speed boost: cPPs: 155 last Speed: 150
[20:23:27.388587] Restarting cycle.
[20:23:27.388641] Doubling Delta: new delta: 10
[20:23:27.388664] 
[20:23:27.388679] FINDING SPEED BOOSTS FOR MOTOR.
[20:23:27.388694] 
[20:23:27.889107] 
[20:23:27.889201] speedBoosts: [(150, 5)]
[20:23:27.889221] 
@end thread dump MainThread =========================================
===================================================================================
Thread prints Dump Complete =======================================================
INFO:root:
@start thread dump MainProcess => MainThread ========================================
==========================================================================
[20:23:29.105490] PASSED speed boost: cPPs: 160 last Speed: 150
[20:23:29.105539] Restarting cycle.
[20:23:29.105587] Doubling Delta: new delta: 20
[20:23:29.105610] 
[20:23:29.105625] FINDING SPEED BOOSTS FOR MOTOR.
[20:23:29.105661] 
[20:23:29.606077] 
[20:23:29.606172] speedBoosts: [(150, 5)]
[20:23:29.606191] 
@end thread dump MainThread =========================================
===================================================================================
Thread prints Dump Complete =======================================================

INFO:root:
start thread dump MainProcess => MainThread ========================================
=========================================================================
[20:23:30.687948] PASSED speed boost: cPPs: 170 last Speed: 150
[20:23:30.687997] Restarting cycle.
[20:23:30.688047] Doubling Delta: new delta: 40
[20:23:30.688070] 
[20:23:30.688085] FINDING SPEED BOOSTS FOR MOTOR.
[20:23:30.688099] 
[20:23:31.188454] 
[20:23:31.188515] speedBoosts: [(150, 5)]
[20:23:31.188535] 
...

currentPPS (cPPs): 387 & last Speed: 150 implies a speed jump of 237 yet new Limit: 5; newDelta: 5; prevDelta: 5.0 does not reflect it.

==========================================================================
[20:24:15.510391] FAILED speed boost: cPPs: 387 last Speed: 150
[20:24:15.510446] Restarting cycle.
[20:24:15.510497] new Limit: 5; newDelta: 5; prevDelta: 5.0
[20:24:15.510541] 
[20:24:15.510559] FINDING SPEED BOOSTS FOR MOTOR.
[20:24:15.510574] 
[20:24:16.010925] 
[20:24:16.010983] speedBoosts: [(150, 5)]
juanmf commented 7 months ago

Fixed 92fc5926effbef09689ace3e9617e71e75bfb8b3