Files
appRobotDriver/robot/RobotMotorPosition.js

28 lines
706 B
JavaScript
Executable File

module.exports = class RobotMotorPosition{
constructor(x, y, z, a, b, c, e = 0.0){
this.x = x; // X-Motor
this.y = y; // Y-Motor
this.z = z;
this.a = a; // A-Motor: Ellbow-LowerArm turner
this.b = b; // B-Motor: Hand up-down
this.c = c; // C-Motor: Hand twist
this.e = e; // Finger open
this.time = Date.now();
this.xMotorChanged = false;
this.yMotorChanged = false;
this.zMotorChanged = false;
this.aMotorChanged = false;
this.bMotorChanged = false;
this.cMotorChanged = false;
this.eMotorChanged = false;
}
}