Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     Instance = this;
     webs     = GetComponent <webscript>();
     userinfo = GetComponent <userinfo>();
     login    = GetComponent <login>();
 }
 static public StringBuilder Serialize(StringBuilder sb, reference r)
 {
     sb.Append(TypeReference);
     sb.Append(r.object_id);
     sb.Append(' ');
     return sb;
 }
Esempio n. 3
0
 /// <summary>
 /// constructs a point.
 /// </summary>
 /// <param name="x">value of the X coordinate</param>
 /// <param name="y">value of the Y coordinate</param>
 /// <param name="z">value of the Z coordinate</param>
 /// <param name="units">units to be used for measurement</param>
 /// <param name="Ref">frame of reference of the point.</param>
 public point(double x, double y, double z, unit units, reference Ref)
 {
     this.x     = x;
     this.y     = y;
     this.z     = z;
     this.units = units;
     this.Ref   = Ref;
 }
        public ActionResult DeleteConfirmed(int id)
        {
            reference reference = db.reference.Find(id);

            db.reference.Remove(reference);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,image,author")] reference reference)
 {
     if (ModelState.IsValid)
     {
         db.Entry(reference).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(reference));
 }
Esempio n. 6
0
 /// <summary>
 /// sets the point to absolute mode if it isnt already.
 /// </summary>
 /// <param name="currentPosition"></param>
 public void toAbsolute(point currentPosition)
 {
     if (Ref != reference.absolute)
     {
         var newPoint = this + currentPosition;
         x        = newPoint.x;
         y        = newPoint.y;
         z        = newPoint.z;
         this.Ref = reference.absolute;
     }
 }
Esempio n. 7
0
 /// <summary>
 /// sets the point to incremental mode if it isnt already.
 /// </summary>
 /// <param name="currentPosition"></param>
 public void toIncremental(point currentPosition)
 {
     if (Ref != reference.incremental)
     {
         var newPoint = this - currentPosition;
         x        = newPoint.x;
         y        = newPoint.y;
         z        = newPoint.z;
         this.Ref = reference.incremental;
     }
 }
        public ActionResult Create([Bind(Include = "Id,image,author")] reference reference)
        {
            if (ModelState.IsValid)
            {
                db.reference.Add(reference);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(reference));
        }
Esempio n. 9
0
    //public GameObject paddleRef;
    public void Start()
    {
        //variableJoystick = (VariableJoystick)Resources.Load("Assets/Joystick Pack/Prefabs/Variable Joystick.prefab", typeof(VariableJoystick));
        //Object prefab = Resources.Load("Assets/Joystick Pack/Prefabs/Variable Joystick.prefab", typeof(GameObject));
        //paddleRef = (GameObject)prefab;
        //VariableJoystick = prefab;
        variableJoystick = (GameObject)GameObject.Find("reference1");
        reference referenceScript = variableJoystick.GetComponent <reference>();

        variableJoystickXD = referenceScript.variableJoy;
        //variableJoystick = (GameObject)GameObject.FindGameObjectWithTag("joystick1");
    }
Esempio n. 10
0
 /// <summary>
 /// creates and extruder object when the portname is known I.E. COM1, COM2
 /// </summary>
 /// <param name="portName">port to use for communication with the robot arm.</param>
 public extruder(string portName)
 {
     output         = new Queue <string>();
     units          = unit.millimeters;
     coordinateMode = reference.incremental;
     configureExtruderPort(portName);
     currentExtrusion = 0;
     timer            = new System.Windows.Forms.Timer();
     timer.Interval   = 1000; // Running every 1000 ms
     timer.Tick      += Timer_Tick;
     timer.Enabled    = true;
 }
Esempio n. 11
0
        // GET: references/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            reference reference = db.reference.Find(id);

            if (reference == null)
            {
                return(HttpNotFound());
            }
            return(View(reference));
        }
Esempio n. 12
0
 /// <summary>
 /// creates a robotarm class when the portname is known.
 /// </summary>
 /// <param name="portName">name of the port to use I.E. COM1, COM2</param>
 public robotArm(string portName)
 {
     origin          = new point(29.423, 1081.853, -23.044, unit.millimeters, reference.absolute);
     outputs         = new Queue <string>();
     currentPosition = new point(0, 0, 0, unit.millimeters, reference.absolute);
     port            = new System.IO.Ports.SerialPort();
     units           = unit.millimeters;
     coordinateMode  = reference.incremental;
     configureRobotArmPort(portName);
     getPosition();
     timer          = new System.Windows.Forms.Timer();
     timer.Interval = 1000; // Running every 1000 ms
     timer.Tick    += Timer_Tick;
     timer.Enabled  = true;
 }
Esempio n. 13
0
 assemblyLoader.RegisterDependency(reference);
Esempio n. 14
0
 // Use this for initialization
 void Start()
 {
     refPosition = (reference)FindObjectOfType(typeof(reference));
 }
Esempio n. 15
0
 public void M82()
 {
     coordinateMode = reference.absolute;
     port.WriteLine("M82");
 }
Esempio n. 16
0
 var(reference, target) = __in__;
Esempio n. 17
0
 public void G91()
 {
     this.coordinateMode = reference.incremental;
 }
Esempio n. 18
0
 public void M83()
 {
     coordinateMode = reference.incremental;
     port.WriteLine("M83");
 }
Esempio n. 19
0
        public Control Reference()
        {
            reference rf = new reference();

            return(rf.table);
        }
Esempio n. 20
0
 // Use this for initialization
 void Start()
 {
     refPosition = (reference)FindObjectOfType (typeof (reference));
 }
Esempio n. 21
0
 public void G90()
 {
     //throw new NotImplementedException();
     this.coordinateMode = reference.absolute;
 }