From 1f1080370a2416d0ef6f762e273cad51758340db Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Mon, 18 Feb 2019 15:03:18 +0200 Subject: Version 1.3.7.3 INIT SEQUENCE - starts heating!. safe control remove in callbacks, watchdog is disabled during init sequence procedures, for now --- Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c') diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c b/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c index a116bbd66..87478d9cb 100644 --- a/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c +++ b/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c @@ -69,7 +69,7 @@ uint32_t LoadArmBackLash; }LoadArmInfoStruc; LoadArmInfoStruc LoadArmInfo; - char LoadArmPath[50] = "0://SWInfo//LoadArm.msg"; + char LoadArmPath[50] = "0://SysInfo//LoadArm.cfg"; //RUN MOTOR TO SWITCH WITH TIMEOUT //RUN MOTOR TO BREAK SENSOR @@ -341,12 +341,14 @@ { REPORT_MSG(LoadStages, "Thread Load State Machine step"); LoadArmInfo.LoadArmRounds = 20; + uint32_t numberOfSteps = 0; //Start Feeder Pid, Rotate Loading Arm Counter Thread Direction X Circles According To Rml. Feeder Speed Is 40 OriginalMotorSpd_2PPS[FEEDER_MOTOR] = 1000; + numberOfSteps = MotorsCfg[HARDWARE_MOTOR_TYPE__MOTO_DRYER_LOADARM].pulseperround*LoadArmInfo.LoadArmRounds*MotorsCfg[HARDWARE_MOTOR_TYPE__MOTO_DRYER_LOADARM].microstep*MotorsCfg[HARDWARE_MOTOR_TYPE__MOTO_DRYER_LOADARM].pulleyradius; ControlId = AddControlCallback(ThreadLoadControlCBFunction, eOneMillisecond,Control_Read_Dancer_Position,(IfTypeThread*0x100+FEEDER_MOTOR),FEEDER_DANCER,FEEDER_MOTOR); CallbackCounter++; MotorMoveWithCallback (HARDWARE_MOTOR_TYPE__MOTO_DRYER_LOADARM, MotorsCfg[HARDWARE_MOTOR_TYPE__MOTO_DRYER_LOADARM].directionthreadwize, - MotorsCfg[HARDWARE_MOTOR_TYPE__MOTO_DRYER_LOADARM].pulseperround*LoadArmInfo.LoadArmRounds, Thread_Load_HomingCallback, 100000); + numberOfSteps, Thread_Load_HomingCallback, 100000); //Keep Notation How Many Rotations In The Dryer //LoadArmInfo.LoadArmBackLash = 0; -- cgit v1.3.1 From ff9d1f9c4e6b9ab3bdd96b7e4f526773023782c5 Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Mon, 18 Feb 2019 23:26:05 +0200 Subject: load button connected to load functions --- .../Embedded_SW/Embedded/Modules/General/buttons.c | 41 +++++++++++----------- .../Embedded_SW/Embedded/Modules/General/buttons.h | 2 +- .../Embedded/Modules/Thread/ThreadLoad.c | 4 +-- .../Embedded/Modules/Thread/Thread_ex.h | 23 ++++++++++++ 4 files changed, 46 insertions(+), 24 deletions(-) (limited to 'Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c') diff --git a/Software/Embedded_SW/Embedded/Modules/General/buttons.c b/Software/Embedded_SW/Embedded/Modules/General/buttons.c index f80727dfc..0550c8ca7 100644 --- a/Software/Embedded_SW/Embedded/Modules/General/buttons.c +++ b/Software/Embedded_SW/Embedded/Modules/General/buttons.c @@ -19,6 +19,7 @@ #include #include #include "Common/report/report.h" +#include "Modules/Thread/Thread_ex.h" #include "Modules/General/buttons.h" @@ -448,46 +449,46 @@ return 0; /*------ THREAD LOAD/UNLOAD ----------*/ -/* -int LoadStatMachine(enum PBstat PBAction, struct button *pBtn) + +int LoadStatMachine( PBstat PBAction, button *pBtn) { - switch (pBtn->PBstate) + switch (pBtn->state) { case sttRDY : - switch (pBtn->PBAction) + switch (pBtn->Action) { case (SHORTPB): case (LONGPB): case (REPLONGPB): - pBtn->PBstate = sttPRELOAD; - pBtn->PBcolor = BLINK; - if (doPreloading()) + pBtn->state = sttPRELOAD; + pBtn->color = BLINK; + if (ThreadLoadStateMachine( THREAD_LOAD_INIT)) { - pBtn->PBstate = sttPRELOAD ; // to do - pBtn->PBcolor = BLUE; + pBtn->state = sttPRELOAD ; // to do + pBtn->color = BLUE; } - else pBtn->PBstate = sttDISABLE ; + else pBtn->state = sttDISABLE ; break; default : break; } break; case sttPRELOAD: - switch (pBtn->PBAction) + switch (pBtn->Action) { case (SHORTPB): case (LONGPB): case (REPLONGPB): - if (doLoading()) + if (ThreadLoadStateMachine( THREAD_LOAD_INITIAL_TENSION)) { - pBtn->PBstate = sttLOADSUCSESS ; // to do - pBtn->PBcolor = BLUE; + pBtn->state = sttLOADSUCSESS ; // to do + pBtn->color = BLUE; } else { - pBtn->PBstate = sttLOADFAIL ; - pBtn->PBcolor = fastBILNK ; // to do + pBtn->state = sttLOADFAIL ; + pBtn->color = fastBILNK ; // to do } break; default : @@ -502,14 +503,12 @@ int LoadStatMachine(enum PBstat PBAction, struct button *pBtn) // break; default: //sttDISABLE - pBtn->PBcolor = colorOFF; + pBtn->color = colorOFF; break; } -ShortLongOffPB( threadPB, ret,struct button *pBtn); - - + return OK; } -*/ + void test_avi() { diff --git a/Software/Embedded_SW/Embedded/Modules/General/buttons.h b/Software/Embedded_SW/Embedded/Modules/General/buttons.h index e7a611e9b..d0cea022c 100644 --- a/Software/Embedded_SW/Embedded/Modules/General/buttons.h +++ b/Software/Embedded_SW/Embedded/Modules/General/buttons.h @@ -34,7 +34,7 @@ typedef enum sttLOADFAIL } PBmachinState; -typedef struct +typedef struct Button { char bttn_name[10]; //option int bttn_status; // 0=release 1=press diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c b/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c index 87478d9cb..e89dc4c6d 100644 --- a/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c +++ b/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c @@ -35,7 +35,7 @@ //#include //#include - typedef enum +/* typedef enum { THREAD_LOAD_INIT, THREAD_LOAD_REDUCE_HEAT, //HEATERS OFF, DRYER BLOWER OFF, BLOWER LOW, @@ -54,7 +54,7 @@ //KEEP NOTATION HOW MANY ROTATIONS IN THE DRYER THREAD_LOAD_JOG_THREAD, //JOG THREAD SHORTLY TO MAKE SURE SPOOL IS RUNNING. REPORT END OF LOADING THREAD_LOAD_END - }THREAD_LOAD_STAGES_ENUM; + }THREAD_LOAD_STAGES_ENUM;*/ THREAD_LOAD_STAGES_ENUM LoadStages = THREAD_LOAD_INIT; ProcessParameters ProcessParametersClear,ProcessParametersRecover; uint8_t NumberOfDrierLoaderCycles = 0; diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_ex.h b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_ex.h index a22be25dc..cd71c73b1 100644 --- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_ex.h +++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_ex.h @@ -46,6 +46,29 @@ uint32_t Winder_Prepare(void); uint32_t Winder_Presegment(void *JobDetails, uint32_t SegmentId); uint32_t Winder_End(void); +typedef enum +{ + THREAD_LOAD_INIT, + THREAD_LOAD_REDUCE_HEAT, //HEATERS OFF, DRYER BLOWER OFF, BLOWER LOW, + THREAD_LOAD_SET_LOAD_ARM_TO_START_POSITION,//USE NOTATION HOW MANY ROTATIONS IN THE DRYER, OR CHECK AGAINST STOPPER. MOVE SLOWLY + THREAD_LOAD_CENTER_HEAD_ROCKERS, //puthead cleaning rockers to middle position + THREAD_LOAD_OPEN_COVERS, //OPEN DYEING HEAD COVER AND DRYER LID + THREAD_LOAD_LIFT_DANCERS, + THREAD_LOAD_LIFT_ROCKERS, //MACHINE IS READY. SEND MESSAGE, START TIMER TO CLOSE LIDS, WAIT FOR OPERATOR RESPONSE + THREAD_LOAD_INITIAL_TENSION,//CHECK SPOOL PRESENCERUN WINDER UNTIL BREAK SENSOR IS IDENTIFIEING MOVEMENT FOR A SECOND + THREAD_LOAD_CLOSE_ROCKERS, + THREAD_LOAD_CLOSE_DANCERS, //SEND DANCER MOTORS TO PRESET LOCATION, CHECK THAT THE DANCERS ARE ON THE THREAD + THREAD_LOAD_CLOSE_LIDS, + THREAD_LOAD_RESUME_HEATING, + THREAD_LOAD_JOG_FEEDER_TO_MIDDLE_POINT,//JOG THE FEEDER MOTOR UNTIL THE FEEDER DANCER IS AT MIDDLE POSITION + THREAD_LOAD_DRYER_LOADING, //START FEEDER PID, ROTATE LOADING ARM COUNTER THREAD DIRECTION X CIRCLES ACCORDING TO RML. FEEDER SPEED IS 40 + //KEEP NOTATION HOW MANY ROTATIONS IN THE DRYER + THREAD_LOAD_JOG_THREAD, //JOG THREAD SHORTLY TO MAKE SURE SPOOL IS RUNNING. REPORT END OF LOADING + THREAD_LOAD_END +}THREAD_LOAD_STAGES_ENUM; +uint32_t ThreadLoadStateMachine( THREAD_LOAD_STAGES_ENUM ReadValue); + + void ThreadLoadPollRequest(MessageContainer* requestContainer); void ThreadLoadRequest(MessageContainer* requestContainer); -- cgit v1.3.1 From 3fcd0dbc6650749421f0390a60154c52254682e6 Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Tue, 19 Feb 2019 10:35:55 +0200 Subject: PNR file updated in embedded. --- .../Embedded/Common/report/reportInit.c | 2 -- .../PMR/Debugging/DebugLogCategory.pb-c.c | 4 +-- .../PMR/Debugging/DebugLogCategory.pb-c.h | 2 +- .../FirmwareUpgrade/VersionFileDestination.pb-c.c | 18 ++++++++--- .../FirmwareUpgrade/VersionFileDestination.pb-c.h | 6 +++- .../Embedded/Modules/AlarmHandling/AlarmHandling.c | 4 ++- .../Embedded/Modules/Control/MillisecTask.c | 1 - .../Embedded_SW/Embedded/Modules/Control/control.c | 1 - .../Embedded/Modules/Thread/ThreadLoad.c | 5 ++- .../Embedded/StateMachines/Printing/JobSTM.c | 37 +++++++++------------- 10 files changed, 43 insertions(+), 37 deletions(-) (limited to 'Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c') diff --git a/Software/Embedded_SW/Embedded/Common/report/reportInit.c b/Software/Embedded_SW/Embedded/Common/report/reportInit.c index 982b53443..feb13504a 100644 --- a/Software/Embedded_SW/Embedded/Common/report/reportInit.c +++ b/Software/Embedded_SW/Embedded/Common/report/reportInit.c @@ -77,8 +77,6 @@ int ReportResponseFunc(char *message, /* The formatted message response.category = DEBUG_LOG_CATEGORY__Critical; break; case RpPrivate: - response.category = DEBUG_LOG_CATEGORY__Debug; - break; default: response.category = DEBUG_LOG_CATEGORY__Info; break; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Debugging/DebugLogCategory.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Debugging/DebugLogCategory.pb-c.c index ebb901ba8..b651d2acb 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/Debugging/DebugLogCategory.pb-c.c +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Debugging/DebugLogCategory.pb-c.c @@ -13,7 +13,7 @@ static const ProtobufCEnumValue debug_log_category__enum_values_by_number[5] = { "Warning", "DEBUG_LOG_CATEGORY__Warning", 1 }, { "Error", "DEBUG_LOG_CATEGORY__Error", 2 }, { "Critical", "DEBUG_LOG_CATEGORY__Critical", 3 }, - { "Debug", "DEBUG_LOG_CATEGORY__Debug", 4 }, + { "Safety", "DEBUG_LOG_CATEGORY__Safety", 4 }, }; static const ProtobufCIntRange debug_log_category__value_ranges[] = { {0, 0},{0, 5} @@ -21,9 +21,9 @@ static const ProtobufCIntRange debug_log_category__value_ranges[] = { static const ProtobufCEnumValueIndex debug_log_category__enum_values_by_name[5] = { { "Critical", 3 }, - { "Debug", 4 }, { "Error", 2 }, { "Info", 0 }, + { "Safety", 4 }, { "Warning", 1 }, }; const ProtobufCEnumDescriptor debug_log_category__descriptor = diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Debugging/DebugLogCategory.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Debugging/DebugLogCategory.pb-c.h index d97b42d33..1fda3ab01 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/Debugging/DebugLogCategory.pb-c.h +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Debugging/DebugLogCategory.pb-c.h @@ -24,7 +24,7 @@ typedef enum _DebugLogCategory { DEBUG_LOG_CATEGORY__Warning = 1, DEBUG_LOG_CATEGORY__Error = 2, DEBUG_LOG_CATEGORY__Critical = 3, - DEBUG_LOG_CATEGORY__Debug = 4 + DEBUG_LOG_CATEGORY__Safety = 4 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(DEBUG_LOG_CATEGORY) } DebugLogCategory; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDestination.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDestination.pb-c.c index 3e45ece3e..daa5f09e2 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDestination.pb-c.c +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDestination.pb-c.c @@ -7,22 +7,30 @@ #endif #include "VersionFileDestination.pb-c.h" -static const ProtobufCEnumValue version_file_destination__enum_values_by_number[4] = +static const ProtobufCEnumValue version_file_destination__enum_values_by_number[8] = { { "MCU", "VERSION_FILE_DESTINATION__MCU", 0 }, { "FPGA1", "VERSION_FILE_DESTINATION__FPGA1", 1 }, { "FPGA2", "VERSION_FILE_DESTINATION__FPGA2", 2 }, { "FPGA3", "VERSION_FILE_DESTINATION__FPGA3", 3 }, + { "ConfigParams", "VERSION_FILE_DESTINATION__ConfigParams", 4 }, + { "ProcessParams", "VERSION_FILE_DESTINATION__ProcessParams", 5 }, + { "AlarmParams", "VERSION_FILE_DESTINATION__AlarmParams", 6 }, + { "GeneralHWConfigParams", "VERSION_FILE_DESTINATION__GeneralHWConfigParams", 7 }, }; static const ProtobufCIntRange version_file_destination__value_ranges[] = { -{0, 0},{0, 4} +{0, 0},{0, 8} }; -static const ProtobufCEnumValueIndex version_file_destination__enum_values_by_name[4] = +static const ProtobufCEnumValueIndex version_file_destination__enum_values_by_name[8] = { + { "AlarmParams", 6 }, + { "ConfigParams", 4 }, { "FPGA1", 1 }, { "FPGA2", 2 }, { "FPGA3", 3 }, + { "GeneralHWConfigParams", 7 }, { "MCU", 0 }, + { "ProcessParams", 5 }, }; const ProtobufCEnumDescriptor version_file_destination__descriptor = { @@ -31,9 +39,9 @@ const ProtobufCEnumDescriptor version_file_destination__descriptor = "VersionFileDestination", "VersionFileDestination", "", - 4, + 8, version_file_destination__enum_values_by_number, - 4, + 8, version_file_destination__enum_values_by_name, 1, version_file_destination__value_ranges, diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDestination.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDestination.pb-c.h index 83686d194..fbada1aee 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDestination.pb-c.h +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDestination.pb-c.h @@ -23,7 +23,11 @@ typedef enum _VersionFileDestination { VERSION_FILE_DESTINATION__MCU = 0, VERSION_FILE_DESTINATION__FPGA1 = 1, VERSION_FILE_DESTINATION__FPGA2 = 2, - VERSION_FILE_DESTINATION__FPGA3 = 3 + VERSION_FILE_DESTINATION__FPGA3 = 3, + VERSION_FILE_DESTINATION__ConfigParams = 4, + VERSION_FILE_DESTINATION__ProcessParams = 5, + VERSION_FILE_DESTINATION__AlarmParams = 6, + VERSION_FILE_DESTINATION__GeneralHWConfigParams = 7 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(VERSION_FILE_DESTINATION) } VersionFileDestination; diff --git a/Software/Embedded_SW/Embedded/Modules/AlarmHandling/AlarmHandling.c b/Software/Embedded_SW/Embedded/Modules/AlarmHandling/AlarmHandling.c index c9f4ac1ee..de0bd5d1f 100644 --- a/Software/Embedded_SW/Embedded/Modules/AlarmHandling/AlarmHandling.c +++ b/Software/Embedded_SW/Embedded/Modules/AlarmHandling/AlarmHandling.c @@ -360,6 +360,8 @@ uint32_t AlarmHandlingConsequentActions(uint32_t AlarmId, DebugLogCategory Sever //raise flag fr next job break; case DEBUG_LOG_CATEGORY__Critical: + case DEBUG_LOG_CATEGORY__Safety: + watchdogCriticalAlarm = true; /* //stop all dispensers @@ -416,7 +418,7 @@ uint32_t AlarmHandlingConsequentActions(uint32_t AlarmId, DebugLogCategory Sever }*/ break; - case DEBUG_LOG_CATEGORY__Debug: + case DEBUG_LOG_CATEGORY__Info: default: //do nothing diff --git a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c index e0462eb6c..e8a60a8c4 100644 --- a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c +++ b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c @@ -44,7 +44,6 @@ Task_Handle Millisecond_Task_Handle; /******************** Definitions ********************************************/ -#define INVALID_MSG_ID 0xFFFF /******************** STRUCTURES AND ENUMs ********************************************/ typedef struct MillisecMotorData diff --git a/Software/Embedded_SW/Embedded/Modules/Control/control.c b/Software/Embedded_SW/Embedded/Modules/Control/control.c index 93c989ab5..e4abc5e3c 100644 --- a/Software/Embedded_SW/Embedded/Modules/Control/control.c +++ b/Software/Embedded_SW/Embedded/Modules/Control/control.c @@ -56,7 +56,6 @@ #include "control.h" #include "MillisecTask.h" /******************** Definitions ********************************************/ -#define INVALID_MSG_ID 0xFFFF #define MAX_TANGO_CONTROL_DEVICES 100 /******************** STRUCTURES AND ENUMs ********************************************/ diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c b/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c index e89dc4c6d..0bc2d04de 100644 --- a/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c +++ b/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c @@ -211,7 +211,10 @@ if (CallbackCounter == 0) { LoadStages++; - //ThreadLoadStateMachine(LoadStages); + if (LoadStages != THREAD_LOAD_INITIAL_TENSION) //on this satge we should wait for user call + { + //ThreadLoadStateMachine(LoadStages); + } } } else diff --git a/Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c b/Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c index cffe77000..08233ce9a 100644 --- a/Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c +++ b/Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c @@ -65,27 +65,27 @@ #include "Modules/control/control.h" -#define INVALID_MSG_ID 0xFFFF +#define MAX_TICKET_SIZE 10000 Mailbox_Handle JobmsgQ = NULL; -//static Clock_Handle JobClock; -//static Clock_Params jobclkParams; - JobEndReasonEnum JobEndReason = JOB_OK; ErrorCode JobError_to_ErrorCode[JOB_ERRORS_MAX+1] = {ERROR_CODE__NONE,ERROR_CODE__JOB_UNSPECIFIED_ERROR,ERROR_CODE__JOB_THREAD_BREAK,ERROR_CODE__JOB_WINDER_DANCER_FAIL, ERROR_CODE__JOB_POOLER_DANCER_FAIL,ERROR_CODE__JOB_FEEDER_DANCER_FAIL,ERROR_CODE__JOB_OUT_OF_DYE,ERROR_CODE__JOB_OTHER_ALARM, ERROR_CODE__JOB_TEMPERATURE_ALARM,ERROR_CODE__JOB_LS_ALARM,ERROR_CODE__JOB_PRESSURE_ALARM,ERROR_CODE__JOB_CURRENT_ALARM, ERROR_CODE__JOB_MOTOR_ALARM,ERROR_CODE__JOB_OTHER_ALARM}; -#define MAX_TICKET_SIZE 10000 -//char CurrentJobBuffer[MAX_TICKET_SIZE]; -JobTicket *CurrentJob = NULL;//(JobTicket *)CurrentJobBuffer; +JobTicket *CurrentJob = NULL; JobRequest *CurrentRequest = NULL; -//char PreviousJobBuffer[MAX_TICKET_SIZE]; -//JobTicket *PreviousJob = (JobTicket *)PreviousJobBuffer; - +double previousJobLength; +uint32_t StubControlId = 0xFF; +double StubLengthCounter = 0,StubLength = 0,StubSpeed=0; +JobTicket Ticket; +JobSegment *TSegment; +JobSpool *Tspool; +bool CopyConfigured[MAX_SYSTEM_MODULES]; +char ErrorMsg[100]; ModuleStateEnum PrepareWaiting[MAX_SYSTEM_MODULES] = {ModuleIdle,ModuleIdle,ModuleIdle,ModuleIdle,ModuleIdle}; @@ -342,16 +342,7 @@ void JobAbortFunc(MessageContainer* requestContainer) } -double previousJobLength; -char ErrorMsg[100]; -uint32_t StubControlId = 0xFF; -double StubLengthCounter = 0,StubLength = 0,StubSpeed=0; -//#include "PMR/Diagnostics/ThreadJoggingResponse.pb-c.h" -//#include "PMR/Diagnostics/ThreadAbortJoggingRequest.pb-c.h" -JobTicket Ticket; -JobSegment *TSegment; -JobSpool *Tspool; -bool CopyConfigured[MAX_SYSTEM_MODULES]; +//******************************************************************************************************************** uint32_t ThreadJoggingFunc(int speed) { ProcessParameters ProcessParametersCopy; @@ -621,7 +612,8 @@ void JobRequestFunc(MessageContainer* requestContainer) JobAlarmReason = AlarmHandlingPrepareJob(CurrentJob); if (JobAlarmReason ==OK) { - if (Ticket->processparameters) +#warning Process parameters in job request are not handled. push separately for now + /*if (Ticket->processparameters) { if (HandleProcessParameters(Ticket->processparameters)!= OK) { @@ -629,7 +621,8 @@ void JobRequestFunc(MessageContainer* requestContainer) error = ERROR_CODE__INVALID_PARAMETER; usnprintf(ErrorMsg, 100, "Hardware Parameters Not Set"); } - } + }*/ + REPORT_MSG(0,"Process parameters in job request are not handled. push separately for now"); if (Ticket->spool) { if (InternalWindingConfigMessage(Ticket->spool)!= OK) -- cgit v1.3.1