public void setArmDataLabels(VerboseInfo info)
 {
     Dispatcher.Invoke(new Action(() =>
     {
         lblArmPos.Content = "Position: " + info.pos;
         lblArmDir.Content = "Gimbal: " + info.dir;
         lblMsg.Content    = info.angles + "\n" + info.msg;
     }));
 }
Esempio n. 2
0
        private void waitForInitInfo()
        {
            VerboseInfo i = new VerboseInfo();

            i.msg = "waiting on initial pose...";
            updateLabelsDelegate(i);

            comObject.setOnReadDataDelegate(updateRecieved);
            comObject.sendData(ComRequest.POSE);
            //comObject.sendData(ComRequest.ANGLES);

            //workerResumeEvent.WaitOne();    //psoe
            workerResumeEvent.WaitOne();    //angles
        }