From 4d3d25b1f799e98e5c8a86b0a24e8507ecfb918e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 1 Mar 2021 14:57:40 -0500 Subject: fan: Minor updates to tachometer handling Add new fields to Command_Templates.md. Remove unused self.rpm variable. Use an explicit get_frequency() method in keeping with Klipper's convention of not "peeking into member variables". Signed-off-by: Kevin O'Connor --- docs/Command_Templates.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/Command_Templates.md') diff --git a/docs/Command_Templates.md b/docs/Command_Templates.md index afa390af..9e19422d 100644 --- a/docs/Command_Templates.md +++ b/docs/Command_Templates.md @@ -129,6 +129,10 @@ The following are common printer attributes: This is also available on "heater_fan", "fan_generic", and "controller_fan" config sections (eg, `printer["fan_generic my_fan"].speed`). +- `printer.fan.rpm`: The measured fan speed in rotations per minute if + the fan has a tachometer_pin defined. This is also available on + "heater_fan", "fan_generic", and "controller_fan" config sections + (eg, `printer["fan_generic my_fan"].rpm`). - `printer.gcode_move.gcode_position`: The current position of the toolhead relative to the current G-Code origin. That is, positions that one might directly send to a `G1` command. It is possible to -- cgit v1.2.3-70-g09d2