arm pid init f32 8c source


CMSIS DSP Software Library: arm_pid_init_f32.c Source File Main Page Modules Data Structures Files Examples File List Globals arm_pid_init_f32.c Go to the documentation of this file.00001 /* ---------------------------------------------------------------------- 00002 * Copyright (C) 2010 ARM Limited. All rights reserved. 00003 * 00004 * $Date: 29. November 2010 00005 * $Revision: V1.0.3 00006 * 00007 * Project: CMSIS DSP Library 00008 * Title: arm_pid_init_f32.c 00009 * 00010 * Description: Floating-point PID Control initialization function 00011 * 00012 * 00013 * Target Processor: Cortex-M4/Cortex-M3 00014 * 00015 * Version 1.0.3 2010/11/29 00016 * Re-organized the CMSIS folders and updated documentation. 00017 * 00018 * Version 1.0.2 2010/11/11 00019 * Documentation updated. 00020 * 00021 * Version 1.0.1 2010/10/05 00022 * Production release and review comments incorporated. 00023 * 00024 * Version 1.0.0 2010/09/20 00025 * Production release and review comments incorporated. 00026 * ------------------------------------------------------------------- */ 00027 00028 #include "arm_math.h" 00029 00048 void arm_pid_init_f32( 00049 arm_pid_instance_f32 * S, 00050 int32_t resetStateFlag) 00051 { 00052 00053 /* Derived coefficient A0 */ 00054 S->A0 = S->Kp + S->Ki + S->Kd; 00055 00056 /* Derived coefficient A1 */ 00057 S->A1 = (-S->Kp) - ((float32_t) 2.0 * S->Kd); 00058 00059 /* Derived coefficient A2 */ 00060 S->A2 = S->Kd; 00061 00062 /* Check whether state needs reset or not */ 00063 if(resetStateFlag) 00064 { 00065 /* Clear the state buffer. The size will be always 3 samples */ 00066 memset(S->state, 0, 3u * sizeof(float32_t)); 00067 } 00068 00069 } 00070  All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines Generated on Mon Nov 29 2010 17:19:57 for CMSIS DSP Software Library by  1.7.2

Wyszukiwarka

Podobne podstrony:
arm pid init q15? source
arm pid init q31? source
arm fir init ?2? source
arm pid reset ?2? source
arm lms init ?2? source
arm ?t4 init ?2? source
arm mat init ?2? source
arm rfft init ?2? source
arm pid init ?2?
arm iir lattice init ?2? source
arm ?ft radix4 init ?2? source
arm fir interpolate init ?2? source
arm fir ?cimate init ?2? source
arm lms norm init ?2? source
arm fir sparse init ?2? source
arm fir lattice init ?2? source
arm biquad ?scade ?1 init ?2? source
arm biquad ?scade ?2 t init ?2? source
arm lms init ?2?

więcej podobnych podstron