Skip to content

Commit

Permalink
load force move and enable it by default (#135)
Browse files Browse the repository at this point in the history
* load force move and enable it by default

* add readme and docs
  • Loading branch information
bwnance authored Jan 31, 2024
1 parent a7f4991 commit 289bef5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ If I want my printer to light itself on fire, I should be able to make my printe
- [adxl345: improve ACCELEROMETER_QUERY command](https://github.com/DangerKlippers/danger-klipper/pull/124)

- [extruder: add flag to use the PA constant from a trapq move vs a cached value](https://github.com/DangerKlippers/danger-klipper/pull/132)

- [force_move: turn on by default](https://github.com/DangerKlippers/danger-klipper/pull/135)

If you're feeling adventurous, take a peek at the extra features in the bleeding-edge branch:

- [dmbutyugin's advanced-features branch](https://github.com/DangerKlippers/danger-klipper/pull/69) [dmbutyugin/advanced-features](https://github.com/dmbutyugin/klipper/commits/advanced-features)
Expand Down
8 changes: 5 additions & 3 deletions docs/Config_Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1684,17 +1684,19 @@ file for a Marlin compatible M808 G-Code macro.
[sdcard_loop]
```

### [force_move]
### [force_move]

This module is enabled by default in DangerKlipper!

Support manually moving stepper motors for diagnostic purposes. Note,
using this feature may place the printer in an invalid state - see the
[command reference](G-Codes.md#force_move) for important details.

```
[force_move]
#enable_force_move: False
#enable_force_move: True
# Set to true to enable FORCE_MOVE and SET_KINEMATIC_POSITION
# extended G-Code commands. The default is false.
# extended G-Code commands. The default is true.
```

### [pause_resume]
Expand Down
2 changes: 1 addition & 1 deletion klippy/extras/force_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, config):
self.cmd_STEPPER_BUZZ,
desc=self.cmd_STEPPER_BUZZ_help,
)
if config.getboolean("enable_force_move", False):
if config.getboolean("enable_force_move", True):
gcode.register_command(
"FORCE_MOVE", self.cmd_FORCE_MOVE, desc=self.cmd_FORCE_MOVE_help
)
Expand Down
3 changes: 3 additions & 0 deletions klippy/klippy.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ def _read_config(self):
m.add_printer_objects(config)
for section_config in config.get_prefix_sections(""):
self.load_object(config, section_config.get_name(), None)
# dangerklipper on-by-default extras
for section_config in ["force_move"]:
self.load_object(config, section_config, None)
for m in [toolhead]:
m.add_printer_objects(config)
# Validate that there are no undefined parameters in the config file
Expand Down

0 comments on commit 289bef5

Please sign in to comment.