Prusa MINI Firmware overview
|
#include <filwidth.h>
Public Member Functions | |
FilamentWidthSensor () | |
Static Public Member Functions | |
static void | init () |
static void | enable (const bool ena) |
static void | set_delay_cm (const uint8_t cm) |
static int8_t | sample_to_size_ratio () |
static void | accumulate (const uint16_t adc) |
static float | raw_to_mm (const uint16_t v) |
static float | raw_to_mm () |
static void | reading_ready () |
static void | update_measured_mm () |
static void | advance_e (const float &e_move) |
static void | update_volumetric () |
Static Public Attributes | |
static constexpr int | MMD_CM = MAX_MEASUREMENT_DELAY + 1 |
static constexpr int | MMD_MM = MMD_CM * 10 |
static bool | enabled |
static uint32_t | accum |
static uint16_t | raw |
static float | nominal_mm |
static float | measured_mm |
static float | e_count |
static float | delay_dist |
static uint8_t | meas_delay_cm |
static int8_t | ratios [MMD_CM] |
static int8_t | index_r |
static int8_t | index_w |
Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
Based on Sprinter and grbl. Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
FilamentWidthSensor::FilamentWidthSensor | ( | ) |
|
static |
|
static |
Convert Filament Width (mm) to an extrusion ratio and reduce to an 8 bit value.
A nominal width of 1.75 and measured width of 1.73 gives (100 * 1.75 / 1.73) for a ratio of 101 and a return value of 1.
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |