public AxisDirectionModel GetNewDirection(CommandDirection command, CompassDirections direction) { AxisDirectionModel modelTemp = new AxisDirectionModel(); modelTemp.compassDirection = GetNewCompassPoint(command, direction); modelTemp.axisDirection = GetNewAxis(modelTemp.compassDirection); return(modelTemp); }
private void SetDirections(CommandDirection letterRL) { AxisDirectionModel axisDirectModel = new AxisDirectionModel(); axisDirectModel = directionObj.GetNewDirection(letterRL, RoverCompassDirection); RoverCompassDirection = axisDirectModel.compassDirection; //N-E-S-W AxisOfMotion = axisDirectModel.axisDirection; }