aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
...
* scripts: Use backport of a recent Python3 configparser on Python2Kevin O'Connor2021-10-041-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Add a build import test toolKevin O'Connor2021-10-041-0/+8
| | | | | | | | Add a test case to verify that every optional module successfully loads on both Python2 and Python3. This is intended to catch syntax and module imports that are not compatible between Python versions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Update klippy build tests to verify on both Python2 and Python3Kevin O'Connor2021-10-042-5/+20
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Convert to Python3 string encodingKevin O'Connor2021-10-011-6/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test_klippy: Convert to Python3 string encodingKevin O'Connor2021-10-011-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy-requirements: Update dependencies to support Python 3.9+Kevin O'Connor2021-10-011-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motan: Improve handling of errors during data subscriptionsKevin O'Connor2021-09-261-0/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* avrsim: Change default speed to 16Mhz and default baud to 250KKevin O'Connor2021-09-161-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* update_chitu: generating update uuid based on file hash (#4663)Vladimir Serov2021-09-151-2/+4
| | | | | | This makes update_chitu a pure function: same file in — same file out. That's something I need to make Nix builds for firmware itself reproducible. Signed-off-by: Vladimir Serov <me@cab404.ru>
* motan: Add support for dumping and analyzing adxl345 dataKevin O'Connor2021-08-302-0/+51
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motan: Add corexy forward kinematics analyzerKevin O'Connor2021-08-301-0/+28
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motan: Add support for graphing arbitrary get_status fieldsKevin O'Connor2021-08-301-6/+67
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motan: Pass dataset parameters in parenthesisKevin O'Connor2021-08-303-68/+95
| | | | | | Replace names like "trapq:toolhead:x" with "trapq(toolhead,x)". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motan_graph: Fix legend when using matplotlib twinxKevin O'Connor2021-08-241-2/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* data_logger: Flush the initial index file when all queries completeKevin O'Connor2021-08-241-40/+37
| | | | | | This should avoid zero byte index files for small captures. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* readlog: Support queue_step smoothingKevin O'Connor2021-08-221-11/+39
| | | | | | | | Logically "smooth" each step in a queue_step sequence over a small time period. This smoothing makes it easier for the analysis tools to extract high-level trends from the data. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motan_graph: Initial support for graphing data logKevin O'Connor2021-08-223-0/+650
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* data_logger: Add tool for bulk logging of data via the API serverKevin O'Connor2021-08-221-0/+192
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash-linux: Fix spelling error in messageKevin O'Connor2021-08-171-1/+1
| | | | | | Reported by @stefanfoulis. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Update graphing scripts to work with either python2 or python3Kevin O'Connor2021-08-024-8/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* check_whitespace: Also check txt, css, html, yaml, and yml files for errorsKevin O'Connor2021-07-271-1/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spi_flash: Support firmware dictionary validationJustin Schuh2021-07-202-13/+52
| | | | | | | | | | | Updates firmware validation to use a dictionary if provided (or found when updating from the default out/ directory). Validation without a dictionary still checks the following (in order): 1. Active firmware's raw dictionary changed after update 2. Checksum of firmware.cur matches expected Signed-off-by: Justin Schuh <code@justinschuh.com>
* spi_flash: Make SD updates more tolerant of flaky boardsJustin Schuh2021-07-201-22/+53
| | | | | | | | | | Validation passes if either of the following succeeds (in order): 1. Active firmware's raw dictionary changed after update 2. Checksum of firmware.cur matches expected Additionally, deletes firmware.bin if found after update succeeds. Signed-off-by: Justin Schuh <code@justinschuh.com>
* stm32: Add support for STM32F072 (used in the TurboCAN board) (#4412)henrikssn2021-06-271-0/+1
| | | | | | | * Add menuconfig option for stm32f072 * Add support for internal temp of stm32f072 * Share the temperature calculation logic between stm32f0x2 MCUs Signed-off-by: Erik Henriksson <erikhenrikssn@gmail.com>
* spi_flash: Add board definitions for Fysetc S6 and SpiderWilhelm Schuster2021-05-031-0/+9
| | | | Signed-off-by: Wilhelm Schuster <ws@rot13.io>
* graphstats: Support graphing multiple heatersKevin O'Connor2021-04-291-22/+28
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Don't attach hostname and build date to version on a clean buildKevin O'Connor2021-04-221-6/+10
| | | | | | | Most builds will be direclty from git - removing the hostname and build date should permit reproducible binaries in that common case. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Call irq_poll() after last task functionKevin O'Connor2021-04-211-1/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* resonance_tester: Fixed multi-point resonance testingDmitry Butyugin2021-04-072-4/+4
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* klippy-requirements: Update Jinja2 to 2.11.3Kevin O'Connor2021-03-251-1/+1
| | | | | | | There was a security fix in Jinja2 v2.11.3 - it does not impact Klipper, but there is no harm in updating. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graph_accelerometer: Support axis-level comparison of adxl345 dataDmitry Butyugin2021-03-201-3/+4
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* calibrate_shaper: Use fixed 5 Hz steps for minor ticks in the chartsDmitry Butyugin2021-03-201-3/+1
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* shaper_calibrate: Estimate max_accel to avoid excessive smoothingDmitry Butyugin2021-03-201-2/+3
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* canbus_query: Add tool to query CANBUS uuidKevin O'Connor2021-03-131-0/+53
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialhdl: Add support for communicating over a CAN busKevin O'Connor2021-03-131-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialhdl: Update callers to decide serial fd typeKevin O'Connor2021-03-021-2/+4
| | | | | | | | Don't try to detect a "real serial port" in serialhdl.py. Instead, have the callers invoke either connect_uart(), connect_file(), or connect_pipe(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Improve handling of TMC UART read/write register commandsKevin O'Connor2021-02-281-1/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Add helper to decode tmcuart messagesKevin O'Connor2021-02-281-0/+104
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Fix typo in install-centos.shKevin O'Connor2021-02-201-1/+1
| | | | | | Reported by @fishbone222. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Extend number of available mcu messages from 96 to 128Kevin O'Connor2021-02-181-12/+15
| | | | | | | | | | | Some internal code treats the message ids as encoded "variable length quantities", while other internal code assumes the message id is always one byte long. Continue using this scheme, but convert the VLQ users to use the name "msgtag" while the 1-byte users use "msgid". Increase the number of available msgids from 96 to 127 - the higher values get encoded as negative "msgtags". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* msgproto: Avoid peeking into the msgproto class membersKevin O'Connor2021-02-181-18/+17
| | | | | | | Update callers to only use exported methods of the msgproto objects. This makes it easier to make internal changes to the code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chelper: Fix check for failed code buildKevin O'Connor2021-02-071-1/+1
| | | | | | | Commit 73b78af6 inadvertently removed the check for a successful gcc compilation. Add the check back in. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: add flash-sdcard.sh helper scriptArksine2021-02-051-0/+69
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* spi_flash: support for firmware upgrades via SD CardArksine2021-02-055-0/+1574
| | | | | | This module connects directly to MCU's previously flashed with Klipper, uploads Klipper firmware to an attached SD Card, and performs a device reset to intiate the bootloader's update process. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* scripts: Remove python-virtualenv from install scripts on debian type distrosKevin O'Connor2021-01-243-3/+3
| | | | | | | The python-virtualenv package is no longer present on modern distros and the dependency is not needed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* shaper_calibrate: Choose input shapers accounting smoothingDmitry Butyugin2020-12-221-15/+21
| | | | | | | | | Improved algorithm to choose the 'optimal' shaper frequency taking shaper smoothing into account. This may choose a frequency with slightly more vibrations but less smoothing. Also allow users to limit the maximum input shaper smoothing. Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* scripts: Small improvements for input shaper and accelerometer scriptsDmitry Butyugin2020-12-192-27/+46
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* ci-build: Report binary size during build testsKevin O'Connor2020-12-101-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Allow graphing of temperature_sensor logsKevin O'Connor2020-12-071-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: No need to include python-virtualenv in package dependenciesKevin O'Connor2020-11-231-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>