This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

442x 自动梯形代码问题



你好!

           EE_GETVAR( UserMachine.Projector.AutoKeystoneOffset, Tilt_XOffset );
           EE_GETVAR( UserMachine.Projector.AutoKeystoneSens, Tilt_Sensitivity );

          default: Tilt_XOffset = 2048     Tilt_Sensitivity=512

  code:

                tiltPWM = Tilt_FilterData;
               angle1 = (((float)tiltPWM - (float)Tilt_XOffset));
               angle1 = angle1/512.00f;
               angle1 = (angle1 * 59.04f);
              dbmsg_trace( DBM_ENVIRO, "Environment: Update to Pitch Angle \r\n");
               tempKeystone = (int)angle1; datapath_UserSetKeystoneAnglePitch((int)angle1<<8);                                           

这段算法看不太懂,请大神帮我理解一下,谢谢~