Exemplo n.º 1
0
    void ParamSubmit()
    {
        string strRunType = RunType.text;
        string strDamping = Damping.text;
        string strL0      = L0.text;
        string strG       = G.text;
        string strks      = ks.text;
        string strdt      = dt.text;
        string strdriverF = driverF.text;
        string strM0      = M0.text;
        string strM1      = M1.text;
        string strM2      = M2.text;
        string strX0x     = X0x.text;
        string strX0y     = X0y.text;
        string strX0z     = X0z.text;
        string strV0x     = V0x.text;
        string strV0y     = V0y.text;
        string strV0z     = V0z.text;
        string strX1x     = X1x.text;
        string strX1y     = X1y.text;
        string strX1z     = X1z.text;
        string strV1x     = V1x.text;
        string strV1y     = V1y.text;
        string strV1z     = V1z.text;
        string strX2x     = X2x.text;
        string strX2y     = X2y.text;
        string strX2z     = X2z.text;
        string strV2x     = V2x.text;
        string strV2y     = V2y.text;
        string strV2z     = V2z.text;

        //ballcontroller.ChangeSomething1();
        ballcontroller.ChangeSomething("RunType", strRunType);
        ballcontroller.ChangeSomething("Damping", strDamping);
        ballcontroller.ChangeSomething("L0", strL0);
        ballcontroller.ChangeSomething("g", strG);
        ballcontroller.ChangeSomething("ks", strks);
        ballcontroller.ChangeSomething("dt", strdt);
        ballcontroller.ChangeSomething("driverF", strdriverF);
        ballcontroller.ChangeSomething("M0", strM0);
        ballcontroller.ChangeSomething("M1", strM1);
        ballcontroller.ChangeSomething("M2", strM2);
        ballcontroller.ChangeSomething("X0x", strX0x);
        ballcontroller.ChangeSomething("X0y", strX0y);
        ballcontroller.ChangeSomething("X0z", strX0z);
        ballcontroller.ChangeSomething("V0x", strV0x);
        ballcontroller.ChangeSomething("V0y", strV0y);
        ballcontroller.ChangeSomething("V0z", strV0z);
        ballcontroller.ChangeSomething("X1x", strX1x);
        ballcontroller.ChangeSomething("X1y", strX1y);
        ballcontroller.ChangeSomething("X1z", strX1z);
        ballcontroller.ChangeSomething("V1x", strV1x);
        ballcontroller.ChangeSomething("V1y", strV1y);
        ballcontroller.ChangeSomething("V1z", strV1z);
        ballcontroller.ChangeSomething("X2x", strX2x);
        ballcontroller.ChangeSomething("X2y", strX2y);
        ballcontroller.ChangeSomething("X2z", strX2z);
        ballcontroller.ChangeSomething("V2x", strV2x);
        ballcontroller.ChangeSomething("V2y", strV2y);
        ballcontroller.ChangeSomething("V2z", strV2z);
        ballcontroller.UpdataParams();
    }
Exemplo n.º 2
0
    void ParamSubmit()
    {
        string strDamping = Damping.text;
        string strL0      = L0.text;
        string strG       = G.text;
        string strks      = ks.text;
        string strdt      = dt.text;
        string strM0      = M0.text;
        string strM1      = M1.text;
        string strM2      = M2.text;
        string strX0x     = X0x.text;
        string strX0y     = X0y.text;
        string strX0z     = X0z.text;
        string strV0x     = V0x.text;
        string strV0y     = V0y.text;
        string strV0z     = V0z.text;
        string strX1x     = X1x.text;
        string strX1y     = X1y.text;
        string strX1z     = X1z.text;
        string strV1x     = V1x.text;
        string strV1y     = V1y.text;
        string strV1z     = V1z.text;
        string strX2x     = X2x.text;
        string strX2y     = X2y.text;
        string strX2z     = X2z.text;
        string strV2x     = V2x.text;
        string strV2y     = V2y.text;
        string strV2z     = V2z.text;

        ballcontroller.ChangeSomething("dp", strDamping);
        ballcontroller.ChangeSomething("l0", strL0);
        ballcontroller.ChangeSomething("g", strG);
        ballcontroller.ChangeSomething("ks", strks);
        ballcontroller.ChangeSomething("dt", strdt);
        ballcontroller.ChangeSomething("M0", strM0);
        ballcontroller.ChangeSomething("M1", strM1);
        ballcontroller.ChangeSomething("M2", strM2);
        ballcontroller.ChangeSomething("X0x", strX0x);
        ballcontroller.ChangeSomething("X0y", strX0y);
        ballcontroller.ChangeSomething("X0z", strX0z);
        ballcontroller.ChangeSomething("V0x", strV0x);
        ballcontroller.ChangeSomething("V0y", strV0y);
        ballcontroller.ChangeSomething("V0z", strV0z);
        ballcontroller.ChangeSomething("X1x", strX1x);
        ballcontroller.ChangeSomething("X1y", strX1y);
        ballcontroller.ChangeSomething("X1z", strX1z);
        ballcontroller.ChangeSomething("V1x", strV1x);
        ballcontroller.ChangeSomething("V1y", strV1y);
        ballcontroller.ChangeSomething("V1z", strV1z);
        ballcontroller.ChangeSomething("X2x", strX2x);
        ballcontroller.ChangeSomething("X2y", strX2y);
        ballcontroller.ChangeSomething("X2z", strX2z);
        ballcontroller.ChangeSomething("V2x", strV2x);
        ballcontroller.ChangeSomething("V2y", strV2y);
        ballcontroller.ChangeSomething("V2z", strV2z);
    }