Index: PIControllers.c =================================================================== diff -u -r5ce308a8e600f5fa77592950d61ec1a9e42bdaa4 -rc83bc5477fb0d2eabdbc517d08600046982fd9c5 --- PIControllers.c (.../PIControllers.c) (revision 5ce308a8e600f5fa77592950d61ec1a9e42bdaa4) +++ PIControllers.c (.../PIControllers.c) (revision c83bc5477fb0d2eabdbc517d08600046982fd9c5) @@ -388,45 +388,6 @@ /*********************************************************************//** * @brief - * The setPIControllerStepLimit function sets the step limit value. - * @details \b Inputs: none - * @details \b Outputs: maxErrorSumStep of controller ID - * @details \b Alarms: ALARM_ID_XX_SOFTWARE_FAULT when invalid PI controller - * Id is passed. - * @param controllerID ID filter number - * @param stepLimit maximum step limit - * @return none - *************************************************************************/ -void setPIControllerStepLimit( PI_CONTROLLER_ID_T controllerID, F32 stepLimit ) -{ - PI_CONTROLLER_T *controller; - - if ( controllerID < NUM_OF_PI_CONTROLLERS_IDS ) - { - SET_CONTROLLER( controller, controllerID ); - - if ( ( stepLimit > controller->uMin ) && ( stepLimit < controller->uMax ) ) - { - controller->maxErrorSumStep = stepLimit; - } - else - { -#ifdef _DD_ - SET_ALARM_WITH_2_U32_DATA( ALARM_ID_DD_SOFTWARE_FAULT, SW_FAULT_ID_PI_CTRL_INVALID_STEP_LIMIT, (U32)stepLimit ) -#endif - } - } - else - { -#ifdef _DD_ - // Invalid controller given - SET_ALARM_WITH_2_U32_DATA( ALARM_ID_DD_SOFTWARE_FAULT, SW_FAULT_ID_PI_CTRL_INVALID_CONTROLLER, (U32)controllerID ) -#endif - } -} - -/*********************************************************************//** - * @brief * The setPIControllerFeedForward function sets the latest feed forward value * to the corresponding PI controller. * @details \b Inputs: none