代码搜索结果
找到约 10,000 项符合
Control System 的代码
control.inc
;;------------------ ASM30 API for Control routines ---------------------
; CtrlParm stucture:
;
.equ Ctrl_qVelRef,0 ; Reference velocity
.equ Ctrl_qVdRef ,2
control.m
function y=control(n)
a=20;
if n==0
y=a+1;
elseif n==1
y=a*(1+n);
elseif n==2
y=a+n;
else
y=a;
end
control.h
//lcd控制命令
#define clear 0x01 //清屏
#define function 0x38 //功能设定
#define com_open 0x0f //开显示幕,开光标,开闪烁
#define part_open 0x0c
control.cpp
/*****************************************************************************
Copyright
control.h
/*****************************************************************************
Copyright
control.c
#include
#include
#include
#include
sbit CS=P3^7;
sbit ALE=P3^5;
sbit RD=P3^0;
sbit WR=P3^1;
#define uchar unsigned char
#define uint unsigned int
control.h
struct PID_struct {
float Kp;
float Ti;
float TD;
float T;
int speed;
};
#define PORTin 0x200
#define PORTout 100
int finish;
float A,B,C;
int msg;
int check=1;
//int motor_write(int &m);
#ifndef _CO
control.h
struct PID_struct {
float Kp;
float Ti;
float TD;
float T;
float speed;
};
#define PORTin 0x200
#define PORTout 100
int finish;
float A,B,C;
int msg;
int check=1;
//int motor_write(int &m);
#ifndef _