3d-gussner
cc84e326fe
Merge pull request #4224 from 3d-gussner/MK3_Rename_Thermal_model
...
Rename temp model to thermal model
2023-07-26 16:37:48 +02:00
3d-gussner
897d05d268
Fix @wavexx complains
2023-07-26 09:33:16 +02:00
3d-gussner
6feab85252
Rebase update REVO and solve @wavexx comments
2023-07-25 17:24:02 +02:00
3d-gussner
8ae0e1952e
Rename `temp_model.h` to `thermal_model.h`
...
`/temp_model` to `/thermal_model`
`Temperature_model` to `Thermal_model`
minor format in eeprom.h
2023-07-25 17:13:07 +02:00
3d-gussner
940b18e0b2
Format `eeprom.h` doxygen documentation
2023-07-25 17:13:07 +02:00
3d-gussner
a6b209d36d
Rename `Temperature Model` to `Thermal Model`
...
`Temperature model` to `Thermal model`
`temperature model` to `thermal model`
2023-07-25 17:13:07 +02:00
3d-gussner
78ed427166
Rename `TempModel` to `ThermalModel`
2023-07-25 17:13:07 +02:00
3d-gussner
600a7a0316
Rename `Temp Model` to `Thermal Model`
2023-07-25 17:13:07 +02:00
3d-gussner
44ae8033eb
Rename upper case `TEMP_MODEL` to `THERMAL_MODEL`
2023-07-25 17:13:07 +02:00
3d-gussner
dac07d11ba
Rename lower case `temp_model` to `thermal_model`
2023-07-25 17:13:07 +02:00
Guðni Már Gilbert
780f2db3d1
fixup
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
c647e4cfa4
fix build
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
f40defd2a9
Rename minsegmenttime --> min_segment_time_us
...
Also fixed wrong unit in Configuration prinout (M500)
should be us and not ms
Also used %lu format for uint32_t instead of %.2f
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
842dcc6560
Remove MAX_E_STEPS_PER_UNIT and MIN_E_STEPS_PER_UNIT
...
These constants are not used anywhere so there is no need to rename them
I propose they be removed as cleanup
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
ec896df62a
Remove commented DEFAULT_AXIS_STEPS_PER_UNIT
...
They serve no function at this point
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
6c95d340c1
Remove dead code axis_travel_steps_per_sqr_second
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
a8c75090b2
Change unsigned long to uint32_t
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
8689a28776
Rename max_acceleration_units_per_sq_second to max_acceleration_mm_per_s2
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
21faa52aab
Rename axis_steps_per_unit to axis_steps_per_mm
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
ff1cd2bfb2
dcodes: fix build when DEBUG_DCODES is enabled
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
5b8813bf18
tmc2130: fix octoprint error
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
fa6aae60db
optimisation: use SERIAL_PROTOCOLLN
...
Change in memory:
Flash: -12 bytes
SRAM: 0 bytes
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
9d15a4e63b
optimisation: reduce code size in M916, M917, M918
...
Change in memory:
Flash: -148 bytes
SRAM: 0 bytes
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
c090868fa2
optimisation: reduce code size in M907
...
Change in memory:
Flash: -4 bytes
SRAM: 0 bytes
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
53c8bfa928
cleanup: remove unused variable
...
No change in memory
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
7029af05fa
optimisation: reduce code size in pid_extruder()
...
Author: leptun
Change in memory:
Flash: -14 bytes
SRAM: 0 bytes
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
6623d45af9
optimisation: Tighter LCD timing
...
Author: leptun
Change in memory:
Flash: -14 bytes
SRAM: 0 bytes
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
5288d615f8
optimisation: lcd avoid streams
...
Author: leptun
Change in memory:
Flash: -124 bytes
SRAM: 0 bytes
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
5d880919f8
Align comment
2023-07-25 09:00:47 +02:00
Guðni Már Gilbert
d5f4f6700d
Optimise the acceleration limit checks
...
Kudos goes to Marlin FW
Change in memory:
Flash: -314 bytes
SRAM: 0 bytes
2023-07-25 09:00:47 +02:00
Guðni Már Gilbert
1984091c10
Rename axis_steps_per_sqr_second to max_acceleration_steps_per_s2
2023-07-25 09:00:47 +02:00
Guðni Már Gilbert
c067318427
cleanup language menu
...
Change in memory:
Flash: -50 bytes
SRAM: 0 bytes
2023-07-25 08:58:52 +02:00
Guðni Már Gilbert
0ab10a9df6
tmc2130: chopconf: add comments to structure
2023-07-25 08:56:43 +02:00
Guðni Már Gilbert
ed13d008d9
tmc2130: minor code cleanup
...
Using tmc2130_wr() instead makes the code a bit more
aligned and easier to read IMO
No change in memory
2023-07-25 08:56:43 +02:00
Guðni Már Gilbert
3819f7a473
tmc2130: Refactor code for setting/changing currents
...
- Always re-calculate the Vsense flag when the currents are changed
- Make sure Hold current is not larger than Run current
- Added SetCurrents() function from MMU FW
- Added MotorCurrents structure from MMU FW
- Various code size optimisations e.g. in power panic
Change in memory:
Flash: -10 bytes
SRAM: +4 bytes
2023-07-25 08:56:43 +02:00
Guðni Már Gilbert
a87faba2bd
tmc2130: pull TMC2130_CNSTOFF_E outside tmc2130_setup_chopper
...
We can probably improve tmc2130_chopper_config further by adding
a constructor.
No change in memory
2023-07-25 08:56:43 +02:00
Guðni Már Gilbert
664d4e2bbe
tmc2130: chopconf: Add constructor to ChopConfU
...
Removed redundant initialisations which the constructor now takes care of
Change in memory:
Flash: +8 bytes
SRAM: 0 bytes
2023-07-25 08:56:43 +02:00
Guðni Már Gilbert
bb8ebbb5e3
tmc2130: chopconf: simplify intpol config
...
Pull the preprocessor code outside tmc2130_setup_chopper
No change in memory
2023-07-25 08:56:43 +02:00
Guðni Már Gilbert
2d2ab6e889
tmc2130: chopconf: simplify dedge code
...
move dedge preprocessing out of tmc2130_setup_chopper
We can use default_dedge_bit to initialise
the dedge bit in the chopconf constuctor later
No change in memory
2023-07-25 08:56:43 +02:00
Guðni Már Gilbert
3842a5c98c
optimisation: correctly reset registers in tmc2130_home_exit
...
Previously Z-axis would not be reset to
TMC2130_GCONF_DYNAMIC_SGSENS
in tmc2130_home_exit() when
TMC2130_STEALTH_Z is defined
Pulled configuration code into one common function
this ensures the registers are set correctly like in tmc2130_init()
Change in memory:
Flash: -206 bytes
SRAM: 0 bytes
2023-07-25 08:56:43 +02:00
Guðni Már Gilbert
60f1c2095f
optimise tmc2130_setup_chopper further
...
Reduce code duplication
Change in memory:
Flash: -50 bytes
SRAM: 0 bytes
2023-07-25 08:56:43 +02:00
Guðni Már Gilbert
ae1a7898dc
optimisation: use union in for TMC2130 PWMCONF
...
Simplify writing the value to PWMCONF by
gathering all the bits into one dword.
Change in memory:
Flash: -128 bytes
SRAM: 0 bytes
2023-07-25 08:56:43 +02:00
Guðni Már Gilbert
06100e366c
optimisation: use union in tmc2130_setup_chopper
...
An idea from the MMU FW
Change in memory:
Flash: -278 bytes
SRAM: 0 bytes
2023-07-25 08:56:43 +02:00
Guðni Már Gilbert
6aff3c761b
XYZCal: reduce code size in go_manhattan
...
The variable always takes a value of subtraction
between two int16_t values. It will also fit into int16_t
Change in memory:
Flash: -50 bytes:
SRAM: 0 bytes
2023-07-24 08:15:03 +02:00
Guðni Már Gilbert
5cfdceb184
Remove redundant lcd_draw_update assignment
...
When scrolling through menu items, the rotation event on the knob
takes care of updating the LCD by setting lcd_draw_update.
The menu code doesn't need to do it as well.
Change in memory:
Flash: -6 bytes
SRAM: 0 bytes
2023-07-24 08:13:36 +02:00
Yuri D'Elia
1fea4a7335
catch2: Fix build with gcc13
...
Cherrypick of catch2 commit 52066dbc2a53f4c3ab2a418d03f93200a8245451 to
fix the build with gcc 13 without a full update.
2023-07-24 08:07:28 +02:00
Guðni Már Gilbert
57d780ccf9
PFW-1519 Hide Preload to MMU menu item if filament is detected
...
This is by far the simplest solution to prevent the user from sending
a Load command to the MMU when the FINDA or Filament sensor
is detecting a filament. This may even happen if the sensors are poorly positioned.
Either way a Load in this scenario will make the MMU seem to hang as the
state machine will reject the command.
We could add a full screen message to let the use know
but it would require some memory resources.
For now, just hide the menu item.
Change in memory:
Flash: +16 bytes
SRAM: 0 bytes
2023-07-24 08:05:50 +02:00
Addio
d4733664a8
Fixed printer_smodel_check for MK3/S and possible older MMU machines ( #4265 )
...
Fixed printer_smodel_check for non MMU machines
Commit 136ef96 broke the compatibility check for MK3S without MMU.
May have fixed bug for older MMU machines.
Only comparing up to the length of the value from the g-code, would return equal on older MMU machines trying to run g-code sliced without the MMU.
Unfortunately if that is a feature, it will cause the different printer warning.
2023-07-21 16:02:32 +02:00
D.R.racer
43c823987c
MMU version 3.0.0
...
PFW-1529
2023-07-20 12:44:29 +02:00
D.R.racer
d67fc84b73
Relink MSG_DESC_INSPECT_FINDA in PO files
2023-07-20 12:32:30 +02:00