Index: PIDControllers.c =================================================================== diff -u -r68e4c6462f8345be55fa35f5b21fca3e266350aa -rc83bc5477fb0d2eabdbc517d08600046982fd9c5 --- PIDControllers.c (.../PIDControllers.c) (revision 68e4c6462f8345be55fa35f5b21fca3e266350aa) +++ PIDControllers.c (.../PIDControllers.c) (revision c83bc5477fb0d2eabdbc517d08600046982fd9c5) @@ -356,46 +356,5 @@ return output; } -/*********************************************************************//** - * @brief - * The getPIDControllerSignals function returns the latest requested signal sample. - * @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. - * @details \b Alarms: ALARM_ID_XX_SOFTWARE_FAULT when invalid PI controller - * stemp limit is passed. - * @param controllerID ID filter number - * @param stepLimit maximum step limit - * @return latest sample requested - *************************************************************************/ -void setPIDControllerStepLimit( PID_CONTROLLER_ID_T controllerID, F32 stepLimit ) -{ - PID_CONTROLLER_T *controller; - if ( controllerID < NUM_OF_PID_CONTROLLERS_IDS ) - { - SET_CONTROLLER( controller, controllerID ); - - if ( ( stepLimit > NEARLY_ZERO ) && ( stepLimit < MAX_ILIMIT ) ) - { - 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 - } -} - /**@}*/