福特翼虎是福特旗下的一款SUV。2012年4月22日,全新福特翼虎Kuga在2012北京国际车展上首次亮相亚洲。这款福特称作“更智能的SUV”,拥有豪华时尚的外观、极富现代感的内饰以及诸多同级领先的高科技配置。
全新福特翼虎于2013年1月22日在国内正式上市,19.38万元~27.58万元的售价区间剑指目前消费需求最旺的中级高端SUV市场,自此,长安福特正式进军国内SUV市场。作为千禧年后推出的全新紧凑型SUV,Escape风靡北美市场。
福特翼虎升降器模块编程如下所示:
void Key_Chuli(void)
{
if(UP_Plate_Flag
{
if(Now2_Plate == 1 && Now_Plate < 2)
{
if(Door_State_Flag == 1
{
Door_State_Flag = 0;
PWM_Init(Door_Close)
GPIO_ResetBits(GPIOA,GPIO_Pin_5);
Door_Close_Time = 4000;
}
if(Door_Close_Finish_Flag == 1)//升降完毕
{
Door_Close_Finish_Flag = 0;
PWM_Init(Lift_Up);
GPIO_SetBits(GPIOA,GPIO_Pin_4);
Lift_Motor_Time = (2-Now_Plate)*6000;//升降器运行时间
LED_Flow_UP_Flag = 1; //流水灯标记,在升降器上升过程有用
LED_Flow_UP_Time = 200;//流水灯时间
}
if(Lift_Arrive_Flag == 1)//升降器到达
{
Lift_Arrive_Flag = 0;
LED_Flow_UP_Flag = 0;//流水灯关闭
LED_Ctorl(0,LEDAOALL);
LED2_Ctorl_Flag = 0;
LCD__Shan_Flag = 1; //LCD闪烁
PWM_Init(Door_Open);
GPIO_SetBits(GPIOA,GPIO_Pin_5);
Door_Open_Time = 4000;
福特翼虎论坛 }
if(Door_Open_Finish_Flag == 1)
{
Door_Open_Finish_Flag = 0;
PWM_Init(All_Stop);
Door_Wait_Time = 2000;
}
if(Door_Wait_Flag == 1)
{
Door_Wait_Flag = 0;
Door_State_Flag = 1;
Now_Plate = 2;
Now2_Plate = 0;
}
}
else if(Now3_Plate == 1 && Now_Plate < 3)
{
if(Door_State_Flag == 1) //门处于打开状态
{
Door_State_Flag = 0;
PWM_Init(Door_Close); //关门
GPIO_ResetBits(GPIOA,GPIO_Pin_5);
Door_Close_Time = 4000;//关门时间5s
}
if(Door_Close_Finish_Flag == 1)//升降完毕
{
Door_Close_Finish_Flag = 0;
PWM_Init(Lift_Up);
GPIO_SetBits(GPIOA,GPIO_Pin_4);
Lift_Motor_Time = (3-Now_Plate)*6000;//升降器运行时间
LED_Flow_UP_Flag = 1
LED_Flow_UP_Time = 200;
}
if(Lift_Arrive_Flag == 1)//升降器到达
{
Lift_Arrive_Flag = 0;
LED_Flow_UP_Flag = 0;//流水灯关闭
LED_Ctorl(0,LEDAOALL);
LED3_Ctorl_Flag = 0;
LCD__Shan_Flag = 1;
PWM_Init(Door_Open);
GPIO_SetBits(GPIOA,GPIO_Pin_5);
Door_Open_Time = 4000;
}
if(Door_Open_Finish_Flag == 1)
{
发布评论