Lines Matching +full:- +full:s
1 /* ----------------------------------------------------------------------
9 * Target Processor: Cortex-M and Cortex-A cores
10 * -------------------------------------------------------------------- */
12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
14 * SPDX-License-Identifier: Apache-2.0
20 * www.apache.org/licenses/LICENSE-2.0
38 @param[in,out] S points to an instance of the Q31 PID structure
40 - value = 0: no change in state
41 - value = 1: reset state
51 arm_pid_instance_q31 * S, in arm_pid_init_q31() argument
58 S->A0 = __QADD(__QADD(S->Kp, S->Ki), S->Kd); in arm_pid_init_q31()
61 S->A1 = -__QADD(__QADD(S->Kd, S->Kd), S->Kp); in arm_pid_init_q31()
68 temp = clip_q63_to_q31((q63_t) S->Kp + S->Ki); in arm_pid_init_q31()
69 S->A0 = clip_q63_to_q31((q63_t) temp + S->Kd); in arm_pid_init_q31()
72 temp = clip_q63_to_q31((q63_t) S->Kd + S->Kd); in arm_pid_init_q31()
73 S->A1 = -clip_q63_to_q31((q63_t) temp + S->Kp); in arm_pid_init_q31()
78 S->A2 = S->Kd; in arm_pid_init_q31()
84 memset(S->state, 0, 3U * sizeof(q31_t)); in arm_pid_init_q31()