Example #1
0
    // Use this for initialization
    void Start()
    {
        ScreenSize.ScreenSet();
        // center point
        //DynaLinkHS.CmdPassiveMovementControl(ScreenSize.SCREEN_MID_X, ScreenSize.SCREEN_MID_X, (float)0.05);
        //DynaLinkHS.CmdPassiveMovementControl(ScreenSize.SCREEN_MID_X, ScreenSize.SCREEN_MID_Y, (float)0.05);
        DynaLinkHS.CmdFindHomePosition();

        timerRealse           = new Timer();
        timerRealse.Interval  = 10000;    //Wait for 10 seconds
        timerRealse.Elapsed  += startMov; //Hook up the elapsed event for the timer
        timerRealse.AutoReset = false;    //Have the timer fire repeated events(true is the default)
        timerRealse.Enabled   = false;
        timerRealse.Start();
    }
 void HomeCalBtnClick()
 {
     DynaLinkHS.CmdClearAlarm();
     DynaLinkHS.CmdServoOff();
     DynaLinkHS.CmdFindHomePosition();
 }