aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/StateMachines
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2021-01-06 13:58:41 +0200
committerShlomo Hecht <shlomo@twine-s.com>2021-01-06 13:58:41 +0200
commitb9a85d61fcb3186754d24ea38268143fd3f47f4c (patch)
treeb90b62de5d67fbbbd56722b8a6138ab5a105c563 /Software/Embedded_SW/Embedded/StateMachines
parent45aded1213ff37e679449a52a3028c6565af7303 (diff)
downloadTango-b9a85d61fcb3186754d24ea38268143fd3f47f4c.tar.gz
Tango-b9a85d61fcb3186754d24ea38268143fd3f47f4c.zip
fix bug in pre-run PBU, and in dispensers 25%. 50% indications
Diffstat (limited to 'Software/Embedded_SW/Embedded/StateMachines')
-rw-r--r--Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c5
-rw-r--r--Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c b/Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c
index 06dac8fdc..7f1b9ffb5 100644
--- a/Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c
+++ b/Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c
@@ -783,14 +783,13 @@ uint32_t PowerUpUpdate(MACHINE_STATE_STAGES_ENUM stage)
case MACHINE_STATE_BUILT_IN_FAILED:
response.state = POWER_UP_STATE__BuiltInTest;
response.progresspercentage = 15.0;
- response.message = "Built In Test";
+ response.message = "Built In Test failed";
+ Error = ERROR_CODE__POWER_UP_BUILT_IN_FAILED;
break;
case MACHINE_STATE_BUILT_IN_TEST:
response.state = POWER_UP_STATE__BuiltInTest;
response.progresspercentage = 15.0;
response.message = "Built In Test";
- //response.message = "Built In Test failed";
- //Error = ERROR_CODE__POWER_UP_BUILT_IN_FAILED;
break;
case MACHINE_STATE_INITIAL_BLOWER_ACTIVATION:
response.state = POWER_UP_STATE__InitialBlowerActivation;
diff --git a/Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c b/Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c
index 9f5151117..ab246dbc3 100644
--- a/Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c
+++ b/Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c
@@ -1197,10 +1197,10 @@ void SendJobProgress(double ProcessedLength, int SegmentId, bool done, char *Mes
if ((heaterRatio>0.99)&&(dispenserRatio>0.99))
{
wfcf_count+=1.00;
- Report("prepare_progress wfcf" ,__FILE__,(int)(wfcf_count),(int)(heaterRatio*100),RpWarning,(int)(dispenserRatio*100),0);
+ //Report("prepare_progress wfcf" ,__FILE__,(int)(wfcf_count),(int)(heaterRatio*100),RpWarning,(int)(dispenserRatio*100),0);
}
prepare_progress = (0.9*heaterRatio)+(0.08*dispenserRatio) + (0.02*wfcf_count/25.0);
- Report("prepare_progress" ,__FILE__,(int)(prepare_progress*1000),(int)(heaterRatio*1000),RpWarning,(int)(dispenserRatio*1000),0);
+ //Report("prepare_progress" ,__FILE__,(int)(prepare_progress*1000),(int)(heaterRatio*1000),RpWarning,(int)(dispenserRatio*1000),0);
}
else
wfcf_count = 0;