Skip to content

gui: Add footer info for current z layer#4775

Draft
bkerler wants to merge 148 commits intoprusa3d:masterfrom
bkerler:current_layer_footer
Draft

gui: Add footer info for current z layer#4775
bkerler wants to merge 148 commits intoprusa3d:masterfrom
bkerler:current_layer_footer

Conversation

@bkerler
Copy link

@bkerler bkerler commented Aug 25, 2025

This adds a footer that displays the current layer number, layer height is calculated using gcode metadata (includes layer_height and first_layer_height variables). Refers to issue #1485.

Example:
image

vorner and others added 30 commits January 3, 2025 14:27
If we receive a stray chunk (leftover from an aborted transfer), don't
panic and kill the connection, just blackhole it silently and keep the
connection. Creating new connections is expensive.

BFW-6522.
(In websocket mode) update the download backup file before going to
process a command; that way the command sees as fresh data of the file
as possible and also, if it takes a long time / gets stuck, the other
threads get an update.

BFW-6428.
In addition to updating every 10s, make sure to also update every X
bytes transfered, so we don't lose as much and have higher chance to
show the preview sooner.

BFW-6428.
It turns out copy-pasting iX config file has its flaws.

BFW-6536
This is an improved ramming sequence from the Slicer team.

BFW-6536
This fixes CORE One missing M260 and M261 support.

BFW-6546
Testers were complaining that it's impossible to put out the print bed on aborted print.

BFW-6551
The user needs to be clean out the purged filament easily.

BFW-6551
and get rid of dependency on danol.cz
BFW-6420

(cherry picked from commit a4ab096d47f006a9328d54fc7597af698cc603bd)
The inject queue is not equipped to handling non-constexpr strings at the moment.
This commit ensures that we're only passing in literals.
Only the construction from the const char* has to be consteval, rest can be only constexpr
ConstexprString was previously okay when you passed him a buffer whose pointer was known at compile time, but contents were runtime - this change prevents that.
danopernis and others added 23 commits January 27, 2025 12:09
This fixes a regression introduced in 636c23f

BFW-6680
subrepo:
  subdir:   "lib/Prusa-Error-Codes"
  merged:   "6fa23d43d5"
upstream:
  origin:   "git@github.com:prusa3d/Prusa-Error-Codes.git"
  branch:   "master"
  commit:   "6fa23d43d5"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "cce3d93"
git subrepo pull ./lib/Prusa-Error-Codes
Last minute product decisions are the best.

BFW-6695
The macOS build includes a `.tar.xzg` file, which 1bfe80a does not
properly handle. This simply adds this extension to the list which
should be extracted with tar instead of zip.
@bkerler bkerler force-pushed the current_layer_footer branch from 3f2c7fe to e1f8af0 Compare August 25, 2025 16:11
@bkerler bkerler force-pushed the current_layer_footer branch from e1f8af0 to c34de01 Compare August 25, 2025 16:30
Copy link
Contributor

@CZDanol CZDanol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry, but this is imo not admissible. The algorithm used for calculating the layer height is not reliable. It report wrong numbers if variable layer length is used, and also during toolchanges, zhops, probings and so on.

The only proper solution that comes to my mind would require asking slicer to start emitting gcodes that would report the layer number.

@bkerler bkerler marked this pull request as draft August 26, 2025 17:07
@bkerler
Copy link
Author

bkerler commented Aug 26, 2025

@CZDanol yeah, understood. Moving this request to draft for now. Will keep you updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.