SetData.mode = 5;
switch(Key_Scan_State)
{
+#if ENGLISH_VERSION_ONLY
+ case KEY1_PRES:
+ case KEY1_Long_PRES:
+ if(Interface.CursorPosition <= CURSOR_INITIAL)
+ Interface.CursorPosition = SETTING_CURSOR_END;
+ else
+ Interface.CursorPosition--;
+ //Ö»Ö§³ÖÓ¢ÎÄ°æ£¬Ìø¹ýµÚÒ»¸öÓïÑÔÇл»Ïî¡£
+ if(Interface.CursorPosition == CURSOR_INITIAL)
+ Interface.CursorPosition = SETTING_CURSOR_END;
+ delay_ms(300);
+ break;
+ case KEY2_PRES:
+ case KEY2_Long_PRES:
+ if(Interface.CursorPosition >= SETTING_CURSOR_END)
+ Interface.CursorPosition = CURSOR_INITIAL;
+ else
+ Interface.CursorPosition++;
+ //Ö»Ö§³ÖÓ¢ÎÄ°æ£¬Ìø¹ýµÚÒ»¸öÓïÑÔÇл»Ïî¡£
+ if(Interface.CursorPosition == CURSOR_INITIAL)
+ Interface.CursorPosition++;
+ delay_ms(300);
+ break;
+#else
case KEY1_PRES:
if(Interface.CursorPosition <= CURSOR_INITIAL)
Interface.CursorPosition = SETTING_CURSOR_END;
else Interface.CursorPosition++;
delay_ms(300);
break;
+#endif
case KEY3_Long_PRES:
Interface.CursorPosition = 0;
SetData.InterfaceID = TORQUE_ANGLE_INTERFACE_ID;
static u32 LastUsageCounter =0;
static u8 LastCurPos = 0;
static u8 LastSelectState = 0;
+
+#if ENGLISH_VERSION_ONLY
+ pdata->Languages = 0; //Ó¢Îİæ
+#endif // ENGLISH_VERSION_ONLY
+
//±äÁ¿¸³Öµ
p_UsageCounter = pdata->UsageCounter;
p_Standard = pdata->Standard;
//½Ç¶ÈϵÊý »ù´¡Ò»È¦/¶ÔÓ¦Âö³åÊý 360 / 23 = 15 Ò²¾ÍÊÇ15¡ãµÈÓÚÒ»¸öÂö³å
#define COEFFICIENT (360 / 23)
+#define ENGLISH_VERSION_ONLY 0 //ÊÇ·ñÖ»ÏÔʾӢÎİ汾
+
extern u32 Corresponding_A; // ŤÁ¦¶ÔÓ¦µçÁ÷
extern u32 Angle_Number; // ½Ç¶È¶ÔӦȦÊý