Skip to content

Conversation

alexanderoster
Copy link
Owner

No description provided.

alexanderoster and others added 22 commits August 6, 2020 17:51
Fixed driver loading crash
Plugin Movement renamed to Printerconnection
…" to "printerconnection".

Marlin: Property IsConnected and function EmergencyStop added.
PrinterConnection: refactor regarding name change of state machine "movement" to "printerconnection".
In Init check property IsConnected before proceeding to state homing/idle and send signal "isconnected" to "main" so "main" can start controlling temperature.
In Init set fan speed.
Update bed/extruder temperature (target values to set received as a signal from "main") and report current values (as signal to "main").
Possibility (signal) to disconnect printer added.
Possibility (signal) to do an emergency stop added.
Main: refactor regarding name change of state machine "movement" to "printerconnection".
In StartProcess wait until printer is connected before proceeding to "WaitForTemperature".
In "WaitForTemperature" prepare signat with temperature to be set (in PrinterConnection) and wait for signal with current temperature (in a loop).
Check received temperature data and wait until expected temperature is reached. If "reached" proceed to "ExtrudeLayer".
Command to disconnect printer added to "finishprocess" (probably to be removed again).
Just for testing, signal to call EmergencyStop added to "NextLayer" => commented out after testing.
Mainly check IsConnected and WaitForTemperature added + some minor changes
Refactor program sequence. Homed, connected, temperature etc are now controlled by Main (using sognals).

Main: set fan speed, initlialize extruder, set temperature without waiting, read target temperature from xml, finalize extrude process and retract/restore filament (layer change) added.

PrinterConnection/Marlin:
updateStateFromDriver renamed to updatePositionStateFromDriver now just updates printerstate parameters (positions...) and no more temperature.
Some functions moved to handleSignals.
UpdateFanSpeed added.
DoExtrudeLayer (and others) now call handleSignals in addition to updatePositionStateFromDriver.
Stored value "ExtrudeValue" used to save value of E axis after layer is fninshed => to be (re)used in next layer.
HandleSignals added => handles all signals received from Main
UpdatedState has been split => update position and temperature is done seperately now.
State homing removed.
@alexanderoster I added the NOPAUSE option as Param1 to run the Jenkins Builds
Refactor program sequence. Homed, connected, temperature etc are now controlled by Main (using signals).
@alexanderoster alexanderoster merged commit e48c8f0 into alexanderoster:develop Sep 10, 2020
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.

4 participants