1 /* ----------------------------------------------------------------------
2 * Copyright (C) 2010 ARM Limited. All rights reserved.
7 * Project: CMSIS DSP Library
8 * Title: arm_pid_reset_f32.c
10 * Description: Floating-point PID Control reset function
12 * Target Processor: Cortex-M4/Cortex-M3/Cortex-M0
14 * Version 1.0.10 2011/7/15
15 * Big Endian support added and Merged M0 and M3/M4 Source code.
17 * Version 1.0.3 2010/11/29
18 * Re-organized the CMSIS folders and updated documentation.
20 * Version 1.0.2 2010/11/11
21 * Documentation updated.
23 * Version 1.0.1 2010/10/05
24 * Production release and review comments incorporated.
26 * Version 1.0.0 2010/09/20
27 * Production release and review comments incorporated.
28 * ------------------------------------------------------------------- */
38 * @brief Reset function for the floating-point PID Control.
39 * @param[in] *S Instance pointer of PID control data structure.
42 * The function resets the state buffer to zeros.
44 void arm_pid_reset_f32(
45 arm_pid_instance_f32 * S)
48 /* Clear the state buffer. The size will be always 3 samples */
49 memset(S->state, 0, 3u * sizeof(float32_t));