Solve T6165
ClosedPublic

Authored by rizzitello on May 23 2017, 12:36 AM.

Details

Summary

Solve T6165 by checking temperature in a more generic way using regexpression. temperature checks no longer require any plugin

Test Plan

Test on various Firmwares: Must Set all values and have working heaters and thermistors

Repetier Working!

T:44.53 /180 B:45.08 /93 B@:255 @:255
Extruder Temperature [0] : 44
Extruder Target Temperature [0] : 180
Bed Temperature [0] : 45
Bed Target Temperature [0] : 93

Marlin <Unknown>

put results here

Teacup <unknown>

put results here

Diff Detail

Repository
R232 AtCore
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
rizzitello created this revision.May 23 2017, 12:36 AM
rizzitello edited the summary of this revision. (Show Details)May 23 2017, 12:50 AM
rizzitello updated this revision to Diff 14769.May 23 2017, 3:57 AM
  • Better Regex after further work with lays
rizzitello edited the test plan for this revision. (Show Details)May 23 2017, 4:02 AM
patrickelectric requested changes to this revision.May 23 2017, 11:47 AM
patrickelectric added inline comments.
src/atcore.cpp
259

You can put everything here in temperature class and the plugin can use something like:

plugin::extractTemp() {
core()->extractGenericTemperature()
}

AtCore is supposed to perform only operations and not decode, this'll not work in binary protocols or other temperature/protocol type message.

This revision now requires changes to proceed.May 23 2017, 11:47 AM
rizzitello added inline comments.May 23 2017, 12:06 PM
src/atcore.cpp
259

if were gonna do that we might as well just continue to use extractTemp from the plugins and just change that to work more like this

Do we have any examples of these firmwares output (these binary ones your talking about)

src/atcore.cpp
259

I am just saying that atcore isn't the place to add info extraction functions, this need to be inside plugins files or (less worst) in temperature class. If we gonna to start to put everything in atcore, just delete all plugins files, and that will be a big problem in future.

rizzitello updated this revision to Diff 14781.May 23 2017, 9:32 PM
rizzitello edited edge metadata.
rizzitello edited the test plan for this revision. (Show Details)
  • Remove Temperature Checks from all plugins
  • Check temperature in a more generic way by using regexpression temperature checks no longer
  • Better Regex after further work with lays
  • Move regex temp extraction to Temperature
rizzitello updated this revision to Diff 14849.May 26 2017, 1:46 AM
  • Set Target Temperature in the temperature stoarage when manually sent
patrickelectric accepted this revision.May 26 2017, 1:48 AM
This revision is now accepted and ready to land.May 26 2017, 1:48 AM
laysrodrigues accepted this revision.May 26 2017, 1:05 PM

Looks good!

This revision was automatically updated to reflect the committed changes.