From 209fb606ead23b9d1beb62c2ebfaa5a993e62881 Mon Sep 17 00:00:00 2001 From: Avi Levkovich Date: Tue, 19 Jun 2018 15:15:47 +0300 Subject: update valve module --- Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Valve.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Software/Embedded_SW/Embedded/Modules') diff --git a/Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Valve.c b/Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Valve.c index 35dab1c27..cd53c5208 100644 --- a/Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Valve.c +++ b/Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Valve.c @@ -39,6 +39,9 @@ void Stub_ValveRequest(MessageContainer* requestContainer) writeString(", "); writeFloat(request->valveon); + Control3WayValvesWithCallback (request->valveid, request->valveon, NULL); + //test_valve_3_way(request->valveid, request->valveon); + StubValveResponse response = STUB_VALVE_RESPONSE__INIT; status_response(status,&response.status, &response.statusword ,&response.has_statusword); -- cgit v1.3.1 From 8cfb005e1a103a15047c00e1fd63aa8408940985 Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Tue, 19 Jun 2018 15:24:55 +0300 Subject: compilation warnings --- .gitignore | 3 +++ Software/Embedded_SW/Embedded/Drivers/Motors/Motor.c | 6 +++--- Software/Embedded_SW/Embedded/Modules/IDS/IDS_init.c | 2 +- Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c | 8 +++----- Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Motor.c | 7 +++++-- 5 files changed, 15 insertions(+), 11 deletions(-) (limited to 'Software/Embedded_SW/Embedded/Modules') diff --git a/.gitignore b/.gitignore index 00de0ac97..ceda39a8f 100644 --- a/.gitignore +++ b/.gitignore @@ -292,3 +292,6 @@ __pycache__/ /Software/Embedded_SW/.jxbrowser-data /Software/Embedded_SW/Embedded/.jxbrowser-data /Software/Embedded_SW/Embedded/.metadata +/.jxbrowser-data +/.metadata +/RemoteSystemsTempFiles diff --git a/Software/Embedded_SW/Embedded/Drivers/Motors/Motor.c b/Software/Embedded_SW/Embedded/Drivers/Motors/Motor.c index 2f4afed73..ac2463f9e 100644 --- a/Software/Embedded_SW/Embedded/Drivers/Motors/Motor.c +++ b/Software/Embedded_SW/Embedded/Drivers/Motors/Motor.c @@ -360,7 +360,7 @@ uint32_t MotorMoveWithCallback (TimerMotors_t _motorId,bool direction, uint32_t //SetMotorSpeed (deviceId, parameter); MotorMoveModuleCallback[_motorId] = callback; - MotorStop(_motorId,2 ); + MotorStop(_motorId,Hard_Hiz ); MotorMove(_motorId,direction,Steps ); MotorMoveControlId[_motorId] = AddControlCallback( MotorMoveCallBackFunction, eTenMilliSecond, MotorControlGetnBusyState,(IfTypeMotors*0x100+_motorId), _motorId, 0 ); return MotorMoveControlId[_motorId]; @@ -434,7 +434,7 @@ uint32_t MotorMoveToLimitSwitchCallBackFunction(uint32_t IfIndex, bool LimitSwit LOG_ERROR (IfIndex, "Wrong Interface type"); return 0xFFFFFFFF; } - MotorId = IfIndex&0xFF; + MotorId = (TimerMotors_t)(IfIndex&0xFF); if (MotorMovetoLimitSwitchControlId[MotorId] == 0xFF) return ERROR; @@ -470,6 +470,6 @@ uint32_t MotorMovetoLimitSwitch (TimerMotors_t _motorId,bool direction, uint32_t MotorMovetoLimitSwitchControlId[_motorId] = AddControlCallback( MotorMoveToLimitSwitchCallBackFunction, eOneMillisecond , FPGA_Read_limit_Switches,(IfTypeMotors*0x100+_motorId), LimitSwitchId, 0 ); MotorMovetoLimitSwitchCallback[_motorId] = callback; - return MotorMoveControlId; + return (uint32_t)MotorMoveControlId; } diff --git a/Software/Embedded_SW/Embedded/Modules/IDS/IDS_init.c b/Software/Embedded_SW/Embedded/Modules/IDS/IDS_init.c index 81efa5662..d3d549063 100644 --- a/Software/Embedded_SW/Embedded/Modules/IDS/IDS_init.c +++ b/Software/Embedded_SW/Embedded/Modules/IDS/IDS_init.c @@ -18,7 +18,7 @@ HardwareDispenser DispensersCfg[ MAX_SYSTEM_DISPENSERS]; -uint32_t DispenserIdToMotorId[MAX_SYSTEM_DISPENSERS] = {HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_1,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_2,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_3,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_4,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_5,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_6,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_7,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_8}; +TimerMotors_t DispenserIdToMotorId[MAX_SYSTEM_DISPENSERS] = {HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_1,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_2,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_3,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_4,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_5,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_6,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_7,HARDWARE_MOTOR_TYPE__MOTO_DISPENSER_8}; float DispenserPressure[MAX_SYSTEM_DISPENSERS] = {0}; diff --git a/Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c b/Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c index 0374cf639..f44f2d790 100644 --- a/Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c +++ b/Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c @@ -49,7 +49,7 @@ int JobBrushStopId = 0; uint32_t IDS_DispenserPidRequestMessage(HardwarePidControl* request) { int Dispenser_i,i; - int temp; + //int temp; for (i=0;ihardwarepidcontroltype) @@ -162,11 +162,11 @@ uint32_t IDS_DispenserPidRequestMessage(HardwarePidControl* request) { if (DispenserPreSegmentReady[i] == false) { - return; //not all configured heaters are ready + return OK; //not all configured heaters are ready } } PreSegmentReady(Module_IDS,ModuleDone); - + return OK; // all configured heaters are ready } uint32_t IDSPreSegmentState(void *JobDetails, int SegmentId) { @@ -174,8 +174,6 @@ uint32_t IDSPreSegmentState(void *JobDetails, int SegmentId) JobTicket* JobTicket = JobDetails; int Dispenser_i; TimerMotors_t HW_Motor_Id; - int segmentfirst_speed; - int CurrentSegment = 0; JobBrushStopId = 0; 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 ff545b516..81f147039 100644 --- a/Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Motor.c +++ b/Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Motor.c @@ -193,7 +193,9 @@ void Stub_MotorRunRequest(MessageContainer* requestContainer) { //uint32_t status = FAILED; +#ifdef EVALUATION_BOARD uint32_t read_status; +#endif MessageContainer responseContainer; @@ -278,7 +280,7 @@ void Stub_MotorRunRequest(MessageContainer* requestContainer) void Stub_MotorStopRequest(MessageContainer* requestContainer) { - uint32_t read_status; + //uint32_t read_status; //uint32_t status = FAILED; MessageContainer responseContainer; @@ -555,8 +557,9 @@ void Stub_MotorPositionRequest(MessageContainer* requestContainer) void Stub_MotorMovRequest(MessageContainer* requestContainer) { +#ifdef EVALUATION_BOARD uint32_t read_status; - +#endif MessageContainer responseContainer; StubMotorMovRequest* request = stub_motor_mov_request__unpack(NULL, requestContainer->data.len, requestContainer->data.data); -- cgit v1.3.1