ADXL problem?
Hi all,
I used the Holidays to upgrade my printer to the 3.1 version. After assembling and first start up tests, I wanted to take care of the belt tensioning. The first 2 or 3 try´s went somewhat good, but now I get some weird feedback from my Klipper.
After a few good runs, suddenly I get:
15:46:16
Command {generate_belt_tension_graph} finished
15:46:16
Traceback (most recent call last):
File "/home/pi/klipper/scripts/graph_accelerometer.py", line 259, in
main()
File "/home/pi/klipper/scripts/graph_accelerometer.py", line 247, in main
options.axis)
File "/home/pi/klipper/scripts/graph_accelerometer.py", line 123, in plot_compare_frequency
calibration_data = calc_freq_response(data, max_freq)
File "/home/pi/klipper/scripts/graph_accelerometer.py", line 60, in calc_freq_response
return helper.process_accelerometer_data(data)
File "/home/pi/klipper/scripts/../klippy/extras/shaper_calibrate.py", line 177, in process_accelerometer_data
self.calc_freq_response, (data,))
File "/home/pi/klipper/scripts/../klippy/extras/shaper_calibrate.py", line 74, in background_process_exec
return method(*args)
File "/home/pi/klipper/scripts/../klippy/extras/shaper_calibrate.py", line 161, in calc_freq_response
T = data[-1,0] - data[0,0]
IndexError: too many indices for array
15:46:16
/home/pi/klipper/scripts/graph_accelerometer.py:24: UserWarning: loadtxt: Empty input file: "/tmp/raw_data_axis=1.000,-1.000_belt-tension-lower.csv"
return np.loadtxt(logname, comments='#', delimiter=',')
15:46:03
Running Command {generate_belt_tension_graph}...:
ACC QUERY and AXES_NOISE gives "No accelerometer measurements found" or respectively back.
After restart of the printer (cut power) I get:
15:59:19 Axes noise for xy-axis accelerometer: 17.010476 (x), 13.106400 (y), 44.449821 (z)
15:59:15 MEASURE_AXES_NOISE
15:59:04 accelerometer values (x, y, z): 229.475610, -9790.959360, 1376.853660
15:59:02 ACCELEROMETER_QUERY
But as soon as I start a new Belt Tension Macro, I don´t get a graph back.
2 Replies