巡線小車源程序(MSP430,PID)

首先是各類宏定義的頭文件函數 "myhead.h" #ifndef xxxx_xxx #define xxxx_xxx #define P 43 #define I 0.01 #define D 100 #define LeftMotorTurnNeg {P3OUT|=BIT0;P3OUT&=~BIT1;} #define LeftMotorTurnPos {P3OUT&=~BIT0
相關文章
相關標籤/搜索