代码搜索:Pi
找到约 10,000 项符合「Pi」的源代码
代码结果 10,000
www.eeworm.com/read/391723/8388873
h pi.h
/*
***********************************************************************
* For test BLDC
* 2008-1-7
***********************************************************************
*/
#ifndef __PI_H_
www.eeworm.com/read/391723/8388875
c pi.c
/*
***********************************************************************
* For test BLDC
* 2008-1-7
***********************************************************************
*/
//===============
www.eeworm.com/read/291510/8412039
inc pi.inc
;**********************************************************************
;
www.eeworm.com/read/291510/8412069
s pi.s
www.eeworm.com/read/389084/8549070
c pi.c
/* Parallel C code to demonstrate Linux thread interface */
/* Algorithm appears to be based on the series expansion of arctan(pi/4) */
#include
#include
#include
vo
www.eeworm.com/read/388283/8619529
inc pi.inc
;PIParm structure:
.equ PI_qdSumL,0
.equ PI_qdSumH,2
.equ PI_qKp,4
.equ PI_qK1_p,6
.equ PI_qKi,8
.equ PI_qKc,10
.equ PI_qOutMax,12
.equ PI_qOutMin,14
.equ PI_qInRef,16
www.eeworm.com/read/388283/8619572
h pi.h
typedef struct{
long qdSum;
short qKp;
short qK1_p;
short qKi;
short qKc;
short qOutMax;
short qOutMin;
short qInRef;
short qInMeas;
short qInErr; //本次偏差
short qInErr_1;
www.eeworm.com/read/388283/8619602
o pi.o
www.eeworm.com/read/388283/8619631
s pi.s
;void CalcPI( tPIParm *pParm)
;{
; Err = InRef - InMeas
; U = Sum + Kp * Err
; if( U > Outmax )
; Out = Outmax
; else if( U < Outmin )
; Out = Outmin
; else
www.eeworm.com/read/388174/8630405