aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-27 15:37:17 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-27 15:37:17 +0300
commitc7bbd45c015fd63c716124a6b2dbb8d2209059db (patch)
tree1baa8afa7a37b77068a29ceb503d7bafc49865a2 /Software/Embedded_SW/Embedded/Modules
parent89b98cde43f3f1959f7229c8823b31295e147d4b (diff)
parentec02fe9b944cdabf2fce23c91ae16bf2f1383276 (diff)
downloadTango-c7bbd45c015fd63c716124a6b2dbb8d2209059db.tar.gz
Tango-c7bbd45c015fd63c716124a6b2dbb8d2209059db.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/AlarmHandling/AlarmHandlingDiagnostics.c6
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c7
-rw-r--r--Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c3
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Motor.c4
4 files changed, 13 insertions, 7 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/AlarmHandling/AlarmHandlingDiagnostics.c b/Software/Embedded_SW/Embedded/Modules/AlarmHandling/AlarmHandlingDiagnostics.c
index a11c472b3..60a093216 100644
--- a/Software/Embedded_SW/Embedded/Modules/AlarmHandling/AlarmHandlingDiagnostics.c
+++ b/Software/Embedded_SW/Embedded/Modules/AlarmHandling/AlarmHandlingDiagnostics.c
@@ -131,7 +131,7 @@ void SendDiagnostics(void)
MessageContainer responseContainer;
StartDiagnosticsResponse response = START_DIAGNOSTICS_RESPONSE__INIT;
DiagnosticsMonitors DiagnosticsMonitor;
- if (DiagnosticsActive == false)
+ //if (DiagnosticsActive == false)
return;
@@ -180,8 +180,8 @@ void SendDiagnostics(void)
response.monitors = &DiagnosticsMonitor;
- response.n_digitalpins = DiagnosticsIndex/**MAX_GPI*/;
- response.digitalpins = DigitalPinArray;
+ response.n_digitalpins = 0/**MAX_GPI*/;
+ //response.digitalpins = DigitalPinArray;
response.n_events = 0;
response.n_componentsstates = 0;
diff --git a/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c b/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c
index 2de675d5c..32509dfea 100644
--- a/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c
+++ b/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c
@@ -45,8 +45,9 @@ typedef struct HeatersControlMessage{
HeaterCommand HeaterCmd[MAX_HEATERS_NUM];
uint32_t ControlIdtoHeaterId [MAX_HEATERS_NUM] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF};
uint32_t DryerHeaterMaxTempControl = 0xFF;
-#warning the PT100 id for the dryer control is number2 - dryer internal ambient sensor
-uint32_t HeaterId2PT100Id[MAX_HEATERS_NUM] = {TEMP_SENSE_ANALOG_DRYER_TEMP2,TEMP_SENSE_ANALOG_DRYER_TEMP1,TEMP_SENSE_ANALOG_DRYER_TEMP3,TEMP_SENSE_ANALOG_DYEINGH_TEMP1,TEMP_SENSE_ANALOG_DYEINGH_TEMP2,TEMP_SENSE_ANALOG_DYEINGH_TEMP3,TEMP_SENSE_ANALOG_DYEINGH_TEMP4,TEMP_SENSE_ANALOG_MIXCHIP_TEMP};
+#warning the PT100 id for the dryer control is number2 - dryer internal ambient sensor.
+#warning the PT100 for head 4 is number 5
+uint32_t HeaterId2PT100Id[MAX_HEATERS_NUM] = {TEMP_SENSE_ANALOG_DRYER_TEMP2,TEMP_SENSE_ANALOG_DRYER_TEMP1,TEMP_SENSE_ANALOG_DRYER_TEMP3,TEMP_SENSE_ANALOG_DYEINGH_TEMP1,TEMP_SENSE_ANALOG_DYEINGH_TEMP2,TEMP_SENSE_ANALOG_DYEINGH_TEMP3,TEMP_SENSE_ANALOG_DYEINGH_TEMP5,TEMP_SENSE_ANALOG_MIXCHIP_TEMP};
uint32_t DryerInternalPT100Id = TEMP_SENSE_ANALOG_DRYER_TEMP1;
bool HeatersRestart = false;
@@ -466,7 +467,7 @@ uint32_t DCHeaterControlCBFunction(uint32_t IfIndex, uint32_t readValue)
*/
static int t=0;
t++;
- if (t >=22)
+ if (t >=23)
{
HeatingTestSendResonse(0,false,GetHeaterState(index), DCInitialHeating[index],index, readValue,DCTimeSliceAllocation[index],
HeaterPIDConfig[index].m_calculatedError,"Standard DC");
diff --git a/Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c b/Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c
index 4b7648e96..092fbb252 100644
--- a/Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c
+++ b/Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c
@@ -16,6 +16,8 @@
#include "drivers/motors/motor.h"
#include "drivers/valves/valve.h"
+#include "modules/heaters/heaters.h"
+
typedef struct
{
@@ -252,6 +254,7 @@ uint32_t IDSPreSegmentState(void *JobDetails, int SegmentId)
{
Control3WayValvesWithCallback (DispenserId, Dispenser_Mixer, NULL); //direction: MidTank_Dispenser or Dispenser_Mixer
MotorSetSpeed(HW_Motor_Id, segmentfirst_speed);
+ HeatingTestSendResonse(0,false,0, Dispenser_Mixer,DispenserId, segmentfirst_speed,SegmentId,JobBrushStopId,"Dispenser !!!!!!!!!!!");
}
}
}
diff --git a/Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Motor.c b/Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Motor.c
index 81f147039..261c773a2 100644
--- a/Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Motor.c
+++ b/Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Motor.c
@@ -280,7 +280,7 @@ void Stub_MotorRunRequest(MessageContainer* requestContainer)
void Stub_MotorStopRequest(MessageContainer* requestContainer)
{
- //uint32_t read_status;
+
//uint32_t status = FAILED;
MessageContainer responseContainer;
@@ -292,6 +292,8 @@ void Stub_MotorStopRequest(MessageContainer* requestContainer)
#ifdef EVALUATION_BOARD
+ uint32_t read_status;
+
//SPI_Control(SKIP_INIT);
Mot_Stop();
#else