代码搜索结果
找到约 10,000 项符合
Control 的代码
control.h
#ifndef Control_H
#define Control_H
//------------------ C API for Control routine ---------------------
typedef struct {
short qVelRef; // Reference velocity
short qVdRef;
control.inc
;;------------------ ASM30 API for Control routines ---------------------
; CtrlParm stucture:
;
.equ Ctrl_qVelRef,0 ; Reference velocity
.equ Ctrl_qVdRef ,2
control.h
#ifndef Control_H
#define Control_H
//------------------ C API for Control routine ---------------------
typedef struct {
short qVelRef; // Reference velocity
short qVdRef;
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