Beispiel #1
0
        public DataGraph(VisualThread visualThread)
        {
            this.visualThread = visualThread;
            InitializeComponent();
            comboBox1.SelectedIndex = 0;
            zedGraphControlAccS0_Load(this, new EventArgs());
            zedGraphControlAccS1_Load(this, new EventArgs());
            zedGraphControlAccS2_Load(this, new EventArgs());
            zedGraphControlAccS3_Load(this, new EventArgs());
            zedGraphControlAccS4_Load(this, new EventArgs());
            zedGraphControlGirS0_Load(this, new EventArgs());
            zedGraphControlGirS1_Load(this, new EventArgs());
            zedGraphControlGirS2_Load(this, new EventArgs());
            zedGraphControlGirS3_Load(this, new EventArgs());
            zedGraphControlGirS4_Load(this, new EventArgs());
            zedGraphControlThetaS0_Load(this, new EventArgs());

            /*zedGraphControlThetaS1_Load(this, new EventArgs());
            *  zedGraphControlThetaS2_Load(this, new EventArgs());
            *  zedGraphControlThetaS3_Load(this, new EventArgs());
            *  zedGraphControlThetaS4_Load(this, new EventArgs());*/
            zedGraphControlStandLaySit_Load(this, new EventArgs());
            setGraph(Sensor.Sensor1, DataInfo.Acc);
            this.FormClosing += DataGraph_Closing;
        }
Beispiel #2
0
 public Recognizer(VisualThread vThread)
 {
     this.vThread          = vThread;
     packets               = new List <Packet>();
     prevWindowLastPackets = new List <Packet>();
     actionsToAdd          = new List <Progetto.Action>();
     sitLayStandActions    = new List <KeyValuePair <int, double> >();
 }
Beispiel #3
0
        public static void Main()
        {
            settings = new Settings();

            InitialPanel iPanel = new InitialPanel();

            Application.EnableVisualStyles();
            Application.Run(iPanel);
            VisualThread vThread       = new VisualThread();
            Thread       graphicThread = new Thread(vThread.StartThread);

            graphicThread.Start();
            dataSaver = new DataSaver();
            Recognizer recognizer = new Recognizer(vThread);

            packetBuffer = new PacketBuffer(vThread, recognizer, dataSaver);
            recognizer.SetPacketBuffer(PacketBuffer);
            Listener  listener = new Listener(PacketBuffer);
            TcpClient client   = listener.Connection();

            listener.StreamRead(client);
        }
Beispiel #4
0
 public PacketBuffer(VisualThread vThread, Recognizer recognizer, DataSaver dataSaver)
 {
     this.vThread    = vThread;
     this.recognizer = recognizer;
     this.dataSaver  = dataSaver;
 }