代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
pi.java
package lab1;
public class Pi {
double pi = 0;
long num_steps;
double sum = 0.0;
double step;
Pi(long num) {
num_steps = num;
step = 1.0/(double)num_steps;
}
}
pi.h
/*
***********************************************************************
* For test BLDC
* 2008-1-7
***********************************************************************
*/
#ifndef __PI_H_
pi.c
/*
***********************************************************************
* For test BLDC
* 2008-1-7
***********************************************************************
*/
//===============
pi.inc
;**********************************************************************
;
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
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
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;