mrx8024 / motors-sync Goto Github PK
View Code? Open in Web Editor NEWThis project forked from altzbox/motors_sync
Klipper module for synchronizing two stepper motors located on one belt
License: GNU General Public License v3.0
This project forked from altzbox/motors_sync
Klipper module for synchronizing two stepper motors located on one belt
License: GNU General Public License v3.0
This issue has been resolved with the v1.0.0.7 May 5 (50dfe11) commit. I tried both CSV_OPEN_DELAY as 0.1s (default) and 0.5s and both worked with this version. I did not try CSV_OPEN_DELAY at 0.5s with v1.0.0.6 to see if that variable change would fix my issue.
I got everything setup but everytime i run motors sync I get what looks like a python error during the process. V1.0.0.6
_7 cputime=11.280 memavail=3689296 print_time=86.238 buffer_time=0.000 print_stall=0 extruder: target=0 temp=13.3 pwm=0.000
Writing raw accelerometer data to /tmp/beacon-20240504_213802.csv file
Y-New magnitude: None on -1/16 step move
Internal error on command:"SYNC_MOTORS"
Traceback (most recent call last):
File "/home/yanceya/klipper/klippy/gcode.py", line 298, in _process_commands
handler(gcmd)
File "/home/yanceya/klipper/klippy/gcode.py", line 207, in func
return origfunc(self._get_extended_params(params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yanceya/klipper/klippy/extras/motors_sync.py", line 266, in cmd_RUN_SYNC
self._axes_level()
File "/home/yanceya/klipper/klippy/extras/motors_sync.py", line 155, in axes_level
if m['new_magnitude'] > m['magnitude']:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'float' and 'NoneType'
Transition to shutdown state: Internal error on command:"SYNC_MOTORS"
I've attached the relevant klippy log:
klippy_motors_sync_error.txt
I'm running a monolith AWD and Beacon as the accelerometer sensor.
Hi,
Firstly thanks for creating this script alongside altzbox! It is a game changer for me :)
After updating some components, I have started to see this error. I have added the log here.
Thanks
Hi
Got this issue after a full proper installation
Maybe you will be able to guide me ;) I'd love to see this mod to work ;)
Thanks in advance
When i do SYNC_MOTORS i get invalid literal for int() with base 10: '-0.1'
and it crashes klipper.
I'm using a KusbA board connected via USB and setup using the following:
[mcu adxl]
serial: /dev/serial/by-id/usb-Anchor_Rampon-if00
[adxl345]
cs_pin: adxl:CS
[resonance_tester]
accel_chip: adxl345
probe_points:
115, 115, 20
Input Shapping works and I can
11:30:10
$ ACCELEROMETER_QUERY
11:30:12
// accelerometer values (x, y, z): 296.082377, 9548.656652, -612.876398
I've then added
[motors_sync]
accel_chip: adxl345
microsteps: 16
steps_threshold: 999999
fast_threshold: 999999
retry_tolerance: 999999
retries: 5
respond: True
And i've tried with just
[motors_sync]
accel_chip: adxl345
and in both cases I get:
11:30:48
$ SYNC_MOTORS
11:30:48
// Klipper state: Shutdown
11:30:48
!! Internal error on command:"SYNC_MOTORS"
with a pop up error saying invalid literal for int() with base 10: '-0.1'
Have I miss configured something?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.