Ejemplo n.º 1
0
 /** @return the angle of the drive train from {@literal 0} to {@literal 360}. */
 public double getAngle360() // returns 0 -360
     {
   if (mxp.getYaw() < 0) return mxp.getYaw() + 360;
   else return mxp.getYaw();
 }
Ejemplo n.º 2
0
 /** @return the angle of the drive train from {@literal -180} to {@literal 180}. */
 public double getAngle() // return -180 - 180
     {
   return (double) mxp.getYaw();
 }