my_judge.h
667 Bytes
#ifndef __MY_JUDGE_H
#define __MY_JUDGE_H
#include "sys.h"
u8 Judge_io(u32 a,u8 b);//判断io
//u8 Judge_posedge(u8 *a);//判断上升沿有效
//u8 Judge_negedge(u8 *a);//判断下降沿有效
u8 Judge_dir_car(float a);//判断车头方向
u8 Judge_dir_tray(double a);//判断托盘方向
u8 Judge_dir_run(u8 x1,u8 y1,u8 x2,u8 y2);//判断行走方向
u8 Judge_dir_vertical(float a);//判断垂直方向
u8 Judge_dir_rot(u8 a,float b);//判断旋转方向
u8 Judge_arrive_rot(u8 a,float b,float c);//判断旋转到位
u8 Judge_arrive_tray(double a,double b,double c);//a目标角度,b当前角度,c可容偏差
u8 Judge_adjust_y(float a,float b);//判断y调整到位
u8 Judge_adjust_tray(float a,float b);//判断托盘调整到位
#endif