The invention discloses a control method for steering instruction input equipment. The control method comprises the steps that S1, input signals 2A/2B are detected through a controller; s2, capturing interruption by using a timer, counting by adopting a CNT signal of the timer, and capturing a rising edge and a falling edge of the signal 2A to calculate a duty ratio of the signal 2A; s3, calculating the duty ratio of the signal 2B by using a low-frequency clock; and S4, the obtained duty ratio of the signal 2A and the duty ratio of the signal 2B are processed through an algorithm to calculate an instruction angle. According to the control method for the steering instruction input device, the timer is used for capturing interruption, the CNT of the timer is used for counting and calculating the duty ratio of the signal 2A, the low-frequency clock is used for calculating the duty ratio of the signal 2B, and finally the instruction angle is obtained through algorithm processing, so that the sampling frequency is improved, the sampling error is reduced, and the control precision is improved. An angle input instruction is ensured to be stable without jumping; and meanwhile, the interruption frequency of the controller is reduced, and controller resources are released.

    本发明公开了一种针对转向指令输入设备的控制方法,包括步骤:步骤S1:通过控制器检测输入信号2A/2B;步骤S2:使用定时器捕获中断,采用定时器本身CNT信号计数,捕获信号2A的上升沿和下降沿来计算信号2A的占空比;步骤S3:使用低频时钟来计算信号2B的占空比;步骤S4:将得到的信号2A的占空比、信号2B的占空比经过算法处理计算出指令角度。本发明的针对转向指令输入设备的控制方法通过使用定时器捕获中断使用自身CNT来计数计算信号2A的占空比,使用一个低频时钟来计算信号2B的占空比,最终经算法处理得出指令角度,这样提高了采样频率,降低了采样误差,保证角度输入指令稳定不跳动;同时降低了控制器中断频率,释放了控制器资源。


    Access

    Download


    Export, share and cite



    Title :

    Control method for steering instruction input equipment


    Additional title:

    一种针对转向指令输入设备的控制方法


    Contributors:
    ZHANG ZONGGE (author) / LI FEI (author) / YAO XIN (author)

    Publication date :

    2024-10-11


    Type of media :

    Patent


    Type of material :

    Electronic Resource


    Language :

    Chinese


    Classification :

    IPC:    B62D MOTOR VEHICLES , Motorfahrzeuge




    Steering input apparatus and control method thereof

    PARK SU-JU / KIM BONG-SOO | European Patent Office | 2024

    Free access



    INSTRUCTION INPUT DEVICE

    HASHIMOTO HARUHIKO | European Patent Office | 2021

    Free access