Ejemplo n.º 1
0
        static void test1()
        {
            HidChannel ch = new HidChannel(0x20A0, 0x415C);
            UAVObjectManager mgr = new UAVObjectManager();
            UAVObjectsInitialize.register(mgr);
            UavTalk.UavTalkProto tlk = new UavTalkProto(ch, mgr);
            ch.open();
            tlk.sendObjectRequest(mgr.getObject<OPLinkSettings>(), false);
            while (true)
            {
                var obj = mgr.getObject<OPLinkSettings>();
                obj.CoordID.setValue((uint)0xE4C1B293);
                tlk.sendObject(obj, false, false);
                //tlk.sendObjectRequest(mgr.getObject<SystemStats>(),false);
                Thread.Sleep(2000);
            }

        }