Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        tc = gameObject.GetComponent <TrackedCarC> ();
        lastRefPosition = lastPosition = new Vector3(0, 0, 0);
        lastRefRotation = lastRotation = Quaternion.identity;
        serialCtrl      = StepperCommunication.getInstance();
        serialCtrl.open();
        testKey     = true;
        isLastRound = false;
        step        = 0;
        count       = 0;



        //serialCtrl.median ();
//		System.IO.FileStream fs;
//		if(!System.IO.File.Exists(@"TestCarAngle.txt"))
//			fs = System.IO.File.Create(@"TestCarAngle.txt");
//		file =
//			System.IO.File.AppendText(@"TestCarAngle.txt");
    }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     tc_tc = trackedCar.GetComponent <TrackedCarC> ();
     tc_cc = trackedCar.GetComponent <CarCtrl> ();
 }