diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2020-10-19 17:15:51 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2020-10-19 17:15:51 +0300 |
| commit | d158d2e52229c221d1d475ced6b1ff048d6519ad (patch) | |
| tree | acd1b09d50ce9c6356b17fe73a02ceec66279178 /Software/Embedded_SW/Embedded/StateMachines/Initialization | |
| parent | b732167cbc51f0b19447d67687af5c514cf4f65a (diff) | |
| download | Tango-d158d2e52229c221d1d475ced6b1ff048d6519ad.tar.gz Tango-d158d2e52229c221d1d475ced6b1ff048d6519ad.zip | |
change RAM FLASH SIZE and location. some progress on the machine
Diffstat (limited to 'Software/Embedded_SW/Embedded/StateMachines/Initialization')
| -rw-r--r-- | Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c b/Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c index 92d6d586b..f747a9efc 100644 --- a/Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c +++ b/Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c @@ -437,14 +437,14 @@ uint32_t InitSequenceInitialBlowerActivation(void) WHS_enable_control_loop(false); if (WHS_Type == WHS_TYPE_NEW) { - Control_Voltage_To_Blower(1); //stop the blower - Task_sleep (1000); - Trigger_WHS_MAX11614_Read_allADC(); - Task_sleep (10); if (ResetReason & SYSCTL_CAUSE_POR) { + Control_Voltage_To_Blower(1); //stop the blower + Task_sleep (1000); for (i=0;i<8;i++) { + Trigger_WHS_MAX11614_Read_allADC(); + Task_sleep (100); get_orf_1(&value); total1+=value; get_orf_2(&value); @@ -473,14 +473,14 @@ uint32_t InitSequenceInitialBlowerActivation(void) else total3 = ZeroValue; ReportWithPackageFilter(InitFilter,"store initial orifice 3 value", __FILE__,EEPROM_ORIFICE3_ZERO_VALUE,total3, RpMessage, ZeroValue, 0); - WHS_MAX11614_Load_OrificeZeroValue(total1,total3,total3); + WHS_MAX11614_Load_OrificeZeroValue(total1,total2,total3); } else { MCU_E2PromRead(EEPROM_ORIFICE1_ZERO_VALUE,&total1); MCU_E2PromRead(EEPROM_ORIFICE3_ZERO_VALUE,&total3); ReportWithPackageFilter(InitFilter,"load initial values from EEPROM", __FILE__,0,total3, RpMessage, total1, 0); - WHS_MAX11614_Load_OrificeZeroValue(total1,0,total3); + WHS_MAX11614_Load_OrificeZeroValue(total1,total1,total3); } } HeadBlowersInit(); @@ -620,8 +620,9 @@ uint32_t InitSequenceStartHeating(void) TimerMotors_t MotorId = HARDWARE_MOTOR_TYPE__MOTO_DH_LID; SetMachineReadyForHeating(true); + Shinko_Read = true; if(Head_Type == HEAD_TYPE_ARC) { - MotorMovetoLimitSwitch(MotorId,1-MotorsCfg[MotorId].directionthreadwize, 50, Motor_Id_to_LS_IdDown[MotorId], cleaningMotorCBFunction,30000); + MotorMovetoLimitSwitch(MotorId,1-MotorsCfg[MotorId].directionthreadwize, 30, Motor_Id_to_LS_IdDown[MotorId], cleaningMotorCBFunction,30000); } else if(Head_Type == HEAD_TYPE_FLAT){ HeadCard_Actuators_Relocate(); } |
