double aheadDistanceToWall? = (axis / Math.cos(Util.normalAbsoluteAngle?(heading + 90))) - 36; double backDistanceToWall? = (axis / Math.cos(Util.normalAbsoluteAngle?(heading - 90))) - 36; |
double aheadDistanceToWall? = (axis / Math.cos(heading)) - 36; double backDistanceToWall? = (axis / Math.cos(Util.normalAbsoluteAngle?(heading - 180))) - 36; |